aboutsummaryrefslogtreecommitdiffstats
path: root/python_moonclient/tests/unit_python/mock_config.py
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2020-06-03 10:06:52 +0200
committerThomas Duval <thomas.duval@orange.com>2020-06-03 10:06:52 +0200
commit7bb53c64da2dcf88894bfd31503accdd81498f3d (patch)
tree4310e12366818af27947b5e2c80cb162da93a4b5 /python_moonclient/tests/unit_python/mock_config.py
parentcbea4e360e9bfaa9698cf7c61c83c96a1ba89b8c (diff)
Update to new version 5.4HEADstable/jermamaster
Signed-off-by: Thomas Duval <thomas.duval@orange.com> Change-Id: Idcd868133d75928a1ffd74d749ce98503e0555ea
Diffstat (limited to 'python_moonclient/tests/unit_python/mock_config.py')
-rw-r--r--python_moonclient/tests/unit_python/mock_config.py64
1 files changed, 0 insertions, 64 deletions
diff --git a/python_moonclient/tests/unit_python/mock_config.py b/python_moonclient/tests/unit_python/mock_config.py
deleted file mode 100644
index b6c42d76..00000000
--- a/python_moonclient/tests/unit_python/mock_config.py
+++ /dev/null
@@ -1,64 +0,0 @@
-from . import utilities
-
-
-components_manager_mock = {
- "port": 8082,
- "bind": "0.0.0.0",
- "hostname": "manager",
- "container": "wukongsun/moon_manager:v4.3.1",
- "external": {
- "port": 30001,
- "hostname": "88.88.88.2"
- }
-}
-
-
-openstack_keystone_mock = {
- "url": "http://keystone:5000/v3",
- "user": "admin",
- "password": "p4ssw0rd",
- "domain": "default",
- "project": "admin",
- "check_token": False,
- "certificate": False,
- "external": {
- "url": "http://88.88.88.2:30006/v3"
- }
-}
-
-
-def register_consul(m):
- for component in utilities.COMPONENTS:
- m.register_uri(
- 'GET', 'http://consul:8500/v1/kv/{}'.format(component),
- json=[{'Key': component, 'Value': utilities.get_b64_conf(component)}]
- )
-
- m.register_uri(
- 'GET', 'http://manager:30001',
- json={}
- )
- 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"}]}
- )