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

Add a dispatch test that verifies delete preconditions across datastores #704

Merged

Conversation

josephschorr
Copy link
Member

@josephschorr josephschorr commented Jul 19, 2022

This PR adds a small test for running delete relationships with preconditions against all datastore implementations

@josephschorr josephschorr requested a review from ecordell July 19, 2022 21:50
@josephschorr josephschorr marked this pull request as ready for review July 19, 2022 21:50
@josephschorr josephschorr requested a review from a team July 19, 2022 21:50
@josephschorr josephschorr enabled auto-merge July 19, 2022 21:50
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Jul 19, 2022
})
require.NoError(t, werr)

// Ensure the delete now works.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a MUST_NOT_MATCH after the write to verify that that also fails now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@josephschorr josephschorr force-pushed the delete-precondition-dispatch-test branch from 9fa548d to a535f14 Compare July 22, 2022 16:53
@josephschorr josephschorr force-pushed the delete-precondition-dispatch-test branch from a535f14 to 7a9016b Compare July 22, 2022 16:54
@josephschorr
Copy link
Member Author

Updated

@josephschorr josephschorr merged commit 20c7356 into authzed:main Jul 22, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 22, 2022
@josephschorr josephschorr deleted the delete-precondition-dispatch-test branch July 22, 2022 22:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants