|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# (C) Copyright IBM Corp. 2025. |
| 2 | +# (C) Copyright IBM Corp. 2026. |
3 | 3 | # |
4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | # you may not use this file except in compliance with the License. |
@@ -573,7 +573,7 @@ def test_attach_tag_all_params(self): |
573 | 573 | """ |
574 | 574 | # Set up mock |
575 | 575 | url = preprocess_url('/v3/tags/attach') |
576 | | - mock_response = '{"results": [{"resource_id": "resource_id", "is_error": true}]}' |
| 576 | + mock_response = '{"results": [{"resource_id": "resource_id", "is_error": true, "message": "message"}]}' |
577 | 577 | responses.add( |
578 | 578 | responses.POST, |
579 | 579 | url, |
@@ -651,7 +651,7 @@ def test_attach_tag_required_params(self): |
651 | 651 | """ |
652 | 652 | # Set up mock |
653 | 653 | url = preprocess_url('/v3/tags/attach') |
654 | | - mock_response = '{"results": [{"resource_id": "resource_id", "is_error": true}]}' |
| 654 | + mock_response = '{"results": [{"resource_id": "resource_id", "is_error": true, "message": "message"}]}' |
655 | 655 | responses.add( |
656 | 656 | responses.POST, |
657 | 657 | url, |
@@ -716,7 +716,7 @@ def test_detach_tag_all_params(self): |
716 | 716 | """ |
717 | 717 | # Set up mock |
718 | 718 | url = preprocess_url('/v3/tags/detach') |
719 | | - mock_response = '{"results": [{"resource_id": "resource_id", "is_error": true}]}' |
| 719 | + mock_response = '{"results": [{"resource_id": "resource_id", "is_error": true, "message": "message"}]}' |
720 | 720 | responses.add( |
721 | 721 | responses.POST, |
722 | 722 | url, |
@@ -788,7 +788,7 @@ def test_detach_tag_required_params(self): |
788 | 788 | """ |
789 | 789 | # Set up mock |
790 | 790 | url = preprocess_url('/v3/tags/detach') |
791 | | - mock_response = '{"results": [{"resource_id": "resource_id", "is_error": true}]}' |
| 791 | + mock_response = '{"results": [{"resource_id": "resource_id", "is_error": true, "message": "message"}]}' |
792 | 792 | responses.add( |
793 | 793 | responses.POST, |
794 | 794 | url, |
@@ -1220,6 +1220,7 @@ def test_tag_results_serialization(self): |
1220 | 1220 | 'crn:v1:staging:public:resource-controller::a/5c2ac0d93c69e82c6c9c7c78dc4beda3::resource-group:1c061f4485b34360a8f8ee049880dc13' |
1221 | 1221 | ) |
1222 | 1222 | tag_results_item_model['is_error'] = False |
| 1223 | + tag_results_item_model['message'] = 'testString' |
1223 | 1224 |
|
1224 | 1225 | # Construct a json representation of a TagResults model |
1225 | 1226 | tag_results_model_json = {} |
@@ -1255,6 +1256,7 @@ def test_tag_results_item_serialization(self): |
1255 | 1256 | tag_results_item_model_json = {} |
1256 | 1257 | tag_results_item_model_json['resource_id'] = 'testString' |
1257 | 1258 | tag_results_item_model_json['is_error'] = True |
| 1259 | + tag_results_item_model_json['message'] = 'testString' |
1258 | 1260 |
|
1259 | 1261 | # Construct a model instance of TagResultsItem by calling from_dict on the json representation |
1260 | 1262 | tag_results_item_model = TagResultsItem.from_dict(tag_results_item_model_json) |
|
0 commit comments