diff --git a/acceptance/bundle/state/force_pull_commands/out.test.toml b/acceptance/bundle/state/force_pull_commands/out.test.toml index 216969a761..519954aedc 100644 --- a/acceptance/bundle/state/force_pull_commands/out.test.toml +++ b/acceptance/bundle/state/force_pull_commands/out.test.toml @@ -1,9 +1,5 @@ Local = true Cloud = false - -[GOOS] - linux = false - windows = false - -[EnvMatrix] - DATABRICKS_BUNDLE_ENGINE = ["terraform", "direct"] +GOOS.linux = false +GOOS.windows = false +EnvMatrix.DATABRICKS_BUNDLE_ENGINE = ["terraform", "direct"] diff --git a/acceptance/bundle/state/force_pull_commands/script b/acceptance/bundle/state/force_pull_commands/script index 177d047d2e..bea7852ed8 100644 --- a/acceptance/bundle/state/force_pull_commands/script +++ b/acceptance/bundle/state/force_pull_commands/script @@ -4,18 +4,26 @@ rm -f out.requests.txt title "Modify PATH so that real open is not run" export PATH=.:$PATH +# touch out.requests.txt before each print_requests.py call: the commands without +# --force-pull make zero HTTP requests, so the file is never created and +# print_requests.py would otherwise exit with "File not found". + title "bundle summary without --force-pull: no remote state read\n" trace $CLI bundle summary > /dev/null +touch out.requests.txt print_requests.py --get //workspace-files/ title "bundle summary --force-pull: remote state read\n" trace $CLI bundle summary --force-pull > /dev/null +touch out.requests.txt print_requests.py --get //workspace-files/ title "bundle open without --force-pull: no remote state read\n" musterr trace $CLI bundle open foo > /dev/null +touch out.requests.txt print_requests.py --get //workspace-files/ title "bundle open --force-pull: remote state read\n" musterr trace $CLI bundle open foo --force-pull > /dev/null +touch out.requests.txt print_requests.py --get //workspace-files/