aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_db/tests/unit_python/mock_components.py
diff options
context:
space:
mode:
authorRHE <rebirthmonkey@gmail.com>2017-12-21 15:47:26 +0100
committerRHE <rebirthmonkey@gmail.com>2017-12-21 15:47:26 +0100
commit33628e6f9a4e4b9e22d4b02e931663de41107050 (patch)
tree624d6def220989b1cea40051da71a151c366a5a7 /moonv4/moon_db/tests/unit_python/mock_components.py
parentcb23b06b64af120e0c6775dd2d59f6d970418995 (diff)
python_moondb rename
Change-Id: I6442b6f96393b4fcba8a6352ecb4ad845e6346c0 Signed-off-by: RHE <rebirthmonkey@gmail.com>
Diffstat (limited to 'moonv4/moon_db/tests/unit_python/mock_components.py')
-rw-r--r--moonv4/moon_db/tests/unit_python/mock_components.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/moonv4/moon_db/tests/unit_python/mock_components.py b/moonv4/moon_db/tests/unit_python/mock_components.py
deleted file mode 100644
index a0319e1a..00000000
--- a/moonv4/moon_db/tests/unit_python/mock_components.py
+++ /dev/null
@@ -1,27 +0,0 @@
-import utilities
-
-COMPONENTS = (
- "logging",
- "openstack/keystone",
- "database",
- "slave",
- "components/manager",
- "components/orchestrator",
- "components/interface",
-)
-
-
-def register_components(m):
- for component in 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://consul:8500/v1/kv/components?recurse=true',
- json=[
- {"Key": key, "Value": utilities.get_b64_conf(key)} for key in COMPONENTS
- ],
- # json={'Key': "components", 'Value': get_b64_conf("components")}
- ) \ No newline at end of file