Added PKGRM audit log
@@ -26,7 +26,7 @@ class TestAudit:
'CONCH', 'CONAD', 'SCHCH', 'SCHAD', 'SRVRG', 'SRVUN',
'SRVFL', 'NHCOM', 'NHDWN', 'NHAVL', 'UPEXC', 'BKEXC',
'NTFDL', 'NTFAD', 'NTFSN', 'NTFCL', 'NTFST', 'NTFSD',
- 'PKGIN', 'PKGUP']
+ 'PKGIN', 'PKGUP', 'PKGRM']
conn = http.client.HTTPConnection(fledge_url)
conn.request("GET", '/fledge/audit/logcode')
r = conn.getresponse()
@@ -34,7 +34,7 @@ class TestAudit:
r = r.read().decode()
jdoc = json.loads(r)
assert len(jdoc), "No data found"
- assert 26 == len(jdoc['logCode'])
+ assert 27 == len(jdoc['logCode'])
codes = [key['code'] for key in jdoc['logCode']]
assert Counter(expected_code_list) == Counter(codes)
