Exemplo n.º 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
Exemplo n.º 2
0
def test_014_get_acl_counts_policy(sut_handle):
    policygen1 = PolicyGen(sut_handle)
    status,rules = policygen1.get_acl_rules_policy()
    print("Total number of ACL rules on the policy")
    if status ==200:
        assert status == 200, "Able to retrieve total # of ACL rules across policy"
        print("Total number of rules implemented are %s" %rules )
    else:
        print(status)
        print(rules)
        assert False