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

refactor: Migrate mutation-relation tests to new framework #1109

Merged
merged 12 commits into from
Feb 16, 2023

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Part of #1108

Description

Migrates mutation-relation integration tests to the new framework. Most of the work was done whilst waiting on another review. I'm parking this migration work for now and will otherwise be focusing on SchemaUpdates.

@AndrewSisley AndrewSisley added area/testing Related to any test or testing suite refactor This issue specific to or requires *notable* refactoring of existing codebases and components action/no-benchmark Skips the action that runs the benchmark. labels Feb 16, 2023
@AndrewSisley AndrewSisley added this to the DefraDB v0.5 milestone Feb 16, 2023
@AndrewSisley AndrewSisley requested a review from a team February 16, 2023 16:50
@AndrewSisley AndrewSisley self-assigned this Feb 16, 2023
Copy link
Contributor

@orpheuslummis orpheuslummis left a comment

Choose a reason for hiding this comment

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

LGTM

TransactionId: 0,

testUtils.TransactionRequest2{
// Delete a liniked book that exists.
Copy link
Contributor

Choose a reason for hiding this comment

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

multiple instances of that typo: liniked

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😁 sorted lol

Copy link
Contributor

Choose a reason for hiding this comment

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

See it. Say it. Sorted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code terrorists have won 😆 (also, I had no idea that phrase was/is used over here - thought it was a British thing lol)

Copy link
Contributor

Choose a reason for hiding this comment

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

I've only ever heard that in London. I'm glad Canada reached (to some extent) independence.

@AndrewSisley AndrewSisley merged commit a6995d6 into develop Feb 16, 2023
@AndrewSisley AndrewSisley deleted the sisley/refactor/I1087-migrate-int-tests-1 branch February 16, 2023 17:46
shahzadlone pushed a commit that referenced this pull request Apr 13, 2023
* Add mutation/relation wrapper

* Migrate TestTransactionalCreationAndLinkingOfRelationalDocumentsForward

* Migrate TestTransactionalCreationAndLinkingOfRelationalDocumentsBackward

* Migrate TestRelationalDeletionOfADocumentUsingSingleKey_Success

* Migrate TestTxnDeletionOfRelatedDocFromPrimarySideForwardDirection

* Migrate TestTxnDeletionOfRelatedDocFromPrimarySideBackwardDirection

* Migrate TestATxnCanReadARecordThatIsDeletedInANonCommitedTxnForwardDirection

* Migrate TestATxnCanReadARecordThatIsDeletedInANonCommitedTxnBackwardDirection

* Migrate TestTxnDeletionOfRelatedDocFromNonPrimarySideForwardDirection

* Migrate TestTxnDeletionOfRelatedDocFromNonPrimarySideBackwardDirection

* Remove legacy framework wrapper
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
…work#1109)

* Add mutation/relation wrapper

* Migrate TestTransactionalCreationAndLinkingOfRelationalDocumentsForward

* Migrate TestTransactionalCreationAndLinkingOfRelationalDocumentsBackward

* Migrate TestRelationalDeletionOfADocumentUsingSingleKey_Success

* Migrate TestTxnDeletionOfRelatedDocFromPrimarySideForwardDirection

* Migrate TestTxnDeletionOfRelatedDocFromPrimarySideBackwardDirection

* Migrate TestATxnCanReadARecordThatIsDeletedInANonCommitedTxnForwardDirection

* Migrate TestATxnCanReadARecordThatIsDeletedInANonCommitedTxnBackwardDirection

* Migrate TestTxnDeletionOfRelatedDocFromNonPrimarySideForwardDirection

* Migrate TestTxnDeletionOfRelatedDocFromNonPrimarySideBackwardDirection

* Remove legacy framework wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/testing Related to any test or testing suite refactor This issue specific to or requires *notable* refactoring of existing codebases and components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants