Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asserts that primary id has not got changed throughout update #498

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/rpdk/core/contract/suite/handler_commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ def test_update_success(resource_client, update_model, current_model):
_status, response, _error_code = resource_client.call_and_assert(
Action.UPDATE, OperationStatus.SUCCESS, update_model, current_model
)
resource_client.is_primary_identifier_equal(
resource_client.primary_identifier_paths,
current_model,
response["resourceModel"],
)
resource_client.assert_write_only_property_does_not_exist(response["resourceModel"])
# The response model should be the same as the create output model,
# except the update-able properties should be overridden.
Expand Down