aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_interface/tests/apitests
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2017-05-09 15:05:59 +0200
committerasteroide <thomas.duval@orange.com>2017-05-09 15:05:59 +0200
commitc3bb5726c3778d272f1ad29ba90af5175474e852 (patch)
tree7fac2bfafedecba19c20cf2a6b3c342bca6b7d38 /moonv4/moon_interface/tests/apitests
parent4dc3cabba46fad28f5018aea516c560d497e9147 (diff)
Fix a bug when adding rules
Change-Id: I9363c342cca6822dad6ed66cc7dd48eb2776a2bc
Diffstat (limited to 'moonv4/moon_interface/tests/apitests')
-rw-r--r--moonv4/moon_interface/tests/apitests/populate_default_values.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/moonv4/moon_interface/tests/apitests/populate_default_values.py b/moonv4/moon_interface/tests/apitests/populate_default_values.py
index e489a232..5ad6098f 100644
--- a/moonv4/moon_interface/tests/apitests/populate_default_values.py
+++ b/moonv4/moon_interface/tests/apitests/populate_default_values.py
@@ -109,9 +109,9 @@ def create_policy(model_id, meta_rule_list):
add_action_assignments(policy_id, action_id, action_cat_id, action_data_id)
for meta_rule_name in scenario.rules:
- data_list = []
meta_rule_value = scenario.meta_rule[meta_rule_name]
for rule in scenario.rules[meta_rule_name]:
+ data_list = []
_meta_rule = list(meta_rule_value["value"])
for data_name in rule["rule"]:
category_name = _meta_rule.pop(0)