diff options
author | 2018-05-09 09:28:32 +0000 | |
---|---|---|
committer | 2018-05-09 09:28:32 +0000 | |
commit | d28f8e68ac176a15dbbd7873f757f5a9f221d118 (patch) | |
tree | fbb22197b5809c4748aece78c98132504e8f5b10 /moon_manager/tests/unit_python/api/import_export_utilities.py | |
parent | a89a8e0738ab597d80d29964a137d7f3eb9fb9a5 (diff) | |
parent | 5dffe7e0889dd76885d313c1d44a4b389f4b8667 (diff) |
Merge "continue integrating validation"
Diffstat (limited to 'moon_manager/tests/unit_python/api/import_export_utilities.py')
-rw-r--r-- | moon_manager/tests/unit_python/api/import_export_utilities.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/moon_manager/tests/unit_python/api/import_export_utilities.py b/moon_manager/tests/unit_python/api/import_export_utilities.py index 3c921e21..b1c8a541 100644 --- a/moon_manager/tests/unit_python/api/import_export_utilities.py +++ b/moon_manager/tests/unit_python/api/import_export_utilities.py @@ -35,8 +35,8 @@ def clean_policies(client): def clean_subjects(client): subjects = test_perimeter.get_subjects(client) logger.info("subjects {}".format(subjects)) - for key in subjects["subjects"]: - subject = subjects["subjects"][key] + for key in subjects[1]["subjects"]: + subject = subjects[1]["subjects"][key] policy_keys = subject["policy_list"] logger.info("subjects policy_keys {}".format(policy_keys)) for policy_key in policy_keys: @@ -48,8 +48,8 @@ def clean_subjects(client): def clean_objects(client): objects = test_perimeter.get_objects(client) logger.info("objects {}".format(objects)) - for key in objects["objects"]: - object_ = objects["objects"][key] + for key in objects[1]["objects"]: + object_ = objects[1]["objects"][key] policy_keys = object_["policy_list"] logger.info("objects policy_keys {}".format(policy_keys)) for policy_key in policy_keys: @@ -62,8 +62,8 @@ def clean_objects(client): def clean_actions(client): actions = test_perimeter.get_actions(client) logger.info("objects {}".format(actions)) - for key in actions["actions"]: - action = actions["actions"][key] + for key in actions[1]["actions"]: + action = actions[1]["actions"][key] policy_keys = action["policy_list"] logger.info("action policy_keys {}".format(policy_keys)) for policy_key in policy_keys: |