diff options
author | Ankitkumar Patel <ankit@research.att.com> | 2018-03-27 11:54:53 -0400 |
---|---|---|
committer | Ankitkumar Patel <ankit@research.att.com> | 2018-03-27 11:55:13 -0400 |
commit | f1e95cd95c05be145c3fde9f08404724937edf49 (patch) | |
tree | 9b189af4508a2450dc92132e761beebed18ec168 /test/conductor/test_conductor_translation.py | |
parent | 4de3bb8c9f62f15d6aeb965f9d4c47edb7efd2e9 (diff) |
Updates to address new HPA policies
Issue-ID: OPTFRA-100
Change-Id: Iaff7b50dc5394546cc46591bef9b054cd6cde792
Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
Diffstat (limited to 'test/conductor/test_conductor_translation.py')
-rw-r--r-- | test/conductor/test_conductor_translation.py | 4 |
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 |