aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Abashin <abashinos@gmail.com>2017-08-16 14:51:36 +0300
committerIlia Abashin <abashinos@gmail.com>2017-08-16 14:51:36 +0300
commit70f68b94dc480b7878134a5f6222c28d9c8158c1 (patch)
tree8b175967200784d27b366f2dd0739a05ae744c8c
parent8dadac6738cd55282a071605b1ae78b8ef58c10e (diff)
Fixed payload issue in test_api_fetch_regions
Change-Id: I25c86f8b4dc3161ec614849cb53763e5e1f355f2 Signed-off-by: Ilia Abashin <abashinos@gmail.com>
-rw-r--r--app/test/fetch/api_fetch/test_api_fetch_regions.py2
-rw-r--r--app/test/fetch/api_fetch/test_data/api_fetch_regions.py36
2 files changed, 19 insertions, 19 deletions
diff --git a/app/test/fetch/api_fetch/test_api_fetch_regions.py b/app/test/fetch/api_fetch/test_api_fetch_regions.py
index fba8acf..7d1c16a 100644
--- a/app/test/fetch/api_fetch/test_api_fetch_regions.py
+++ b/app/test/fetch/api_fetch/test_api_fetch_regions.py
@@ -25,7 +25,7 @@ class TestApiFetchRegions(TestFetch):
fetcher = ApiFetchRegions()
fetcher.set_env(ENV)
- ApiAccess.auth_response["admin"] = AUTH_RESPONSE
+ ApiAccess.auth_response = AUTH_RESPONSE
ret = fetcher.get("test_id")
self.assertEqual(ret, REGIONS_RESULT,
"Can't get correct regions information")
diff --git a/app/test/fetch/api_fetch/test_data/api_fetch_regions.py b/app/test/fetch/api_fetch/test_data/api_fetch_regions.py
index f8bffd1..f189c91 100644
--- a/app/test/fetch/api_fetch/test_data/api_fetch_regions.py
+++ b/app/test/fetch/api_fetch/test_data/api_fetch_regions.py
@@ -12,24 +12,24 @@ ENV = "Mirantis-Liberty"
AUTH_RESPONSE = {
"admin": {
- "access": {
- "serviceCatalog": [
- {
- "endpoints": [
- {
- "adminURL": "http://192.168.0.2:8774/v2/8c1751e0ce714736a63fee3c776164da",
- "id": "274cbbd9fd6d4311b78e78dd3a1df51f",
- "internalURL": "http://192.168.0.2:8774/v2/8c1751e0ce714736a63fee3c776164da",
- "publicURL": "http://172.16.0.3:8774/v2/8c1751e0ce714736a63fee3c776164da",
- "region": "RegionOne"
- }
- ],
- "endpoints_links": [],
- "name": "nova",
- "type": "compute"
- }
- ]
- }
+ "access": {
+ "serviceCatalog": [
+ {
+ "endpoints": [
+ {
+ "adminURL": "http://192.168.0.2:8774/v2/8c1751e0ce714736a63fee3c776164da",
+ "id": "274cbbd9fd6d4311b78e78dd3a1df51f",
+ "internalURL": "http://192.168.0.2:8774/v2/8c1751e0ce714736a63fee3c776164da",
+ "publicURL": "http://172.16.0.3:8774/v2/8c1751e0ce714736a63fee3c776164da",
+ "region": "RegionOne"
+ }
+ ],
+ "endpoints_links": [],
+ "name": "nova",
+ "type": "compute"
+ }
+ ]
+ }
}
}