Skip to content

Commit 0d34783

Browse files
committed
fix acceptance tests for sync dry-run
1 parent d778a71 commit 0d34783

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

Diff for: acceptance/bundle/sync/dryrun/output.txt

-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
>>> [CLI] bundle sync --dry-run --output text
3-
[DRY-RUN MODE] Action: PUT: .gitignore, databricks.yml, project-folder/app.py, project-folder/app.yaml, project-folder/query.sql
43
[DRY-RUN] Initial Sync Complete
54
[DRY-RUN] Would upload: .gitignore
65
[DRY-RUN] Would upload: databricks.yml
@@ -10,29 +9,25 @@
109
[DRY-RUN] Would upload: project-folder/query.sql
1110

1211
>>> [CLI] bundle sync --dry-run --exclude project-folder/app.* --output text
13-
[DRY-RUN MODE] Action: PUT: .gitignore, databricks.yml, project-folder/query.sql
1412
[DRY-RUN] Initial Sync Complete
1513
[DRY-RUN] Would upload: .gitignore
1614
[DRY-RUN] Would upload: databricks.yml
1715
[DRY-RUN] Would upload: project-folder
1816
[DRY-RUN] Would upload: project-folder/query.sql
1917

2018
>>> [CLI] bundle sync --dry-run --exclude project-folder/app.* --exclude project-folder/query.sql --output text
21-
[DRY-RUN MODE] Action: PUT: databricks.yml, .gitignore
2219
[DRY-RUN] Initial Sync Complete
2320
[DRY-RUN] Would upload: .gitignore
2421
[DRY-RUN] Would upload: databricks.yml
2522

2623
>>> [CLI] bundle sync --dry-run --exclude project-folder/app.* --exclude project-folder/query.sql --include ignored-folder/*.py --output text
27-
[DRY-RUN MODE] Action: PUT: databricks.yml, ignored-folder/script.py, .gitignore
2824
[DRY-RUN] Initial Sync Complete
2925
[DRY-RUN] Would upload: .gitignore
3026
[DRY-RUN] Would upload: databricks.yml
3127
[DRY-RUN] Would upload: ignored-folder
3228
[DRY-RUN] Would upload: ignored-folder/script.py
3329

3430
>>> [CLI] bundle sync --dry-run --exclude project-folder/app.* --exclude project-folder/query.sql --include ignored-folder/**/*.py --output text
35-
[DRY-RUN MODE] Action: PUT: ignored-folder/folder1/script.py, ignored-folder/script.py, .gitignore, databricks.yml
3631
[DRY-RUN] Initial Sync Complete
3732
[DRY-RUN] Would upload: .gitignore
3833
[DRY-RUN] Would upload: databricks.yml

Diff for: acceptance/bundle/sync/dryrun/script

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ cleanup() {
1414
}
1515
trap cleanup EXIT
1616

17-
# Note: output line starting with "Action: " lists files in non-deterministic order so we filter it out
18-
trace $CLI bundle sync --dry-run --output text | grep -v "^\[DRY-RUN MODE\] Action " | sort
19-
trace $CLI bundle sync --dry-run --exclude 'project-folder/app.*' --output text | grep -v "^\[DRY-RUN MODE\] Action " | sort
20-
trace $CLI bundle sync --dry-run --exclude 'project-folder/app.*' --exclude 'project-folder/query.sql' --output text | grep -v "^\[DRY-RUN MODE\] Action " | sort
21-
trace $CLI bundle sync --dry-run --exclude 'project-folder/app.*' --exclude 'project-folder/query.sql' --include 'ignored-folder/*.py' --output text | grep -v "^\[DRY-RUN MODE\] Action " | sort
22-
trace $CLI bundle sync --dry-run --exclude 'project-folder/app.*' --exclude 'project-folder/query.sql' --include 'ignored-folder/**/*.py' --output text | grep -v "^\[DRY-RUN MODE\] Action " | sort
17+
# Note: output line containing "DRY-RUN MODE" lists files in non-deterministic order so we filter it out
18+
trace $CLI bundle sync --dry-run --output text | grep -v "^\[DRY-RUN MODE\] Action" | sort
19+
trace $CLI bundle sync --dry-run --exclude 'project-folder/app.*' --output text | grep -v "^\[DRY-RUN MODE\] Action" | sort
20+
trace $CLI bundle sync --dry-run --exclude 'project-folder/app.*' --exclude 'project-folder/query.sql' --output text | grep -v "^\[DRY-RUN MODE\] Action" | sort
21+
trace $CLI bundle sync --dry-run --exclude 'project-folder/app.*' --exclude 'project-folder/query.sql' --include 'ignored-folder/*.py' --output text | grep -v "^\[DRY-RUN MODE\] Action" | sort
22+
trace $CLI bundle sync --dry-run --exclude 'project-folder/app.*' --exclude 'project-folder/query.sql' --include 'ignored-folder/**/*.py' --output text | grep -v "^\[DRY-RUN MODE\] Action" | sort

Diff for: acceptance/cmd/sync/dryrun/script

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cleanup() {
1414
}
1515
trap cleanup EXIT
1616

17-
# Note: output line starting with "Action: " lists files in non-deterministic order so we filter it out
17+
# Note: output line containing "DRY-RUN MODE" lists files in non-deterministic order so we filter it out
1818
trace $CLI sync . /Users/$CURRENT_USER_NAME --dry-run | grep -v "^\[DRY-RUN MODE\] Action" | sort
1919

2020
# excluding by mask:

0 commit comments

Comments
 (0)