aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-12-21 08:45:29 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-21 08:45:29 +0000
commit582de12734688e080fd421c46780ae9ea380b27b (patch)
tree02db804f4c9d68d04b4eeba6503d860a6e1b4558 /functest/tests
parentf09e17ef9b94d3cdb0b28340e08ce7966c500140 (diff)
parent81aa529403bedffb26f34994e3ee34a4516cee00 (diff)
Merge "Get auth token when checking deployment"
Diffstat (limited to 'functest/tests')
-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',