diff --git a/src/rpdk/core/contract/suite/resource/handler_update_invalid.py b/src/rpdk/core/contract/suite/resource/handler_update_invalid.py index 6a0ca101..85eff212 100644 --- a/src/rpdk/core/contract/suite/resource/handler_update_invalid.py +++ b/src/rpdk/core/contract/suite/resource/handler_update_invalid.py @@ -10,12 +10,16 @@ @pytest.mark.update +def contract_update_without_create(resource_client): + test_update_without_create(resource_client) + + @failed_event( error_code=HandlerErrorCode.NotFound, msg="An update handler MUST return FAILED with a NotFound error code\ if the resource did not exist prior to the update request", ) -def contract_update_without_create(resource_client): +def test_update_without_create(resource_client): create_request = resource_client.generate_create_example() update_request = resource_client.generate_update_example(create_request) _status, response, _error = resource_client.call_and_assert( @@ -25,4 +29,5 @@ def contract_update_without_create(resource_client): "message" ], "The progress event MUST return an error message\ when the status is failed" + return _error