summaryrefslogtreecommitdiffstats
path: root/test/conductor/test_conductor_translation.py
diff options
context:
space:
mode:
authorSastry Isukapalli <sastry@research.att.com>2018-03-27 17:23:40 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-27 17:23:40 +0000
commita775ec8b904a0ea7ed863726ffe7f7d9b363d47a (patch)
tree890e6ecab0262132c7f08c6df1ac5177c4b30f3c /test/conductor/test_conductor_translation.py
parent477092abdb41449158538dfd49d8cd25c5c8e42a (diff)
parentf1e95cd95c05be145c3fde9f08404724937edf49 (diff)
Merge "Updates to address new HPA policies"
Diffstat (limited to 'test/conductor/test_conductor_translation.py')
-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