Skip to content

Commit 7cc4837

Browse files
authored
Merge pull request #11 from IBM/fix_test_image_manifest
fix(container_registry_v1): Fix test_get_image_manifest to correctly …
2 parents 361c454 + 1fe59c5 commit 7cc4837

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

ibm_container_registry/container_registry_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
# IBM OpenAPI SDK Code Generator Version: 3.29.1-b338fb38-20210313-010605
18-
18+
1919
"""
2020
Management interface for IBM Cloud Container Registry
2121
"""

ibm_container_registry/vulnerability_advisor_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
# IBM OpenAPI SDK Code Generator Version: 3.29.1-b338fb38-20210313-010605
18-
18+
1919
"""
2020
Management interface of Vulnerability Advisor for IBM Cloud Container Registry
2121
"""

test/integration/test_container_registry_v1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ def test_get_image_manifest(self):
173173

174174
assert get_image_manifest_response.get_status_code() == 200
175175
image_manifest = get_image_manifest_response.get_result()
176+
if not isinstance(image_manifest, dict):
177+
image_manifest = json.loads(image_manifest.text)
176178
assert image_manifest.get("schemaVersion") == 2
177179

178180
@needscredentials

0 commit comments

Comments
 (0)