diff options
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/tests')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py b/utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py index 8c54e7d74..466caaf13 100644 --- a/utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py +++ b/utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py @@ -172,7 +172,7 @@ class TestScenarioUpdate(TestScenarioBase): def _update_url_fixture(xstep): def wrapper(self, *args, **kwargs): locator = None - if item == 'projects': + if item in ['projects', 'owner']: locator = 'installer={}&version={}'.format( self.installer, self.version) @@ -294,6 +294,13 @@ class TestScenarioUpdate(TestScenarioBase): projects) return deletes, scenario + @update_url_fixture('owner') + @update_partial('_update', '_success') + def test_changeOwner(self, scenario): + new_owner = 'new_owner' + scenario['installers'][0]['versions'][0]['owner'] = 'www' + return new_owner, scenario + def _add(self, update_req, new_scenario): return self.post_direct_url(self.update_url, update_req) |