-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3da1a2f
commit ed9347f
Showing
18 changed files
with
182 additions
and
370 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
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
File renamed without changes.
35 changes: 23 additions & 12 deletions
35
airbyte-integrations/connectors/source-glassfrog/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,20 +1,31 @@ | ||
# See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) | ||
# for more information about how to configure these tests | ||
connector_image: airbyte/source-glassfrog:dev | ||
tests: | ||
acceptance_tests: | ||
spec: | ||
- spec_path: "source_glassfrog/spec.yaml" | ||
tests: | ||
- spec_path: "source_glassfrog/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: ["custom_fields", "checklist_items", "metrics", "projects"] | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: | ||
- name: custom_fields | ||
- name: checklist_items | ||
- name: metrics | ||
- name: projects | ||
incremental: | ||
bypass_reason: "This connector does not implement incremental sync" | ||
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" |
1 change: 1 addition & 0 deletions
1
airbyte-integrations/connectors/source-glassfrog/acceptance-test-docker.sh
100644 → 100755
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,2 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
source "$(git rev-parse --show-toplevel)/airbyte-integrations/bases/connector-acceptance-test/acceptance-test-docker.sh" |
28 changes: 0 additions & 28 deletions
28
airbyte-integrations/connectors/source-glassfrog/bootstrap.md
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
airbyte-integrations/connectors/source-glassfrog/integration_tests/invalid_config.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,3 @@ | ||
{ | ||
"api_key": "xxxxxxx" | ||
"api_key": "invalid_api_key" | ||
} |
3 changes: 3 additions & 0 deletions
3
airbyte-integrations/connectors/source-glassfrog/integration_tests/sample_config.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,3 @@ | ||
{ | ||
"api_key": "api_key" | ||
} |
5 changes: 5 additions & 0 deletions
5
airbyte-integrations/connectors/source-glassfrog/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"todo-stream-name": { | ||
"todo-field-name": "value" | ||
} | ||
} |
23 changes: 12 additions & 11 deletions
23
airbyte-integrations/connectors/source-glassfrog/metadata.yaml
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,24 +1,25 @@ | ||
data: | ||
allowedHosts: | ||
hosts: | ||
- "*" # Please change to the hostname of the source. | ||
registries: | ||
oss: | ||
enabled: true | ||
cloud: | ||
enabled: true | ||
connectorSubtype: api | ||
connectorType: source | ||
definitionId: cf8ff320-6272-4faa-89e6-4402dc17e5d5 | ||
dockerImageTag: 0.1.0 | ||
dockerImageTag: 1.0.0 | ||
dockerRepository: airbyte/source-glassfrog | ||
githubIssueLabel: source-glassfrog | ||
icon: glassfrog.svg | ||
license: MIT | ||
name: Glassfrog | ||
registries: | ||
cloud: | ||
enabled: true | ||
oss: | ||
enabled: true | ||
releaseDate: "2022-06-16" | ||
releaseStage: alpha | ||
supportLevel: community | ||
documentationUrl: https://docs.airbyte.com/integrations/sources/glassfrog | ||
tags: | ||
- language:python | ||
ab_internal: | ||
sl: 100 | ||
ql: 200 | ||
supportLevel: community | ||
- language:lowcode | ||
metadataSpecVersion: "1.0" |
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
15 changes: 0 additions & 15 deletions
15
airbyte-integrations/connectors/source-glassfrog/source_glassfrog/auth.py
This file was deleted.
Oops, something went wrong.
115 changes: 115 additions & 0 deletions
115
airbyte-integrations/connectors/source-glassfrog/source_glassfrog/manifest.yaml
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,115 @@ | ||
version: "0.29.0" | ||
|
||
definitions: | ||
selector: | ||
type: RecordSelector | ||
extractor: | ||
type: DpathExtractor | ||
field_path: ["{{ parameters.path}}"] | ||
requester: | ||
type: HttpRequester | ||
url_base: "https://api.glassfrog.com/api/v3/" | ||
http_method: "GET" | ||
authenticator: | ||
type: ApiKeyAuthenticator | ||
header: "X-Auth-Token" | ||
api_token: "{{ config['api_key'] }}" | ||
retriever: | ||
type: SimpleRetriever | ||
record_selector: | ||
$ref: "#/definitions/selector" | ||
paginator: | ||
type: NoPagination | ||
requester: | ||
$ref: "#/definitions/requester" | ||
base_stream: | ||
type: DeclarativeStream | ||
retriever: | ||
$ref: "#/definitions/retriever" | ||
|
||
assignments_stream: | ||
$ref: "#/definitions/base_stream" | ||
name: "assignments" | ||
primary_key: "id" | ||
$parameters: | ||
path: "assignments" | ||
|
||
checklist_items_stream: | ||
$ref: "#/definitions/base_stream" | ||
name: "checklist_items" | ||
primary_key: "id" | ||
$parameters: | ||
path: "checklist_items" | ||
|
||
circles_stream: | ||
$ref: "#/definitions/base_stream" | ||
name: "circles" | ||
primary_key: "id" | ||
$parameters: | ||
path: "circles" | ||
|
||
custom_fields_stream: | ||
$ref: "#/definitions/base_stream" | ||
name: "custom_fields" | ||
primary_key: "id" | ||
$parameters: | ||
path: "custom_fields" | ||
|
||
metrics_stream: | ||
$ref: "#/definitions/base_stream" | ||
name: "metrics" | ||
primary_key: "id" | ||
$parameters: | ||
path: "metrics" | ||
|
||
people_stream: | ||
$ref: "#/definitions/base_stream" | ||
name: "people" | ||
primary_key: "id" | ||
$parameters: | ||
path: "people" | ||
|
||
projects_stream: | ||
$ref: "#/definitions/base_stream" | ||
name: "projects" | ||
primary_key: "id" | ||
$parameters: | ||
path: "projects" | ||
|
||
roles_stream: | ||
$ref: "#/definitions/base_stream" | ||
name: "roles" | ||
primary_key: "id" | ||
$parameters: | ||
path: "roles" | ||
|
||
streams: | ||
- "#/definitions/assignments_stream" | ||
- "#/definitions/checklist_items_stream" | ||
- "#/definitions/circles_stream" | ||
- "#/definitions/custom_fields_stream" | ||
- "#/definitions/metrics_stream" | ||
- "#/definitions/people_stream" | ||
- "#/definitions/projects_stream" | ||
- "#/definitions/roles_stream" | ||
|
||
check: | ||
type: CheckStream | ||
stream_names: | ||
- "assignments" | ||
|
||
spec: | ||
type: Spec | ||
documentationUrl: https://docs.airbyte.com/integrations/sources/glassfrog | ||
connection_specification: | ||
$schema: http://json-schema.org/draft-07/schema# | ||
title: Glassfrog Spec | ||
type: object | ||
required: | ||
- api_key | ||
additionalProperties: true | ||
properties: | ||
api_key: | ||
type: string | ||
description: API key provided by Glassfrog | ||
airbyte_secret: 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.