Skip to content

Commit 5943f50

Browse files
Matovidloclaude
andcommitted
test(e2e): add E2E tests for .kbcignore branch/Name pattern (PSGO-198)
Two CLI E2E tests verify the branch ignore feature end-to-end: - push/ignore-branch: two branches locally, foo ignored via branch/foo in .kbcignore; only Main description change is pushed, foo stays untouched on remote - pull/ignore-branch: two branches on remote, foo ignored; only Main is pulled locally, no foo/ directory created, manifest lists Main only Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 48f2d03 commit 5943f50

52 files changed

Lines changed: 419 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/cli/pull/ignore-branch/args

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pull --verbose --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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
%A
2+
DEBUG Project state has been successfully loaded.
3+
%A
4+
Plan for "pull" operation:
5+
+ B main
6+
+ C main/extractor/ex-generic-v2/without-rows
7+
%A
8+
DEBUG Saved ".keboola/manifest.json"
9+
%A
10+
INFO Pull done.
11+
%A
12+
DEBUG Sent "sync-pull" successful event id: "%s"

test/cli/pull/ignore-branch/in/.gitkeep

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
branch/foo
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
"configurations": []
36+
}

test/cli/pull/ignore-branch/in/description.md

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"allBranchesConfigs": [],
3+
"branches": [
4+
{
5+
"branch": {
6+
"name": "Main",
7+
"isDefault": true
8+
},
9+
"configs": [
10+
"without-rows"
11+
]
12+
},
13+
{
14+
"branch": {
15+
"name": "foo",
16+
"isDefault": false
17+
},
18+
"configs": [
19+
"without-rows"
20+
]
21+
}
22+
]
23+
}

test/cli/pull/ignore-branch/out/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)