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

🎉 Source Zuora: Add OAuth support for Airbyte Cloud, Migrated to new CI Sandbox #6575

Merged
merged 10 commits into from
Oct 6, 2021

Conversation

bazarnov
Copy link
Collaborator

@bazarnov bazarnov commented Sep 30, 2021

What

#6298 - Source Zuora: support oauth

How

  • edited spec.json
  • added more endpoints to connect to (as options in UI)
  • migrated to new CI Sandbox (airbyte-integration)
  • added support of streams without any cursor (updatedDate, createdDate) - for such cases, we fetch the whole object using Full-Refresh mode.
  • edited integration-test.py

Pre-merge Checklist

Updating a connector

Community member or Airbyter

  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions
  • Connector version bumped like described here

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • Credentials added to Github CI. Instructions.
  • /test connector=connectors/<name> command is passing.
  • New Connector version released on Dockerhub by running the /publish command described here

@bazarnov bazarnov self-assigned this Sep 30, 2021
@github-actions github-actions bot added the area/connectors Connector related issues label Sep 30, 2021
@bazarnov bazarnov linked an issue Sep 30, 2021 that may be closed by this pull request
@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Sep 30, 2021
@bazarnov bazarnov temporarily deployed to more-secrets September 30, 2021 14:54 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 1, 2021 11:21 Inactive
@bazarnov bazarnov linked an issue Oct 2, 2021 that may be closed by this pull request
Copy link
Contributor

@antixar antixar left a comment

Choose a reason for hiding this comment

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

are you sure that you added oauth properties to the spec file? I see changes for sandbox options only.

@bazarnov
Copy link
Collaborator Author

bazarnov commented Oct 4, 2021

are you sure that you added oauth properties to the spec file? I see changes for sandbox options only.

Haven't manage to submit the latest changes yet) The tests on new CI Sandbox require to update some parts of the connector.

@bazarnov bazarnov requested a review from antixar October 4, 2021 13:02
@bazarnov bazarnov temporarily deployed to more-secrets October 4, 2021 13:03 Inactive
@bazarnov bazarnov temporarily deployed to more-secrets October 4, 2021 14:06 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 4, 2021 14:07 Inactive
@bazarnov bazarnov temporarily deployed to more-secrets October 4, 2021 14:35 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 4, 2021 14:36 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 5, 2021 08:26 Inactive
@bazarnov
Copy link
Collaborator Author

bazarnov commented Oct 5, 2021

/test connector=connectors/source-zuora

🕑 connectors/source-zuora https://github.com/airbytehq/airbyte/actions/runs/1307677875
❌ connectors/source-zuora https://github.com/airbytehq/airbyte/actions/runs/1307677875
🐛 https://gradle.com/s/srrubn5ho7xlk
🕑 connectors/source-zuora https://github.com/airbytehq/airbyte/actions/runs/1307677875
✅ connectors/source-zuora https://github.com/airbytehq/airbyte/actions/runs/1307677875
Python tests coverage:

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        74      8    89%
	 source_acceptance_test/conftest.py                     108    108     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              197     93    53%
	 source_acceptance_test/tests/test_full_refresh.py       18     11    39%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  41     24    41%
	 source_acceptance_test/utils/compare.py                 47     20    57%
	 source_acceptance_test/utils/connector_runner.py        82     49    40%
	 source_acceptance_test/utils/json_schema_helper.py     111     11    90%
	 ------------------------------------------------------------------------
	 TOTAL                                                  853    415    51%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                     Stmts   Miss  Cover
	 ------------------------------------------------------------
	 source_zuora/__init__.py                     2      0   100%
	 source_zuora/source.py                     207     47    77%
	 source_zuora/zuora_auth.py                  10      0   100%
	 source_zuora/zuora_endpoint.py               4      0   100%
	 source_zuora/zuora_errors.py                24     10    58%
	 source_zuora/zuora_excluded_streams.py       2      0   100%
	 ------------------------------------------------------------
	 TOTAL                                      249     57    77%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                     Stmts   Miss  Cover
	 ------------------------------------------------------------
	 source_zuora/__init__.py                     2      2     0%
	 source_zuora/source.py                     207    207     0%
	 source_zuora/zuora_auth.py                  10     10     0%
	 source_zuora/zuora_endpoint.py               4      4     0%
	 unit_tests/unit_test.py::test_example �[32mPASSED�[0m/actions-runner/_work/airbyte/airbyte/airbyte-integrations/connectors/source-zuora/.venv/lib/python3.8/site-packages/coverage/control.py:761: CoverageWarning: No data was collected. (no-data-collected)
	   self._warn("No data was collected.", slug="no-data-collected")
	 source_zuora/zuora_errors.py                24     24     0%
	 source_zuora/zuora_excluded_streams.py       2      2     0%
	 ------------------------------------------------------------
	 TOTAL                                      249    249     0%

@bazarnov bazarnov temporarily deployed to more-secrets October 5, 2021 11:50 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 5, 2021 11:51 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 5, 2021 12:20 Inactive
Copy link
Contributor

@antixar antixar left a comment

Choose a reason for hiding this comment

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

looks good!

@bazarnov bazarnov temporarily deployed to more-secrets October 5, 2021 18:06 Inactive
@bazarnov bazarnov temporarily deployed to more-secrets October 5, 2021 18:10 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 5, 2021 18:12 Inactive
@bazarnov
Copy link
Collaborator Author

bazarnov commented Oct 6, 2021

/test connector=connectors/source-zuora

🕑 connectors/source-zuora https://github.com/airbytehq/airbyte/actions/runs/1311005112
✅ connectors/source-zuora https://github.com/airbytehq/airbyte/actions/runs/1311005112
Python tests coverage:

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        74      8    89%
	 source_acceptance_test/conftest.py                     108    108     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              197     93    53%
	 source_acceptance_test/tests/test_full_refresh.py       18     11    39%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  41     24    41%
	 source_acceptance_test/utils/compare.py                 47     20    57%
	 source_acceptance_test/utils/connector_runner.py        82     49    40%
	 source_acceptance_test/utils/json_schema_helper.py     111     11    90%
	 ------------------------------------------------------------------------
	 TOTAL                                                  853    415    51%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                     Stmts   Miss  Cover
	 ------------------------------------------------------------
	 source_zuora/__init__.py                     2      0   100%
	 source_zuora/source.py                     208     48    77%
	 source_zuora/zuora_auth.py                  10      0   100%
	 source_zuora/zuora_endpoint.py               4      0   100%
	 source_zuora/zuora_errors.py                24     10    58%
	 source_zuora/zuora_excluded_streams.py       2      0   100%
	 ------------------------------------------------------------
	 TOTAL                                      250     58    77%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                     Stmts   Miss  Cover
	 ------------------------------------------------------------
	 source_zuora/__init__.py                     2      2     0%
	 source_zuora/source.py                     208    208     0%
	 source_zuora/zuora_auth.py                  10     10     0%
	 source_zuora/zuora_endpoint.py               4      4     0%
	 source_zuora/zuora_errors.py                24     24     0%
	 source_zuora/zuora_excluded_streams.py       2      2     0%
	 ------------------------------------------------------------
	 TOTAL                                      250    250     0%

@bazarnov bazarnov temporarily deployed to more-secrets October 6, 2021 08:13 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 6, 2021 08:14 Inactive
@bazarnov bazarnov temporarily deployed to more-secrets October 6, 2021 09:17 Inactive
@bazarnov bazarnov temporarily deployed to more-secrets October 6, 2021 11:11 Inactive
@bazarnov
Copy link
Collaborator Author

bazarnov commented Oct 6, 2021

/publish connector=connectors/source-zuora

🕑 connectors/source-zuora https://github.com/airbytehq/airbyte/actions/runs/1311763819
✅ connectors/source-zuora https://github.com/airbytehq/airbyte/actions/runs/1311763819

@jrhizor jrhizor temporarily deployed to more-secrets October 6, 2021 12:03 Inactive
@bazarnov bazarnov temporarily deployed to more-secrets October 6, 2021 13:40 Inactive
@bazarnov bazarnov merged commit 55dae7f into master Oct 6, 2021
@bazarnov bazarnov deleted the bazarnov/6298-zuora-oauth branch October 6, 2021 14:10
schlattk pushed a commit to schlattk/airbyte that referenced this pull request Jan 4, 2022
…w CI Sandbox (airbytehq#6575)

* edited spec.json
* added more endpoints to connect to (as options in UI)
* migrated to new CI Sandbox (airbyte-integration)
* added support of streams without any cursor (updatedDate, createdDate) - for such cases, we fetch the whole object * * using Full-Refresh mode.
* edited integration-test.py
@lazebnyi lazebnyi removed their request for review May 30, 2022 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source Zuora: support oauth Use new Zuora Sandbox in CI
3 participants