-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metadata-service: add
connectorTestSuitesOptions
(#38116)
- Loading branch information
1 parent
c03d1d6
commit 1f1744f
Showing
10 changed files
with
171 additions
and
1 deletion.
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
34 changes: 34 additions & 0 deletions
34
...ctors/metadata_service/lib/metadata_service/models/generated/ConnectorTestSuiteOptions.py
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,34 @@ | ||
# generated by datamodel-codegen: | ||
# filename: ConnectorTestSuiteOptions.yaml | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List, Optional | ||
|
||
from pydantic import BaseModel, Extra, Field | ||
from typing_extensions import Literal | ||
|
||
|
||
class SecretStore(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
alias: Optional[str] = Field(None, description="The alias of the secret store which can map to its actual secret address") | ||
type: Optional[Literal["GSM"]] = Field(None, description="The type of the secret store") | ||
|
||
|
||
class Secret(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
name: str = Field(..., description="The secret name in the secret store") | ||
fileName: Optional[str] = Field(None, description="The name of the file to which the secret value would be persisted") | ||
secretStore: SecretStore | ||
|
||
|
||
class ConnectorTestSuiteOptions(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
suite: Literal["unitTests", "integrationTests", "acceptanceTests"] = Field(..., description="Name of the configured test suite") | ||
testSecrets: Optional[List[Secret]] = Field(None, description="List of secrets required to run the test suite") |
26 changes: 26 additions & 0 deletions
26
airbyte-ci/connectors/metadata_service/lib/metadata_service/models/generated/Secret.py
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,26 @@ | ||
# generated by datamodel-codegen: | ||
# filename: Secret.yaml | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Optional | ||
|
||
from pydantic import BaseModel, Extra, Field | ||
from typing_extensions import Literal | ||
|
||
|
||
class SecretStore(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
alias: Optional[str] = Field(None, description="The alias of the secret store which can map to its actual secret address") | ||
type: Optional[Literal["GSM"]] = Field(None, description="The type of the secret store") | ||
|
||
|
||
class Secret(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
name: str = Field(..., description="The secret name in the secret store") | ||
fileName: Optional[str] = Field(None, description="The name of the file to which the secret value would be persisted") | ||
secretStore: SecretStore |
17 changes: 17 additions & 0 deletions
17
airbyte-ci/connectors/metadata_service/lib/metadata_service/models/generated/SecretStore.py
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,17 @@ | ||
# generated by datamodel-codegen: | ||
# filename: SecretStore.yaml | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Optional | ||
|
||
from pydantic import BaseModel, Extra, Field | ||
from typing_extensions import Literal | ||
|
||
|
||
class SecretStore(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
alias: Optional[str] = Field(None, description="The alias of the secret store which can map to its actual secret address") | ||
type: Optional[Literal["GSM"]] = Field(None, description="The type of the secret store") |
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
...onnectors/metadata_service/lib/metadata_service/models/src/ConnectorTestSuiteOptions.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,22 @@ | ||
--- | ||
"$schema": http://json-schema.org/draft-07/schema# | ||
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/ConnectorTestOptions.yaml | ||
title: ConnectorTestSuiteOptions | ||
description: Options for a specific connector test suite. | ||
type: object | ||
required: | ||
- suite | ||
additionalProperties: false | ||
properties: | ||
suite: | ||
description: "Name of the configured test suite" | ||
type: string | ||
enum: | ||
- "unitTests" | ||
- "integrationTests" | ||
- "acceptanceTests" | ||
testSecrets: | ||
description: "List of secrets required to run the test suite" | ||
type: array | ||
items: | ||
"$ref": "Secret.yaml" |
19 changes: 19 additions & 0 deletions
19
airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/Secret.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,19 @@ | ||
--- | ||
"$schema": http://json-schema.org/draft-07/schema# | ||
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/TestSecret.yaml | ||
title: Secret | ||
description: An object describing a secret's metadata | ||
type: object | ||
required: | ||
- name | ||
- secretStore | ||
additionalProperties: false | ||
properties: | ||
name: | ||
type: string | ||
description: "The secret name in the secret store" | ||
fileName: | ||
type: string | ||
description: "The name of the file to which the secret value would be persisted" | ||
secretStore: | ||
"$ref": SecretStore.yaml |
19 changes: 19 additions & 0 deletions
19
airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/SecretStore.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,19 @@ | ||
--- | ||
"$schema": http://json-schema.org/draft-07/schema# | ||
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/TestSecret.yaml | ||
title: SecretStore | ||
description: An object describing a secret store metadata | ||
type: object | ||
required: | ||
- name | ||
- secretStore | ||
additionalProperties: false | ||
properties: | ||
alias: | ||
type: string | ||
description: "The alias of the secret store which can map to its actual secret address" | ||
type: | ||
type: string | ||
description: "The type of the secret store" | ||
enum: | ||
- "GSM" |
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