summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/tests/unit/resources/test_scenario.py')
-rw-r--r--testapi/opnfv_testapi/tests/unit/resources/test_scenario.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py b/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py
index 8c54e7d..466caaf 100644
--- a/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py
+++ b/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)