- Notifications
You must be signed in to change notification settings - Fork 4.9k
🐛 Update Survey Monkey Incremental Streams #13046
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
🐛 Update Survey Monkey Incremental Streams #13046
Conversation
| cc'ing @grubberr @marcosmarxm |
| /test connector=connectors/source-surveymonkey
|
| Hold up, integration tests dont seem to include responses! |
|
I've confirmed this actually fixes the issue! Can you please trigger the tests and publish if its all good? |
| /test connector=connectors/source-surveymonkey
Build PassedTest summary info: |
| /publish connector=connectors/source-surveymonkey auto-bump-version=false
|
* Update get_updated_state * Bump Dockerfile version and update docs * Fix updated_state * Fix bug in response incremental stream * Include incremental stream in integration tests configured catalog * Formatting * chore: bump version in source definitions * chore: update seed file Co-authored-by: Harshith Mullapudi <harshithmullapudi@gmail.com>
What
#11453
How
Fix
get_updated_statefunctionRecommended reading order
x.javay.python🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/SUMMARY.mddocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampledocs/integrations/README.mdairbyte-integrations/builds.mdAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing/publishcommand described hereUpdating a connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing/publishcommand described hereConnector Generator
-scaffoldin their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplatesthen checking in your changesTests
Unit
python -m pytest unit_tests
Test session starts (platform: darwin, Python 3.9.12, pytest 6.2.4, pytest-sugar 0.9.4)
cachedir: .pytest_cache
rootdir: /Users/danieldiamond/repos/airbyte, configfile: pytest.ini
plugins: sugar-0.9.4, requests-mock-1.9.3, mock-3.7.0, timeout-1.4.2
collecting ...
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource.test_get_updated_state_lesser[current_state0-lesser_date_record0-expected_state0] ✓14% █▌
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource.test_get_updated_state_lesser[current_state1-lesser_date_record1-expected_state1] ✓29% ██▉
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource.test_get_updated_state_lesser[current_state2-lesser_date_record2-expected_state2] ✓43% ████▍
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource.test_get_updated_state_bigger[current_state0-bigger_date_record0-expected_state0] ✓57% █████▊
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource.test_get_updated_state_bigger[current_state1-bigger_date_record1-expected_state1] ✓71% ███████▎
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource.test_get_updated_state_bigger[current_state2-bigger_date_record2-expected_state2] ✓86% ████████▋
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource.test_get_updated_state_from_null_state ✓100% ██████████
======================================================== warnings summary ========================================================
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_lesser[current_state0-lesser_date_record0-expected_state0]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_lesser[current_state1-lesser_date_record1-expected_state1]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_lesser[current_state2-lesser_date_record2-expected_state2]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_bigger[current_state0-bigger_date_record0-expected_state0]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_bigger[current_state1-bigger_date_record1-expected_state1]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_bigger[current_state2-bigger_date_record2-expected_state2]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_from_null_state
/Users/danieldiamond/repos/airbyte/airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py:15: DeprecationWarning: Call to deprecated class TokenAuthenticator. (Use airbyte_cdk.sources.streams.http.requests_native_auth.TokenAuthenticator instead) -- Deprecated since version 0.1.20.
authenticator = TokenAuthenticator(token=config["access_token"])
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py: 14 warnings
/Users/danieldiamond/.virtualenvs/airbyte/lib/python3.9/site-packages/deprecated/classic.py:173: DeprecationWarning: Call to deprecated class HttpAuthenticator. (Use requests.auth.AuthBase instead) -- Deprecated since version 0.1.20.
return old_new1(cls, *args, **kwargs)
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_lesser[current_state0-lesser_date_record0-expected_state0]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_lesser[current_state1-lesser_date_record1-expected_state1]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_lesser[current_state2-lesser_date_record2-expected_state2]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_bigger[current_state0-bigger_date_record0-expected_state0]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_bigger[current_state1-bigger_date_record1-expected_state1]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_bigger[current_state2-bigger_date_record2-expected_state2]
airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py::TestSurveymonkeySource::test_get_updated_state_from_null_state
/Users/danieldiamond/.virtualenvs/airbyte/lib/python3.9/site-packages/airbyte_cdk/sources/streams/http/http.py:42: DeprecationWarning: Call to deprecated class NoAuth. (Set
authenticator=Noneinstead) -- Deprecated since version 0.1.20.self._authenticator: HttpAuthenticator = NoAuth()
-- Docs: https://docs.pytest.org/en/stable/warnings.html
Results (0.16s):
7 passed
Integration
Put your integration tests output here.
Acceptance
Put your acceptance tests output here.