summaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/ci/test_check_deployment.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-12-20 07:51:17 +0000
committerLinda Wang <wangwulin@huawei.com>2017-12-20 08:10:21 +0000
commit81aa529403bedffb26f34994e3ee34a4516cee00 (patch)
tree7b4b348ae1858c27d5f99b4a91d01c77ce6b611e /functest/tests/unit/ci/test_check_deployment.py
parent7510ff6e0e8e66fa6aa85bd7fb5e698ed66256d8 (diff)
Get auth token when checking deployment
JIRA: FUNCTEST-900 Change-Id: Ie313d273a357a35b176b3918de108d85164776fa Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/tests/unit/ci/test_check_deployment.py')
-rw-r--r--functest/tests/unit/ci/test_check_deployment.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/functest/tests/unit/ci/test_check_deployment.py b/functest/tests/unit/ci/test_check_deployment.py
index fa2f2130..fc6368e5 100644
--- a/functest/tests/unit/ci/test_check_deployment.py
+++ b/functest/tests/unit/ci/test_check_deployment.py
@@ -63,9 +63,12 @@ class CheckDeploymentTesting(unittest.TestCase):
def test_check_auth_endpoint(self):
with mock.patch('functest.ci.check_deployment.verify_connectivity',
- return_value=True) as m:
+ return_value=True) as m,\
+ mock.patch('functest.ci.check_deployment.get_auth_token',
+ return_value='gAAAAABaOhXGS') as mock_token:
self.deployment.check_auth_endpoint()
self.assertTrue(m.called)
+ self.assertTrue(mock_token.called)
def test_check_auth_endpoint_not_reachable(self):
with mock.patch('functest.ci.check_deployment.verify_connectivity',