-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2183 from keboola/petr-hosek-PSGO-898_run_test
Don't test deprecated templates
- Loading branch information
Showing
33 changed files
with
322 additions
and
8 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
4 changes: 4 additions & 0 deletions
4
test/cli/template-test-run/local-all/in/template-3/v2/src/README.md
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,4 @@ | ||
### My Template | ||
|
||
Full workflow to ... | ||
|
10 changes: 10 additions & 0 deletions
10
test/cli/template-test-run/local-all/in/template-3/v2/src/description.md
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,10 @@ | ||
# My Template | ||
|
||
## Extended description | ||
- of a template for demo purposes | ||
- from the examples in the API documentation | ||
|
||
## Some Example | ||
``` | ||
with.a.code() | ||
``` |
7 changes: 7 additions & 0 deletions
7
...late-test-run/local-all/in/template-3/v2/src/extractor/ex-generic-v2/empty/config.jsonnet
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,7 @@ | ||
{ | ||
parameters: { | ||
api: { | ||
baseUrl: Input("ex-generic-v2-api-base-url"), | ||
}, | ||
}, | ||
} |
1 change: 1 addition & 0 deletions
1
...run/local-all/in/template-3/v2/src/extractor/ex-generic-v2/empty/description.md
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 @@ | ||
test fixture |
3 changes: 3 additions & 0 deletions
3
...mplate-test-run/local-all/in/template-3/v2/src/extractor/ex-generic-v2/empty/meta.jsonnet
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 @@ | ||
{ | ||
name: "empty", | ||
} |
25 changes: 25 additions & 0 deletions
25
test/cli/template-test-run/local-all/in/template-3/v2/src/inputs.jsonnet
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 @@ | ||
{ | ||
stepsGroups: [ | ||
{ | ||
description: "Default Group", | ||
required: "all", | ||
steps: [ | ||
{ | ||
icon: "common:settings", | ||
name: "Default Step", | ||
description: "Default Step", | ||
inputs: [ | ||
{ | ||
id: "ex-generic-v2-api-base-url", | ||
name: "Api BaseUrl", | ||
description: "a", | ||
type: "string", | ||
kind: "input", | ||
default: "https://jsonplaceholder.typicode.com", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
} |
10 changes: 10 additions & 0 deletions
10
test/cli/template-test-run/local-all/in/template-3/v2/src/manifest.jsonnet
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,10 @@ | ||
{ | ||
configurations: [ | ||
{ | ||
componentId: "ex-generic-v2", | ||
id: ConfigId("empty"), | ||
path: "extractor/ex-generic-v2/empty", | ||
rows: [], | ||
}, | ||
], | ||
} |
59 changes: 59 additions & 0 deletions
59
...emplate-test-run/local-all/in/template-3/v2/tests/one/expected-out/.keboola/manifest.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,59 @@ | ||
{ | ||
"version": 2, | ||
"project": { | ||
"id": __PROJECT_ID__, | ||
"apiHost": "__STORAGE_API_HOST__" | ||
}, | ||
"allowTargetEnv": false, | ||
"sortBy": "id", | ||
"naming": { | ||
"branch": "{branch_name}", | ||
"config": "{component_type}/{component_id}/{config_name}", | ||
"configRow": "rows/{config_row_name}", | ||
"schedulerConfig": "schedules/{config_name}", | ||
"sharedCodeConfig": "_shared/{target_component_id}", | ||
"sharedCodeConfigRow": "codes/{config_row_name}", | ||
"variablesConfig": "variables", | ||
"variablesValuesRow": "values/{config_row_name}", | ||
"dataAppConfig": "app/{component_id}/{config_name}" | ||
}, | ||
"allowedBranches": [ | ||
"*" | ||
], | ||
"ignoredComponents": [], | ||
"templates": { | ||
"repositories": [ | ||
{ | ||
"type": "dir", | ||
"name": "keboola", | ||
"url": "../repository", | ||
"ref": "main" | ||
} | ||
] | ||
}, | ||
"branches": [ | ||
{ | ||
"id": 1, | ||
"path": "main", | ||
"metadata": { | ||
"KBC.KAC.templates.instances": "[{\"instanceId\":\"%s\",\"instanceName\":\"test\",\"templateId\":\"template-2\",\"repositoryName\":\"keboola\",\"version\":\"2.0.0\",\"created\":{\"date\":\"%s\",\"tokenId\":\"%s\"},\"updated\":{\"date\":\"%s\",\"tokenId\":\"%s\"}}]" | ||
} | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"branchId": 1, | ||
"componentId": "ex-generic-v2", | ||
"id": "%s", | ||
"path": "extractor/ex-generic-v2/empty", | ||
"metadata": { | ||
"KBC.KAC.templates.configId": "{\"idInTemplate\":\"empty\"}", | ||
"KBC.KAC.templates.configInputs": "[{\"input\":\"ex-generic-v2-api-base-url\",\"key\":\"parameters.api.baseUrl\"}]", | ||
"KBC.KAC.templates.instanceId": "%s", | ||
"KBC.KAC.templates.repository": "keboola", | ||
"KBC.KAC.templates.templateId": "template-2" | ||
}, | ||
"rows": [] | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...plate-test-run/local-all/in/template-3/v2/tests/one/expected-out/description.md
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 @@ | ||
|
Empty file.
7 changes: 7 additions & 0 deletions
7
...ll/in/template-3/v2/tests/one/expected-out/main/extractor/ex-generic-v2/empty/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,7 @@ | ||
{ | ||
"parameters": { | ||
"api": { | ||
"baseUrl": "base/url" | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...e-3/v2/tests/one/expected-out/main/extractor/ex-generic-v2/empty/description.md
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 @@ | ||
test fixture |
4 changes: 4 additions & 0 deletions
4
...-all/in/template-3/v2/tests/one/expected-out/main/extractor/ex-generic-v2/empty/meta.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,4 @@ | ||
{ | ||
"name": "empty", | ||
"isDisabled": false | ||
} |
4 changes: 4 additions & 0 deletions
4
test/cli/template-test-run/local-all/in/template-3/v2/tests/one/expected-out/main/meta.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,4 @@ | ||
{ | ||
"name": "Main", | ||
"isDefault": true | ||
} |
3 changes: 3 additions & 0 deletions
3
test/cli/template-test-run/local-all/in/template-3/v2/tests/one/inputs.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 @@ | ||
{ | ||
"ex-generic-v2-api-base-url": "base/url" | ||
} |
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
4 changes: 4 additions & 0 deletions
4
test/cli/template-test-run/local-all/out/template-3/v2/src/README.md
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,4 @@ | ||
### My Template | ||
|
||
Full workflow to ... | ||
|
10 changes: 10 additions & 0 deletions
10
test/cli/template-test-run/local-all/out/template-3/v2/src/description.md
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,10 @@ | ||
# My Template | ||
|
||
## Extended description | ||
- of a template for demo purposes | ||
- from the examples in the API documentation | ||
|
||
## Some Example | ||
``` | ||
with.a.code() | ||
``` |
7 changes: 7 additions & 0 deletions
7
...ate-test-run/local-all/out/template-3/v2/src/extractor/ex-generic-v2/empty/config.jsonnet
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,7 @@ | ||
{ | ||
parameters: { | ||
api: { | ||
baseUrl: Input("ex-generic-v2-api-base-url"), | ||
}, | ||
}, | ||
} |
1 change: 1 addition & 0 deletions
1
...un/local-all/out/template-3/v2/src/extractor/ex-generic-v2/empty/description.md
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 @@ | ||
test fixture |
3 changes: 3 additions & 0 deletions
3
...plate-test-run/local-all/out/template-3/v2/src/extractor/ex-generic-v2/empty/meta.jsonnet
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 @@ | ||
{ | ||
name: "empty", | ||
} |
25 changes: 25 additions & 0 deletions
25
test/cli/template-test-run/local-all/out/template-3/v2/src/inputs.jsonnet
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 @@ | ||
{ | ||
stepsGroups: [ | ||
{ | ||
description: "Default Group", | ||
required: "all", | ||
steps: [ | ||
{ | ||
icon: "common:settings", | ||
name: "Default Step", | ||
description: "Default Step", | ||
inputs: [ | ||
{ | ||
id: "ex-generic-v2-api-base-url", | ||
name: "Api BaseUrl", | ||
description: "a", | ||
type: "string", | ||
kind: "input", | ||
default: "https://jsonplaceholder.typicode.com", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
} |
10 changes: 10 additions & 0 deletions
10
test/cli/template-test-run/local-all/out/template-3/v2/src/manifest.jsonnet
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,10 @@ | ||
{ | ||
configurations: [ | ||
{ | ||
componentId: "ex-generic-v2", | ||
id: ConfigId("empty"), | ||
path: "extractor/ex-generic-v2/empty", | ||
rows: [], | ||
}, | ||
], | ||
} |
59 changes: 59 additions & 0 deletions
59
...mplate-test-run/local-all/out/template-3/v2/tests/one/expected-out/.keboola/manifest.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,59 @@ | ||
{ | ||
"version": 2, | ||
"project": { | ||
"id": __PROJECT_ID__, | ||
"apiHost": "__STORAGE_API_HOST__" | ||
}, | ||
"allowTargetEnv": false, | ||
"sortBy": "id", | ||
"naming": { | ||
"branch": "{branch_name}", | ||
"config": "{component_type}/{component_id}/{config_name}", | ||
"configRow": "rows/{config_row_name}", | ||
"schedulerConfig": "schedules/{config_name}", | ||
"sharedCodeConfig": "_shared/{target_component_id}", | ||
"sharedCodeConfigRow": "codes/{config_row_name}", | ||
"variablesConfig": "variables", | ||
"variablesValuesRow": "values/{config_row_name}", | ||
"dataAppConfig": "app/{component_id}/{config_name}" | ||
}, | ||
"allowedBranches": [ | ||
"*" | ||
], | ||
"ignoredComponents": [], | ||
"templates": { | ||
"repositories": [ | ||
{ | ||
"type": "dir", | ||
"name": "keboola", | ||
"url": "../repository", | ||
"ref": "main" | ||
} | ||
] | ||
}, | ||
"branches": [ | ||
{ | ||
"id": 1, | ||
"path": "main", | ||
"metadata": { | ||
"KBC.KAC.templates.instances": "[{\"instanceId\":\"%s\",\"instanceName\":\"test\",\"templateId\":\"template-2\",\"repositoryName\":\"keboola\",\"version\":\"2.0.0\",\"created\":{\"date\":\"%s\",\"tokenId\":\"%s\"},\"updated\":{\"date\":\"%s\",\"tokenId\":\"%s\"}}]" | ||
} | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"branchId": 1, | ||
"componentId": "ex-generic-v2", | ||
"id": "%s", | ||
"path": "extractor/ex-generic-v2/empty", | ||
"metadata": { | ||
"KBC.KAC.templates.configId": "{\"idInTemplate\":\"empty\"}", | ||
"KBC.KAC.templates.configInputs": "[{\"input\":\"ex-generic-v2-api-base-url\",\"key\":\"parameters.api.baseUrl\"}]", | ||
"KBC.KAC.templates.instanceId": "%s", | ||
"KBC.KAC.templates.repository": "keboola", | ||
"KBC.KAC.templates.templateId": "template-2" | ||
}, | ||
"rows": [] | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...late-test-run/local-all/out/template-3/v2/tests/one/expected-out/description.md
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 @@ | ||
|
Empty file.
7 changes: 7 additions & 0 deletions
7
...l/out/template-3/v2/tests/one/expected-out/main/extractor/ex-generic-v2/empty/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,7 @@ | ||
{ | ||
"parameters": { | ||
"api": { | ||
"baseUrl": "base/url" | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...e-3/v2/tests/one/expected-out/main/extractor/ex-generic-v2/empty/description.md
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 @@ | ||
test fixture |
4 changes: 4 additions & 0 deletions
4
...all/out/template-3/v2/tests/one/expected-out/main/extractor/ex-generic-v2/empty/meta.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,4 @@ | ||
{ | ||
"name": "empty", | ||
"isDisabled": false | ||
} |
4 changes: 4 additions & 0 deletions
4
test/cli/template-test-run/local-all/out/template-3/v2/tests/one/expected-out/main/meta.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,4 @@ | ||
{ | ||
"name": "Main", | ||
"isDefault": true | ||
} |
3 changes: 3 additions & 0 deletions
3
test/cli/template-test-run/local-all/out/template-3/v2/tests/one/inputs.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 @@ | ||
{ | ||
"ex-generic-v2-api-base-url": "base/url" | ||
} |