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 Chargebee: add tests + fix broken coupon stream #10366

Merged
merged 3 commits into from
Feb 22, 2022

Conversation

Zirochkaa
Copy link
Contributor

@Zirochkaa Zirochkaa commented Feb 16, 2022

What

Closes #10192 and #10447.

How

Add tests to /unit_tests folder.
Send correct request parameter for sorting for coupon stream.

🚨 User Impact 🚨

Are there any breaking changes?
No.

Pre-merge Checklist

  • Grant edit access to maintainers (instructions)
  • 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
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

@Zirochkaa Zirochkaa self-assigned this Feb 16, 2022
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Feb 16, 2022

/test connector=connectors/source-chargebee

🕑 connectors/source-chargebee https://github.com/airbytehq/airbyte/actions/runs/1850129809
❌ connectors/source-chargebee https://github.com/airbytehq/airbyte/actions/runs/1850129809
🐛 https://gradle.com/s/y42jowyf65yqo

@github-actions github-actions bot added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Feb 16, 2022
@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 16, 2022 00:16 Inactive
@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 16, 2022 00:17 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 16, 2022 00:18 Inactive
@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@ce5c007). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head e399272 differs from pull request most recent head 475b5cb. Consider uploading reports for the commit 475b5cb to get more accurate results

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #10366   +/-   ##
=========================================
  Coverage          ?   85.18%           
=========================================
  Files             ?        4           
  Lines             ?      189           
  Branches          ?        0           
=========================================
  Hits              ?      161           
  Misses            ?       28           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce5c007...475b5cb. Read the comment docs.

@Zirochkaa Zirochkaa linked an issue Feb 18, 2022 that may be closed by this pull request
@Zirochkaa Zirochkaa changed the title Source Chargebee: add tests 🐛 Source Chargebee: add tests + fix broken coupon stream Feb 18, 2022
@Zirochkaa Zirochkaa force-pushed the oleh/10192-add-tests-chargebee branch from 19de85e to 54cc3fb Compare February 18, 2022 08:52
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Feb 18, 2022

/test connector=connectors/source-chargebee

🕑 connectors/source-chargebee https://github.com/airbytehq/airbyte/actions/runs/1863452302
❌ connectors/source-chargebee https://github.com/airbytehq/airbyte/actions/runs/1863452302
🐛 https://gradle.com/s/rzjztr6gey6yw

@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 18, 2022 08:54 Inactive
@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 18, 2022 08:54 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 18, 2022 08:55 Inactive
@Zirochkaa Zirochkaa force-pushed the oleh/10192-add-tests-chargebee branch from 54cc3fb to e712969 Compare February 18, 2022 09:09
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Feb 18, 2022

/test connector=connectors/source-chargebee

🕑 connectors/source-chargebee https://github.com/airbytehq/airbyte/actions/runs/1863524238
❌ connectors/source-chargebee https://github.com/airbytehq/airbyte/actions/runs/1863524238
🐛 https://gradle.com/s/eskkh3tnj33iw

@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 18, 2022 09:10 Inactive
@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 18, 2022 09:10 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 18, 2022 09:11 Inactive
@Zirochkaa
Copy link
Contributor Author

SAT:
image

Unit tests:
image

Fix `coupon` stream.
Add unit tests.
@Zirochkaa Zirochkaa force-pushed the oleh/10192-add-tests-chargebee branch from e712969 to 3337b84 Compare February 21, 2022 14:22
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Feb 21, 2022

/test connector=connectors/source-chargebee

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

Name                                                 Stmts   Miss  Cover
------------------------------------------------------------------------
source_acceptance_test/utils/__init__.py                 6      0   100%
source_acceptance_test/tests/__init__.py                 4      0   100%
source_acceptance_test/__init__.py                       2      0   100%
source_acceptance_test/tests/test_full_refresh.py       52      2    96%
source_acceptance_test/utils/asserts.py                 37      2    95%
source_acceptance_test/config.py                        74      6    92%
source_acceptance_test/utils/json_schema_helper.py     105     13    88%
source_acceptance_test/utils/common.py                  70     17    76%
source_acceptance_test/utils/compare.py                 62     23    63%
source_acceptance_test/tests/test_core.py              275    106    61%
source_acceptance_test/base.py                          10      4    60%
source_acceptance_test/utils/connector_runner.py       110     48    56%
source_acceptance_test/tests/test_incremental.py        69     38    45%
------------------------------------------------------------------------
TOTAL                                                  876    259    70%
Name                                Stmts   Miss  Cover
-------------------------------------------------------
source_chargebee/source.py             25      0   100%
source_chargebee/__init__.py            2      0   100%
source_chargebee/streams.py           143     21    85%
source_chargebee/rate_limiting.py      19      7    63%
-------------------------------------------------------
TOTAL                                 189     28    85%

@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 21, 2022 14:24 Inactive
@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 21, 2022 14:24 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 21, 2022 14:25 Inactive
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Feb 22, 2022

/test connector=connectors/source-chargebee

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

Name                                                 Stmts   Miss  Cover
------------------------------------------------------------------------
source_acceptance_test/utils/__init__.py                 6      0   100%
source_acceptance_test/tests/__init__.py                 4      0   100%
source_acceptance_test/__init__.py                       2      0   100%
source_acceptance_test/tests/test_full_refresh.py       52      2    96%
source_acceptance_test/utils/asserts.py                 37      2    95%
source_acceptance_test/config.py                        74      6    92%
source_acceptance_test/utils/json_schema_helper.py     105     13    88%
source_acceptance_test/utils/common.py                  70     17    76%
source_acceptance_test/utils/compare.py                 62     23    63%
source_acceptance_test/tests/test_core.py              275    106    61%
source_acceptance_test/base.py                          10      4    60%
source_acceptance_test/utils/connector_runner.py       110     48    56%
source_acceptance_test/tests/test_incremental.py        69     38    45%
------------------------------------------------------------------------
TOTAL                                                  876    259    70%
Name                                Stmts   Miss  Cover
-------------------------------------------------------
source_chargebee/source.py             25      0   100%
source_chargebee/__init__.py            2      0   100%
source_chargebee/streams.py           143     21    85%
source_chargebee/rate_limiting.py      19      7    63%
-------------------------------------------------------
TOTAL                                 189     28    85%

@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 22, 2022 07:52 Inactive
@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 22, 2022 07:52 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 22, 2022 07:54 Inactive
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Feb 22, 2022

/publish connector=connectors/source-chargebee

🕑 connectors/source-chargebee https://github.com/airbytehq/airbyte/actions/runs/1880328975
✅ connectors/source-chargebee https://github.com/airbytehq/airbyte/actions/runs/1880328975

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 22, 2022 08:05 Inactive
@Zirochkaa Zirochkaa merged commit e23c29d into master Feb 22, 2022
@Zirochkaa Zirochkaa deleted the oleh/10192-add-tests-chargebee branch February 22, 2022 08:20
@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 22, 2022 08:22 Inactive
@Zirochkaa Zirochkaa temporarily deployed to more-secrets February 22, 2022 08:22 Inactive
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 Chargebee: coupon stream is broken Improve code quality for chargebee
3 participants