Skip to content

Commit

Permalink
Source Amazon Seller Partner: fix NoAuth deprecation warning (airbyte…
Browse files Browse the repository at this point in the history
  • Loading branch information
lizdeika authored Jan 4, 2022
1 parent cece4c6 commit 5be2424
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "e55879a8-0ef8-4557-abcf-ab34c53ec460",
"name": "Amazon Seller Partner",
"dockerRepository": "airbyte/source-amazon-seller-partner",
"dockerImageTag": "0.2.9",
"dockerImageTag": "0.2.10",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/amazon-seller-partner",
"icon": "amazonsellerpartner.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
- name: Amazon Seller Partner
sourceDefinitionId: e55879a8-0ef8-4557-abcf-ab34c53ec460
dockerRepository: airbyte/source-amazon-seller-partner
dockerImageTag: 0.2.9
dockerImageTag: 0.2.10
sourceType: api
documentationUrl: https://docs.airbyte.io/integrations/sources/amazon-seller-partner
icon: amazonsellerpartner.svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-amazon-seller-partner:0.2.9"
- dockerImage: "airbyte/source-amazon-seller-partner:0.2.10"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/amazon-seller-partner"
changelogUrl: "https://docs.airbyte.io/integrations/sources/amazon-seller-partner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN pip install .
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.2.9
LABEL io.airbyte.version=0.2.10
LABEL io.airbyte.name=airbyte/source-amazon-seller-partner
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from airbyte_cdk.models import SyncMode
from airbyte_cdk.sources.streams import Stream
from airbyte_cdk.sources.streams.http import HttpStream
from airbyte_cdk.sources.streams.http.auth import HttpAuthenticator, NoAuth
from airbyte_cdk.sources.streams.http.auth import HttpAuthenticator
from airbyte_cdk.sources.streams.http.exceptions import DefaultBackoffException, RequestBodyException
from airbyte_cdk.sources.streams.http.http import BODY_REQUEST_METHODS
from airbyte_cdk.sources.streams.http.rate_limiting import default_backoff_handler
Expand Down Expand Up @@ -152,7 +152,7 @@ def __init__(
period_in_days: Optional[int],
report_options: Optional[str],
max_wait_seconds: Optional[int],
authenticator: HttpAuthenticator = NoAuth(),
authenticator: HttpAuthenticator = None,
):
self._authenticator = authenticator
self._session = requests.Session()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import pytest
import requests
from airbyte_cdk.sources.streams.http.auth import NoAuth
from airbyte_cdk.sources.streams.http.exceptions import DefaultBackoffException
from source_amazon_seller_partner.auth import AWSSignature
from source_amazon_seller_partner.streams import MerchantListingsReports
Expand All @@ -26,7 +25,7 @@ def reports_stream():
aws_signature=aws_signature,
replication_start_date="2017-01-25T00:00:00Z",
marketplace_id="id",
authenticator=NoAuth(),
authenticator=None,
period_in_days=0,
report_options=None,
max_wait_seconds=500,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#

import pytest
from airbyte_cdk.sources.streams.http.auth import NoAuth
from source_amazon_seller_partner.auth import AWSSignature
from source_amazon_seller_partner.streams import SellerFeedbackReports

Expand All @@ -21,7 +20,7 @@ def reports_stream(marketplace_id):
aws_signature=aws_signature,
replication_start_date="2010-01-25T00:00:00Z",
marketplace_id=marketplace_id,
authenticator=NoAuth(),
authenticator=None,
period_in_days=0,
report_options=None,
max_wait_seconds=0,
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/amazon-seller-partner.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Information about rate limits you may find [here](https://github.com/amzn/sellin

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| `0.2.10` | 2021-12-31 | [\#9236](https://github.com/airbytehq/airbyte/pull/9236) | Fix NoAuth deprecation warning |
| `0.2.9` | 2021-12-30 | [\#9212](https://github.com/airbytehq/airbyte/pull/9212) | Normalize GET_SELLER_FEEDBACK_DATA header field names |
| `0.2.8` | 2021-12-22 | [\#8810](https://github.com/airbytehq/airbyte/pull/8810) | Fix GET_SELLER_FEEDBACK_DATA Date cursor field format |
| `0.2.7` | 2021-12-21 | [\#9002](https://github.com/airbytehq/airbyte/pull/9002) | Extract REPORTS_MAX_WAIT_SECONDS to configurable parameter |
Expand Down

0 comments on commit 5be2424

Please sign in to comment.