Skip to content

Commit b21b4a4

Browse files
Matovidloclaude
andcommitted
test(cli): add E2E pull fixtures for field-level .kbcignore (PSGO-201)
Add pull counterparts for the existing push fixtures: ignore-field-is-disabled and ignore-field-schedule-cron-tab. Each fixture verifies that ignored fields retain their local value while all other fields are updated from remote. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1870ac9 commit b21b4a4

46 files changed

Lines changed: 374 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
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/ignore-field-is-disabled/expected-stderr

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Plan for "pull" operation:
2+
* C main/extractor/ex-generic-v2/without-rows | changed: description
3+
Pull done.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ex-generic-v2/%%TEST_BRANCH_MAIN_CONFIG_WITHOUT_ROWS_ID%%:isDisabled
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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": "path",
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+
"__all__"
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+
},
34+
"branches": [
35+
{
36+
"id": %%TEST_BRANCH_MAIN_ID%%,
37+
"path": "main"
38+
}
39+
],
40+
"configurations": [
41+
{
42+
"branchId": %%TEST_BRANCH_MAIN_ID%%,
43+
"componentId": "ex-generic-v2",
44+
"id": "%%TEST_BRANCH_MAIN_CONFIG_WITHOUT_ROWS_ID%%",
45+
"path": "extractor/ex-generic-v2/without-rows",
46+
"rows": []
47+
}
48+
]
49+
}

test/cli/pull/ignore-field-is-disabled/in/main/description.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"parameters": {
3+
"api": {
4+
"baseUrl": "https://jsonplaceholder.typicode.com"
5+
}
6+
}
7+
}

test/cli/pull/ignore-field-is-disabled/in/main/extractor/ex-generic-v2/without-rows/description.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "without-rows",
3+
"isDisabled": true
4+
}

0 commit comments

Comments
 (0)