From f1e95cd95c05be145c3fde9f08404724937edf49 Mon Sep 17 00:00:00 2001 From: Ankitkumar Patel Date: Tue, 27 Mar 2018 11:54:53 -0400 Subject: Updates to address new HPA policies Issue-ID: OPTFRA-100 Change-Id: Iaff7b50dc5394546cc46591bef9b054cd6cde792 Signed-off-by: Ankitkumar Patel --- test/conductor/test_conductor_translation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/conductor') 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 -- cgit 1.2.3-korg