API test fixed for added log code i.e. NTFCL
@@ -25,7 +25,7 @@ class TestAudit:
expected_code_list = ['PURGE', 'LOGGN', 'STRMN', 'SYPRG', 'START', 'FSTOP',
'CONCH', 'CONAD', 'SCHCH', 'SCHAD', 'SRVRG', 'SRVUN',
'SRVFL', 'NHCOM', 'NHDWN', 'NHAVL', 'UPEXC', 'BKEXC',
- 'NTFDL', 'NTFAD', 'NTFSN', 'NTFST', 'NTFSD']
+ 'NTFDL', 'NTFAD', 'NTFSN', 'NTFCL', 'NTFST', 'NTFSD']
conn = http.client.HTTPConnection(foglamp_url)
conn.request("GET", '/foglamp/audit/logcode')
r = conn.getresponse()
@@ -33,7 +33,7 @@ class TestAudit:
r = r.read().decode()
jdoc = json.loads(r)
assert len(jdoc), "No data found"
- assert 23 == len(jdoc['logCode'])
+ assert 24 == len(jdoc['logCode'])
codes = [key['code'] for key in jdoc['logCode']]
assert Counter(expected_code_list) == Counter(codes)
