forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source oauth0: new streams and fix incremental (airbytehq#29001)
* Add new streams Organizations,OrganizationMembers,OrganizationMemberRoles * relax schema definition to allow additional fields * Bump image tag version * revert some changes to the old schemas * Format python so gradle can pass * update incremental * remove unused print * fix unit test --------- Co-authored-by: Vasilis Gavriilidis <[email protected]>
- Loading branch information
1 parent
3bc79be
commit 03ffad5
Showing
16 changed files
with
415 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 23 additions & 15 deletions
38
airbyte-integrations/connectors/source-auth0/acceptance-test-config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
connector_image: airbyte/source-auth0:dev | ||
tests: | ||
acceptance_tests: | ||
spec: | ||
- spec_path: "source_auth0/spec.yaml" | ||
tests: | ||
- spec_path: "source_auth0/spec.yaml" | ||
connection: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
discovery: | ||
- config_path: "secrets/config.json" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
basic_read: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: [] | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: [] | ||
fail_on_extra_columns: false | ||
incremental: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
future_state_path: "integration_tests/abnormal_state.json" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
future_state: | ||
future_state_path: "integration_tests/abnormal_state.json" | ||
full_refresh: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" |
12 changes: 9 additions & 3 deletions
12
airbyte-integrations/connectors/source-auth0/integration_tests/abnormal_state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{ | ||
"users": { "updated_at": "3021-09-08T07:04:28.000Z" } | ||
} | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "updated_at": "5000-08-02T16:18:47.824Z" }, | ||
"stream_descriptor": { "name": "users" } | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 9 additions & 3 deletions
12
airbyte-integrations/connectors/source-auth0/integration_tests/sample_state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{ | ||
"users": { "updated_at": "2021-09-08T07:04:28.000Z" } | ||
} | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "updated_at": "2000-08-02T16:18:47.824Z" }, | ||
"stream_descriptor": { "name": "users" } | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...-integrations/connectors/source-auth0/source_auth0/schemas/organization_member_roles.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": ["object", "null"], | ||
"additionalProperties": true, | ||
"properties": { | ||
"id": { | ||
"type": ["string", "null"] | ||
}, | ||
"org_id": { | ||
"type": ["string", "null"] | ||
}, | ||
"user_id": { | ||
"type": ["string", "null"] | ||
}, | ||
"name": { | ||
"type": ["string", "null"] | ||
}, | ||
"description": { | ||
"type": ["string", "null"] | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
airbyte-integrations/connectors/source-auth0/source_auth0/schemas/organization_members.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": ["object", "null"], | ||
"additionalProperties": true, | ||
"properties":{ | ||
"id": { | ||
"type": ["string", "null"] | ||
}, | ||
"org_id": { | ||
"type": ["string", "null"] | ||
}, | ||
"user_id": { | ||
"type": ["string", "null"] | ||
}, | ||
"name": { | ||
"type": ["string", "null"] | ||
}, | ||
"email": { | ||
"type": ["string", "null"] | ||
}, | ||
"picture": { | ||
"type": ["string", "null"] | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
airbyte-integrations/connectors/source-auth0/source_auth0/schemas/organizations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": ["object", "null"], | ||
"additionalProperties": true, | ||
"properties": { | ||
"id": { | ||
"type": ["string", "null"] | ||
}, | ||
"name": { | ||
"type": ["string", "null"] | ||
}, | ||
"display_name": { | ||
"type": ["string", "null"] | ||
}, | ||
"branding": { | ||
"type": ["object", "null"], | ||
"additionalProperties": true | ||
}, | ||
"metadata": { | ||
"type": ["object", "null"], | ||
"additionalProperties": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.