aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsteroide <thomas.duval@orange.com>2018-04-23 10:32:06 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-23 10:32:06 +0000
commit18cc28cf6879cc3be6b68b2b752d03a4b66d4af4 (patch)
tree18a078389bee30cf8c036acd157a26953314a60a
parente8b0833f4aac21c5da5092099182af9b2362ea10 (diff)
parent35885501dc6d6a5423501b8dfa481abe28b475f8 (diff)
Merge "Fix a bug occuring only in Jenkins"
-rw-r--r--python_moonclient/tests/unit_python/mock_config.py26
1 files changed, 25 insertions, 1 deletions
diff --git a/python_moonclient/tests/unit_python/mock_config.py b/python_moonclient/tests/unit_python/mock_config.py
index 135964a..b6c42d7 100644
--- a/python_moonclient/tests/unit_python/mock_config.py
+++ b/python_moonclient/tests/unit_python/mock_config.py
@@ -37,4 +37,28 @@ def register_consul(m):
m.register_uri(
'GET', 'http://manager:30001',
json={}
- ) \ No newline at end of file
+ )
+ m.register_uri(
+ 'GET', 'http://keystone:5000/v3',
+ json={}
+ )
+ m.register_uri(
+ 'POST', 'http://keystone:5000/v3/auth/tokens',
+ headers={'X-Subject-Token': "111111111"}
+ )
+ m.register_uri(
+ 'DELETE', 'http://keystone:5000/v3/auth/tokens',
+ headers={'X-Subject-Token': "111111111"}
+ )
+ m.register_uri(
+ 'POST', 'http://keystone:5000/v3/users?name=testuser&domain_id=default',
+ json={"users": {}}
+ )
+ m.register_uri(
+ 'GET', 'http://keystone:5000/v3/users?name=testuser&domain_id=default',
+ json={"users": {}}
+ )
+ m.register_uri(
+ 'POST', 'http://keystone:5000/v3/users/',
+ json={"users": [{"id": "1111111111111"}]}
+ )