diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2018-01-31 02:31:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-31 02:31:30 +0000 |
commit | f71b89d2e5ed5283d38f5442eb79b138e94600b2 (patch) | |
tree | 7a576e245e323ad06a51898a03ab388359901d0a /testapi/opnfv_testapi/tests/unit/handlers | |
parent | bd2e91686de6bc61b97ac66af47f830d1c82786a (diff) | |
parent | 1ba2540fb5b68aa904341a89ba2fae54ab46541e (diff) |
Merge "owner to creator"
Diffstat (limited to 'testapi/opnfv_testapi/tests/unit/handlers')
-rw-r--r-- | testapi/opnfv_testapi/tests/unit/handlers/test_base.py | 7 | ||||
-rw-r--r-- | testapi/opnfv_testapi/tests/unit/handlers/test_pod.py | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/testapi/opnfv_testapi/tests/unit/handlers/test_base.py b/testapi/opnfv_testapi/tests/unit/handlers/test_base.py index 6436b8b..9a7bc5c 100644 --- a/testapi/opnfv_testapi/tests/unit/handlers/test_base.py +++ b/testapi/opnfv_testapi/tests/unit/handlers/test_base.py @@ -35,20 +35,21 @@ class TestBase(testing.AsyncHTTPTestCase): details='zte pod 1', role='community-ci', _id=str(ObjectId()), - owner='ValidUser', + creator='ValidUser', creation_date=str(datetime.now())) self.pod_e = pod_models.Pod(name='zte-pod2', mode='metal', details='zte pod 2', role='production-ci', _id=str(ObjectId()), - owner='ValidUser', + creator='ValidUser', creation_date=str(datetime.now())) self.project_e = project_models.Project( name='functest', description='functest test', + creator='ValidUser', _id=str(ObjectId()), - create_date=str(datetime.now())) + creation_date=str(datetime.now())) self.req_d = None self.req_e = None diff --git a/testapi/opnfv_testapi/tests/unit/handlers/test_pod.py b/testapi/opnfv_testapi/tests/unit/handlers/test_pod.py index 2818513..d1eedc0 100644 --- a/testapi/opnfv_testapi/tests/unit/handlers/test_pod.py +++ b/testapi/opnfv_testapi/tests/unit/handlers/test_pod.py @@ -27,7 +27,7 @@ class TestPodBase(base.TestBase): def assert_get_body(self, pod, req=None): if not req: req = self.req_d - self.assertEqual(pod, pm.Pod(owner='ValidUser', **req.format())) + self.assertEqual(pod, pm.Pod(creator='ValidUser', **req.format())) self.assertIsNotNone(pod.creation_date) self.assertIsNotNone(pod._id) |