mirror of https://github.com/databricks/cli.git
acc: Restore unexpected output error (#2243)
## Changes Restore original behaviour of acceptance tests: any unaccounted for files trigger an error (not just those that start with "out"). This got changed in https://github.com/databricks/cli/pull/2146/files#diff-2bb968d823f4afb825e1dcea2879bdbdedf2b7c15d4e77f47905691b14246a04L196 which started only checking files starting with "out*" and skipping everything else. ## Tests Existing tests.
This commit is contained in:
parent
be908ee1a1
commit
60709e3d48
|
@ -245,6 +245,7 @@ func runTest(t *testing.T, dir, coverDir string, repls testdiff.ReplacementsCont
|
|||
if _, ok := outputs[relPath]; ok {
|
||||
continue
|
||||
}
|
||||
t.Errorf("Unexpected output: %s", relPath)
|
||||
if strings.HasPrefix(relPath, "out") {
|
||||
// We have a new file starting with "out"
|
||||
// Show the contents & support overwrite mode for it:
|
||||
|
|
|
@ -22,4 +22,5 @@ trace chmod 000 .git/config
|
|||
errcode trace $CLI bundle validate -o json | jq .bundle.git
|
||||
errcode trace withdir subdir/a/b $CLI bundle validate -o json | jq .bundle.git
|
||||
|
||||
rm -fr .git
|
||||
cd ..
|
||||
rm -fr myrepo
|
||||
|
|
|
@ -3,4 +3,6 @@ mkdir myrepo
|
|||
cd myrepo
|
||||
cp ../databricks.yml .
|
||||
git-repo-init
|
||||
$CLI bundle validate | sed 's/\\\\/\//g'
|
||||
errcode $CLI bundle validate
|
||||
cd ..
|
||||
rm -fr myrepo
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[[Repls]]
|
||||
Old = '\\\\myrepo'
|
||||
New = '/myrepo'
|
Loading…
Reference in New Issue