Skip to content

Commit 6b5909e

Browse files
committed
test: add fixture for orchestration trigger with conditional requirements
1 parent 8cbc3f5 commit 6b5909e

16 files changed

Lines changed: 140 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"componentId": "kds-team.app-orchestration-trigger-queue-v2",
3+
"name": "trigger-fire-and-forget",
4+
"configuration": {
5+
"parameters": {
6+
"waitUntilFinish": false,
7+
"#kbcToken": "KBC::ProjectSecure::dummytoken",
8+
"kbcUrl": "-",
9+
"orchestrationId": "123456"
10+
}
11+
},
12+
"rows": null
13+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pull --storage-api-token %%TEST_KBC_STORAGE_API_TOKEN%%
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0

test/cli/pull/orchestration-trigger-conditional-requirement/expected-stderr

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Plan for "pull" operation:
2+
+ B main
3+
+ C main/application/kds-team.app-orchestration-trigger-queue-v2/trigger-fire-and-forget
4+
Pull done.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": 2,
3+
"project": {
4+
"id": %%TEST_KBC_PROJECT_ID%%,
5+
"apiHost": "%%TEST_KBC_STORAGE_API_HOST%%"
6+
},
7+
"allowTargetEnv": false,
8+
"sortBy": "id",
9+
"naming": {
10+
"branch": "{branch_name}",
11+
"config": "{component_type}/{component_id}/{config_name}",
12+
"configRow": "rows/{config_row_name}",
13+
"schedulerConfig": "schedules/{config_name}",
14+
"sharedCodeConfig": "_shared/{target_component_id}",
15+
"sharedCodeConfigRow": "codes/{config_row_name}",
16+
"variablesConfig": "variables",
17+
"variablesValuesRow": "values/{config_row_name}",
18+
"dataAppConfig": "app/{component_id}/{config_name}"
19+
},
20+
"allowedBranches": [
21+
"*"
22+
],
23+
"ignoredComponents": [],
24+
"branches": [],
25+
"configurations": []
26+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"allBranchesConfigs": [
3+
"trigger-fire-and-forget"
4+
],
5+
"branches": [
6+
{
7+
"branch": {
8+
"name": "Main",
9+
"isDefault": true
10+
}
11+
}
12+
]
13+
}
14+

test/cli/pull/orchestration-trigger-conditional-requirement/out/.gitkeep

Whitespace-only changes.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"version": 2,
3+
"project": {
4+
"id": %%TEST_KBC_PROJECT_ID%%,
5+
"apiHost": "%%TEST_KBC_STORAGE_API_HOST%%"
6+
},
7+
"allowTargetEnv": false,
8+
"sortBy": "id",
9+
"naming": {
10+
"branch": "{branch_name}",
11+
"config": "{component_type}/{component_id}/{config_name}",
12+
"configRow": "rows/{config_row_name}",
13+
"schedulerConfig": "schedules/{config_name}",
14+
"sharedCodeConfig": "_shared/{target_component_id}",
15+
"sharedCodeConfigRow": "codes/{config_row_name}",
16+
"variablesConfig": "variables",
17+
"variablesValuesRow": "values/{config_row_name}",
18+
"dataAppConfig": "app/{component_id}/{config_name}"
19+
},
20+
"allowedBranches": [
21+
"*"
22+
],
23+
"ignoredComponents": [],
24+
"templates": {
25+
"repositories": [
26+
{
27+
"type": "git",
28+
"name": "keboola",
29+
"url": "https://github.com/keboola/keboola-as-code-templates.git",
30+
"ref": "main"
31+
},
32+
{
33+
"type": "git",
34+
"name": "keboola-components",
35+
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
36+
"ref": "main"
37+
}
38+
]
39+
},
40+
"branches": [
41+
{
42+
"id": %%TEST_BRANCH_MAIN_ID%%,
43+
"path": "main"
44+
}
45+
],
46+
"configurations": [
47+
{
48+
"branchId": %%TEST_BRANCH_MAIN_ID%%,
49+
"componentId": "kds-team.app-orchestration-trigger-queue-v2",
50+
"id": "%%TEST_BRANCH_ALL_CONFIG_TRIGGER_FIRE_AND_FORGET_ID%%",
51+
"path": "application/kds-team.app-orchestration-trigger-queue-v2/trigger-fire-and-forget",
52+
"rows": []
53+
}
54+
]
55+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"backends": [
3+
%A
4+
],
5+
"features": [
6+
%A
7+
],
8+
"defaultBranchId": %A
9+
}

0 commit comments

Comments
 (0)