-
Notifications
You must be signed in to change notification settings - Fork 31
Fixed the integration tests by skipping "data_extension.my_test" stream #85
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,17 +127,20 @@ def expected_metadata(self): | |
| self.PRIMARY_KEYS: {"ID"}, | ||
| self.REPLICATION_METHOD: self.INCREMENTAL, | ||
| self.REPLICATION_KEYS: {"ModifiedDate"}, | ||
| } | ||
| } | ||
| } | ||
|
|
||
| def streams_to_select(self): | ||
| def streams_to_select(self, is_discovery=False): | ||
| # events: there are 5 events and the API call window is of 10 minutes | ||
| # so there will be a lot of API calls for every test | ||
| # list_subscriber: as the API window is of 1 day, the tests took | ||
| # 30 minutes to run 3 tests, the test run time will be increased | ||
| # when all the tests are combined | ||
| # subscriber: it is the child stream of 'list_subscriber' | ||
| return set(self.expected_metadata().keys()) - {'event', 'list_subscriber', 'subscriber'} | ||
| if is_discovery: | ||
| return set(self.expected_metadata().keys()) | ||
|
|
||
| return set(self.expected_metadata().keys()) - {'event', 'list_subscriber', 'subscriber', 'data_extension.my_test'} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you investigate why this stream is now failing? Is this a problem with test data, or a problem with the tap? When we lose coverage on a stream we need to root cause the issue. If the root cause cannot be easily determined then a backlog ticket should be created to investigate the issue. |
||
|
|
||
| def expected_replication_keys(self): | ||
| return {table: properties.get(self.REPLICATION_KEYS, set()) | ||
|
|
||
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.
Defining this logic in base in an anti-pattern. We should not abstract away the streams under test. It should be defined at the test level.