-
Notifications
You must be signed in to change notification settings - Fork 3
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
09a3fda
commit 5254772
Showing
125 changed files
with
764 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pull --storage-api-token %%TEST_KBC_STORAGE_API_TOKEN%% |
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,2 @@ | ||
KBC_PROJECT_ID=%%TEST_KBC_PROJECT_ID%% | ||
KBC_BRANCH_ID=%%TEST_BRANCH_MAIN_ID%% |
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 @@ | ||
0 |
Empty file.
7 changes: 7 additions & 0 deletions
7
test/cli/allow-target-env/pull-ignore-configs/expected-stdout
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 @@ | ||
Overriding the project ID by the environment variable KBC_PROJECT_ID=%s | ||
Overriding the branch ID by the environment variable KBC_BRANCH_ID=%s | ||
Plan for "pull" operation: | ||
+ C main/app/keboola.data-apps/data-app | ||
+ C main/extractor/keboola.ex-db-mysql/with-rows | ||
+ R main/extractor/keboola.ex-db-mysql/with-rows/rows/test-view | ||
Pull done. |
Empty file.
2 changes: 2 additions & 0 deletions
2
test/cli/allow-target-env/pull-ignore-configs/in/.keboola/kbc_ignore
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,2 @@ | ||
keboola.ex-db-mysql/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ID%%/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ROW_USERS_ID%% | ||
keboola.ex-db-mysql/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ID%%/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ROW_DISABLED_ID%% |
41 changes: 41 additions & 0 deletions
41
test/cli/allow-target-env/pull-ignore-configs/in/.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,41 @@ | ||
{ | ||
"version": 2, | ||
"project": { | ||
"id": 1, | ||
"apiHost": "%%TEST_KBC_STORAGE_API_HOST%%" | ||
}, | ||
"allowTargetEnv": true, | ||
"sortBy": "path", | ||
"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": [ | ||
"2" | ||
], | ||
"ignoredComponents": [], | ||
"templates": { | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"name": "keboola", | ||
"url": "https://github.com/keboola/keboola-as-code-templates.git", | ||
"ref": "main" | ||
} | ||
] | ||
}, | ||
"branches": [ | ||
{ | ||
"id": 2, | ||
"path": "main" | ||
} | ||
], | ||
"configurations": [] | ||
} |
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions
4
test/cli/allow-target-env/pull-ignore-configs/in/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 | ||
} |
18 changes: 18 additions & 0 deletions
18
test/cli/allow-target-env/pull-ignore-configs/initial-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,18 @@ | ||
{ | ||
"backend": { | ||
"type": "snowflake" | ||
}, | ||
"allBranchesConfigs": [ ], | ||
"branches": [ | ||
{ | ||
"branch": { | ||
"name": "Main", | ||
"isDefault": true | ||
}, | ||
"configs": [ | ||
"with-rows", | ||
"data-app" | ||
] | ||
} | ||
] | ||
} |
Empty file.
2 changes: 2 additions & 0 deletions
2
test/cli/allow-target-env/pull-ignore-configs/out/.keboola/kbc_ignore
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,2 @@ | ||
keboola.ex-db-mysql/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ID%%/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ROW_USERS_ID%% | ||
keboola.ex-db-mysql/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ID%%/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ROW_DISABLED_ID%% |
61 changes: 61 additions & 0 deletions
61
test/cli/allow-target-env/pull-ignore-configs/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,61 @@ | ||
{ | ||
"version": 2, | ||
"project": { | ||
"id": 1, | ||
"apiHost": "%%TEST_KBC_STORAGE_API_HOST%%" | ||
}, | ||
"allowTargetEnv": true, | ||
"sortBy": "path", | ||
"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": [ | ||
"2" | ||
], | ||
"ignoredComponents": [], | ||
"templates": { | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"name": "keboola", | ||
"url": "https://github.com/keboola/keboola-as-code-templates.git", | ||
"ref": "main" | ||
} | ||
] | ||
}, | ||
"branches": [ | ||
{ | ||
"id": 2, | ||
"path": "main" | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"branchId": 2, | ||
"componentId": "keboola.data-apps", | ||
"id": "%%TEST_BRANCH_MAIN_CONFIG_DATA_APP_ID%%", | ||
"path": "app/keboola.data-apps/data-app", | ||
"rows": [] | ||
}, | ||
{ | ||
"branchId": 2, | ||
"componentId": "keboola.ex-db-mysql", | ||
"id": "%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ID%%", | ||
"path": "extractor/keboola.ex-db-mysql/with-rows", | ||
"rows": [ | ||
{ | ||
"id": "%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ROW_TEST_VIEW_ID%%", | ||
"path": "rows/test-view" | ||
} | ||
] | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
test/cli/allow-target-env/pull-ignore-configs/out/.keboola/project.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,9 @@ | ||
{ | ||
"backends": [ | ||
%A | ||
], | ||
"features": [ | ||
%A | ||
], | ||
"defaultBranchId": %A | ||
} |
Empty file.
3 changes: 3 additions & 0 deletions
3
.../allow-target-env/pull-ignore-configs/out/main/app/keboola.data-apps/data-app/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 @@ | ||
{ | ||
"foo": "bar" | ||
} |
1 change: 1 addition & 0 deletions
1
...-env/pull-ignore-configs/out/main/app/keboola.data-apps/data-app/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
...li/allow-target-env/pull-ignore-configs/out/main/app/keboola.data-apps/data-app/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": "Data App", | ||
"isDisabled": false | ||
} |
Empty file.
7 changes: 7 additions & 0 deletions
7
...rget-env/pull-ignore-configs/out/main/extractor/keboola.ex-db-mysql/with-rows/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": { | ||
"db": { | ||
"host": "mysql.example.com" | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...-ignore-configs/out/main/extractor/keboola.ex-db-mysql/with-rows/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
...target-env/pull-ignore-configs/out/main/extractor/keboola.ex-db-mysql/with-rows/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": "with-rows", | ||
"isDisabled": false | ||
} |
5 changes: 5 additions & 0 deletions
5
...gnore-configs/out/main/extractor/keboola.ex-db-mysql/with-rows/rows/test-view/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,5 @@ | ||
{ | ||
"parameters": { | ||
"incremental": false | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
.../out/main/extractor/keboola.ex-db-mysql/with-rows/rows/test-view/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
...-ignore-configs/out/main/extractor/keboola.ex-db-mysql/with-rows/rows/test-view/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": "test_view", | ||
"isDisabled": false | ||
} |
4 changes: 4 additions & 0 deletions
4
test/cli/allow-target-env/pull-ignore-configs/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 | ||
} |
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 @@ | ||
pull --verbose --storage-api-token %%TEST_KBC_STORAGE_API_TOKEN%% |
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 @@ | ||
0 |
Empty file.
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,31 @@ | ||
%A | ||
DEBUG Project state has been successfully loaded. | ||
%A | ||
Plan for "pull" operation: | ||
+ B bar | ||
+ C bar/_shared/keboola.python-transformation-v2 | ||
+ R bar/_shared/keboola.python-transformation-v2/codes/code-with-variables | ||
+ C bar/_shared/keboola.python-transformation-v2/codes/code-with-variables/variables | ||
+ R bar/_shared/keboola.python-transformation-v2/codes/my-code-1 | ||
+ R bar/_shared/keboola.python-transformation-v2/codes/my-code-2 | ||
+ C bar/extractor/ex-generic-v2/disabled | ||
+ C bar/extractor/ex-generic-v2/empty | ||
+ C bar/extractor/keboola.ex-db-mysql/with-rows | ||
+ R bar/extractor/keboola.ex-db-mysql/with-rows/rows/disabled | ||
+ R bar/extractor/keboola.ex-db-mysql/with-rows/rows/test-view | ||
+ C bar/transformation/keboola.python-transformation-v2/python-transformation | ||
+ C bar/transformation/keboola.python-transformation-v2/transformation-with-shared-code | ||
+ C bar/transformation/keboola.python-transformation-v2/transformation-with-shared-code/variables | ||
+ R bar/transformation/keboola.python-transformation-v2/transformation-with-shared-code/variables/values/default | ||
+ C bar/transformation/keboola.snowflake-transformation/snowflake-transformation | ||
+ B foo | ||
+ C foo/extractor/ex-generic-v2/empty | ||
+ C foo/extractor/ex-generic-v2/without-rows | ||
+ B main | ||
+ C main/extractor/ex-generic-v2/empty | ||
%A | ||
DEBUG Saved ".keboola/manifest.json" | ||
%A | ||
INFO Pull done. | ||
%A | ||
DEBUG Sent "sync-pull" successful event id: "%s" |
Empty file.
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 @@ | ||
keboola.data-apps/%%TEST_BRANCH_MAIN_CONFIG_DATA_APP_ID%% | ||
keboola.ex-db-mysql/%%TEST_BRANCH_BAR_CONFIG_WITH_ROWS_ID%%/%%TEST_BRANCH_BAR_CONFIG_WITH_ROWS_ROW_USERS_ID%% | ||
keboola.ex-db-mysql/%%TEST_BRANCH_FOO_CONFIG_WITH_ROWS_ID%% |
36 changes: 36 additions & 0 deletions
36
test/cli/pull/ignore-configurations/in/.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,36 @@ | ||
{ | ||
"version": 2, | ||
"project": { | ||
"id": %%TEST_KBC_PROJECT_ID%%, | ||
"apiHost": "%%TEST_KBC_STORAGE_API_HOST%%" | ||
}, | ||
"allowTargetEnv": false, | ||
"sortBy": "path", | ||
"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": [ | ||
"__all__" | ||
], | ||
"ignoredComponents": [], | ||
"templates": { | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"name": "keboola", | ||
"url": "https://github.com/keboola/keboola-as-code-templates.git", | ||
"ref": "main" | ||
} | ||
] | ||
}, | ||
"branches": [], | ||
"configurations": [] | ||
} |
Empty file.
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,52 @@ | ||
{ | ||
"backend": { | ||
"type": "snowflake" | ||
}, | ||
"allBranchesConfigs": [ | ||
"empty" | ||
], | ||
"branches": [ | ||
{ | ||
"branch": { | ||
"name": "Main", | ||
"isDefault": true | ||
}, | ||
"configs": [ | ||
"data-app" | ||
] | ||
}, | ||
{ | ||
"branch": { | ||
"name": "foo", | ||
"isDefault": false | ||
}, | ||
"configs": [ | ||
"with-rows", | ||
"without-rows" | ||
] | ||
}, | ||
{ | ||
"branch": { | ||
"name": "bar", | ||
"isDefault": false | ||
}, | ||
"configs": [ | ||
"with-rows", | ||
"python-transformation", | ||
"shared-codes", | ||
"shared-codes-variables", | ||
"transformation-with-shared-code", | ||
"transformation-with-shared-code-variables", | ||
"snowflake-transformation", | ||
"disabled" | ||
] | ||
} | ||
], | ||
"envs": { | ||
"TEST_SHARED_CODE_ID": "%%TEST_BRANCH_BAR_CONFIG_SHARED_CODES_ID%%", | ||
"TEST_SHARED_CODE_ROW_ID": "%%TEST_BRANCH_BAR_CONFIG_SHARED_CODES_ROW_CODE_WITH_VARIABLES_ID%%", | ||
"TEST_SHARED_CODE_VARIABLES_ID": "%%TEST_BRANCH_BAR_CONFIG_SHARED_CODE_VARIABLES_ID%%", | ||
"TEST_TRANSFORMATION_WITH_SHARED_CODE_VARIABLES_ID": "%%TEST_BRANCH_BAR_CONFIG_TRANSFORMATION_WITH_SHARED_CODE_VARIABLES_ID%%", | ||
"TEST_TRANSFORMATION_WITH_SHARED_CODE_VARIABLES_VALUES_ID": "%%TEST_BRANCH_BAR_CONFIG_TRANSFORMATION_WITH_SHARED_CODE_VARIABLES_ROW_DEFAULT_VALUES_ID%%" | ||
} | ||
} |
Empty file.
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 @@ | ||
keboola.data-apps/%%TEST_BRANCH_MAIN_CONFIG_DATA_APP_ID%% | ||
keboola.ex-db-mysql/%%TEST_BRANCH_BAR_CONFIG_WITH_ROWS_ID%%/%%TEST_BRANCH_BAR_CONFIG_WITH_ROWS_ROW_USERS_ID%% | ||
keboola.ex-db-mysql/%%TEST_BRANCH_FOO_CONFIG_WITH_ROWS_ID%% |
Oops, something went wrong.