def test_005_implement_all_applications(sut_handle): policygen1 = PolicyGen(sut_handle) status = policygen1.implement_all_apps() print("Implement all applications completed successfully") status, acl_rules_proposed = policygen1.get_total_acl_proposed() status,acl_rules_implemented = policygen1.get_acl_rules_policy() if status ==200 and int(acl_rules_implemented) == int(acl_rules_proposed)+1: assert status == 200, "Implement all applications has completed and ACL rules proposed and implemented are equal" else: print(status) assert False
def test_005_implement_all_applications(sut_handle): policygen1 = PolicyGen(sut_handle) status = policygen1.implement_all_apps() print("Implement all applications completed successfully") if status == 200: result = client.send_post('add_result/12395', { 'status_id': 1, 'comment': 'Marked using automation' }) print(result) assert status == 200, "Implement all applications has completed " else: result = client.send_post('add_result/12395', { 'status_id': 5, 'comment': 'Marked using automation' }) print(status) assert False