From 7bb53c64da2dcf88894bfd31503accdd81498f3d Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Wed, 3 Jun 2020 10:06:52 +0200 Subject: Update to new version 5.4 Signed-off-by: Thomas Duval Change-Id: Idcd868133d75928a1ffd74d749ce98503e0555ea --- python_moonclient/tests/unit_python/mock_config.py | 64 ---------------------- 1 file changed, 64 deletions(-) delete mode 100644 python_moonclient/tests/unit_python/mock_config.py (limited to 'python_moonclient/tests/unit_python/mock_config.py') 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"}]} - ) -- cgit 1.2.3-korg