-
Notifications
You must be signed in to change notification settings - Fork 11
Adds tests for snapshot atomicity and iteration #28
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
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
53be2c2
snapshot iterator
dylanlott ee5ea8b
adds lifecycle test for proper cleanup
dylanlott 7aa9acd
linter fixes
dylanlott 17517bf
Merge branch 'main' of github.com:ConduitIO/conduit-connector-postgre…
dylanlott 4242433
refactors tx handling to use pgx.Tx
dylanlott a549d9f
use is instead of i for package reference
dylanlott 3292e8c
clean up and review feedback
dylanlott 3f20c27
includes table name in snapshot positions
dylanlott 0c597bf
use pooled connection in tests
dylanlott c12791e
returns snapshot incomplete error when snapshot is interrupted
dylanlott c9c958d
linter fix
dylanlott 9c97b1b
refactors the snapshot iterator setup in tests
dylanlott f17f690
adds full iteration test
dylanlott 8173c48
WIP iteration tests
dylanlott b9e2a1d
checks for context errors in Next
dylanlott 21c8b05
Merge branch 'dylan/snapshot-iterator' of github.com:ConduitIO/condui…
dylanlott 659faf9
adds log or return behavior to Teardown
dylanlott 896e5c6
Merge branch 'dylan/teardown' of github.com:ConduitIO/conduit-connect…
dylanlott f60638a
update comment
dylanlott 19ca9e0
handle rollback error in loadRows
dylanlott 27ba7c9
Merge branch 'dylan/snapshot-iterator' into dylan/teardown
dylanlott 784bc9e
Merge branch 'dylan/teardown' into dylan/test-iteration
dylanlott 4c9630a
use query row instead of query in test setup
dylanlott b46f343
returns snapshot incomplete error when snapshot is interrupted
dylanlott 17902c3
linter fix
dylanlott b544e42
adds log or return behavior to Teardown
dylanlott ab42b0b
Merge branch 'dylan/teardown' of github.com:ConduitIO/conduit-connect…
dylanlott 8cfa075
linter fixes
dylanlott 7287006
remove unnecessary log
dylanlott c1add03
Merge branch 'main' of github.com:ConduitIO/conduit-connector-postgre…
dylanlott 22e5c1a
use logOrReturn in Teardown
dylanlott 2d3db93
Merge branch 'dylan/teardown' into dylan/test-iteration
dylanlott 264aed8
Merge branch 'main' of github.com:ConduitIO/conduit-connector-postgre…
dylanlott 3fe21b8
Merge branch 'main' of github.com:ConduitIO/conduit-connector-postgre…
dylanlott 875780a
WIP refactoring createTestSnapshotIterator
dylanlott 53f6d90
WIP refactoring createTestSnapshot
dylanlott ff935b5
refactor context, pool, table, and snaphost creation in logrepl/snaps…
dylanlott 14c2c8b
linter fix
dylanlott f084548
refactor snapshot tests
dylanlott 18125a4
updates tests and comments
dylanlott File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sidenote: watch out, using the same
isinstance in subtests means that once the first subtest fails the whole test will stop and no other subtests will even be run. It would be better to callis.Newfor each subtest. That said, this won't be a problem if we split the subtests into separate tests.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's good to know 👍 Thanks!