From 70f68b94dc480b7878134a5f6222c28d9c8158c1 Mon Sep 17 00:00:00 2001 From: Ilia Abashin Date: Wed, 16 Aug 2017 14:51:36 +0300 Subject: Fixed payload issue in test_api_fetch_regions Change-Id: I25c86f8b4dc3161ec614849cb53763e5e1f355f2 Signed-off-by: Ilia Abashin --- app/test/fetch/api_fetch/test_api_fetch_regions.py | 2 +- .../fetch/api_fetch/test_data/api_fetch_regions.py | 36 +++++++++++----------- 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" + } + ] + } } } -- cgit 1.2.3-korg