diff options
author | Thomas Duval <thomas.duval@orange.com> | 2018-04-23 12:31:22 +0200 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2018-04-23 12:31:22 +0200 |
commit | 35885501dc6d6a5423501b8dfa481abe28b475f8 (patch) | |
tree | 6814e565ac88288152d647aab63f24939c6fe0f8 /python_moonclient | |
parent | aef6a3af1badef9e8de50f288537528af6af44af (diff) |
Fix a bug occuring only in Jenkins
Change-Id: I2ba0c6e435e62450f9da57846ca05aeddf73f4d0
Diffstat (limited to 'python_moonclient')
-rw-r--r-- | python_moonclient/tests/unit_python/mock_config.py | 26 |
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 135964ab..b6c42d76 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"}]} + ) |