Skip to content

Commit

Permalink
results from gradle format on master (#13053)
Browse files Browse the repository at this point in the history
  • Loading branch information
supertopher committed May 20, 2022
1 parent f106642 commit 05ce3dc
Show file tree
Hide file tree
Showing 23 changed files with 961 additions and 1,301 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"type": "string",
"title": "Spreadsheet Link",
"description": "The link to your spreadsheet. See <a href='https://docs.airbyte.com/integrations/destinations/google-sheets#sheetlink'>this guide</a> for more details.",
"examples": ["https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit"]
"examples": [
"https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit"
]
},
"credentials": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,48 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": ["null", "string"]
},
"str": {
"id": {
"type": ["null", "string"]
},
"str": {
"type": ["null", "string"]
},
"num": {
"type": ["null", "number"]
},
"list": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"dict": {
"type": ["null", "object"],
"properties": {
"type": ["null", "string"]
}
},
"double_list": {
"type": ["null", "array"],
"items": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
},
"num": {
"type": ["null", "number"]
},
"list": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"dict": {
"type": ["null", "object"],
"properties": {
"type": ["null", "string"]
}
},
"double_list": {
"type": ["null", "array"],
"items": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
}
}
}
}
}
},
"supported_sync_modes": ["full_refresh"],
"supported_destination_sync_modes": ["overwrite", "append", "append_dedup"]
"supported_destination_sync_modes": [
"overwrite",
"append",
"append_dedup"
]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append_dedup",
"primary_key": [ [ "id" ] ]
"primary_key": [["id"]]
},
{
"stream": {
Expand Down Expand Up @@ -78,19 +82,23 @@
"type": ["null", "array"],
"items": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
"items": {
"type": ["null", "string"]
}
}
}
}
},
"supported_sync_modes": ["full_refresh"],
"supported_destination_sync_modes": ["overwrite", "append", "append_dedup"]
"supported_destination_sync_modes": [
"overwrite",
"append",
"append_dedup"
]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append",
"primary_key": [ [ "id" ] ]
"primary_key": [["id"]]
},
{
"stream": {
Expand Down Expand Up @@ -124,9 +132,9 @@
"type": ["null", "array"],
"items": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
"items": {
"type": ["null", "string"]
}
}
}
}
Expand All @@ -136,7 +144,7 @@
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite",
"primary_key": [ [ "id" ] ]
"primary_key": [["id"]]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"spreadsheet_id": "https://docs.google.com/spreadsheets/d/<spreadsheet_id>/edit#gid=0",
"credentials": {
"client_id": "YOUR_OAUTH_CLIENT_ID",
"client_secret": "YOUR_OAUTH_CLIENT_SECRET",
"refresh_token": "YOUR_REFRESH_TOKEN"
}
}
"spreadsheet_id": "https://docs.google.com/spreadsheets/d/<spreadsheet_id>/edit#gid=0",
"credentials": {
"client_id": "YOUR_OAUTH_CLIENT_ID",
"client_secret": "YOUR_OAUTH_CLIENT_SECRET",
"refresh_token": "YOUR_REFRESH_TOKEN"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,30 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": ["null", "string"]
},
"key1": {
"type": ["null", "numeric"]
},
"list": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
}
"id": {
"type": ["null", "string"]
},
"key1": {
"type": ["null", "numeric"]
},
"list": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
}
}
},
"supported_sync_modes": ["full_refresh"],
"supported_destination_sync_modes": ["overwrite", "append", "append_dedup"]
"supported_destination_sync_modes": [
"overwrite",
"append",
"append_dedup"
]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append_dedup",
"primary_key": [ [ "id" ] ]
"primary_key": [["id"]]
},
{
"stream": {
Expand All @@ -35,26 +39,30 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": ["null", "string"]
},
"key1": {
"type": ["null", "numeric"]
},
"list": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
}
"id": {
"type": ["null", "string"]
},
"key1": {
"type": ["null", "numeric"]
},
"list": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
}
}
},
"supported_sync_modes": ["full_refresh"],
"supported_destination_sync_modes": ["overwrite", "append", "append_dedup"]
"supported_destination_sync_modes": [
"overwrite",
"append",
"append_dedup"
]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append",
"primary_key": [ [ "id" ] ]
"primary_key": [["id"]]
},
{
"stream": {
Expand Down Expand Up @@ -82,7 +90,7 @@
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite",
"primary_key": [ [ "id" ] ]
"primary_key": [["id"]]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,30 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": ["null", "string"]
},
"key1": {
"type": ["null", "numeric"]
},
"list": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
}
"id": {
"type": ["null", "string"]
},
"key1": {
"type": ["null", "numeric"]
},
"list": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
}
}
},
"supported_sync_modes": ["full_refresh"],
"supported_destination_sync_modes": ["overwrite", "append", "append_dedup"]
"supported_destination_sync_modes": [
"overwrite",
"append",
"append_dedup"
]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append_dedup",
"primary_key": [ [ "id" ] ]
"primary_key": [["id"]]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
# SOFTWARE.


from .source import SourceAmazonSellerPartner
from .source import ConnectorConfig
from .source import ConnectorConfig, SourceAmazonSellerPartner

__all__ = ["SourceAmazonSellerPartner", "ConnectorConfig"]
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#

from unittest.mock import MagicMock

import pytest
from source_amazon_seller_partner import SourceAmazonSellerPartner
from source_amazon_seller_partner import ConnectorConfig
from airbyte_cdk.models import ConnectorSpecification
from airbyte_cdk.sources.streams import Stream
from unittest.mock import MagicMock
from source_amazon_seller_partner import ConnectorConfig, SourceAmazonSellerPartner
from source_amazon_seller_partner.source import boto3


Expand All @@ -23,7 +27,7 @@ def connector_config():
aws_secret_key="aws_secret_key",
role_arn="arn:aws:iam::123456789098:role/some-role",
aws_environment="SANDBOX",
region="US"
region="US",
)


Expand Down Expand Up @@ -56,10 +60,7 @@ def test_streams(connector_source, connector_config, mock_boto_client):
assert isinstance(stream, Stream)


@pytest.mark.parametrize(
"arn",
("arn:aws:iam::123456789098:user/some-user", "arn:aws:iam::123456789098:role/some-role")
)
@pytest.mark.parametrize("arn", ("arn:aws:iam::123456789098:user/some-user", "arn:aws:iam::123456789098:role/some-role"))
def test_stream_with_good_iam_arn_value(mock_boto_client, connector_source, connector_config, arn):
connector_config.role_arn = arn
result = connector_source.get_sts_credentials(connector_config)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ connectionSpecification:
Guide</a> for more details
airbyte_secret: true
examples:
- "{ \"type\": \"service_account\", \"project_id\": YOUR_PROJECT_ID, \"private_key_id\": YOUR_PRIVATE_KEY, ... }"
- '{ "type": "service_account", "project_id": YOUR_PROJECT_ID, "private_key_id": YOUR_PRIVATE_KEY, ... }'
authSpecification:
auth_type: oauth2.0
oauth2Specification:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"type": "integer"
},
"default": []
}
}
}
},
"authSpecification": {
Expand Down

0 comments on commit 05ce3dc

Please sign in to comment.