aboutsummaryrefslogtreecommitdiffstats
path: root/test/conductor
diff options
context:
space:
mode:
Diffstat (limited to 'test/conductor')
-rw-r--r--test/conductor/test_conductor_translation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/conductor/test_conductor_translation.py b/test/conductor/test_conductor_translation.py
index b277b6a..0c7da94 100644
--- a/test/conductor/test_conductor_translation.py
+++ b/test/conductor/test_conductor_translation.py
@@ -44,7 +44,9 @@ class TestConductorTranslation(unittest.TestCase):
pass
def test_gen_demands(self):
- res = tr.gen_demands(self.request_json, self.policies)
+ # need to run this only on vnf policies
+ vnf_policies = [x for x in self.policies if x["content"]["policyType"] == "vnfPolicy"]
+ res = tr.gen_demands(self.request_json, vnf_policies)
assert res is not None