예제 #1
0
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
예제 #2
0
def test_014_get_acl_counts(sut_handle):
    policygen1 = PolicyGen(sut_handle)
    status,rules = policygen1.get_total_acl_proposed()
    print("Total number of ACL rules that are proposed across all applications")
    if status == 200:
        assert status == 200, "Able to retrieve total # of ACL rules across all apps"
        print("Total number of rules proposed were %s" % rules)
    else:
        print(status)
        print(rules)
        assert False