mirror of https://github.com/databricks/cli.git
Fix failing fs mkdir test on azure (#627)
Regex check was missing a "." character and adding it in fixes the test. The test now passes on all three cloud providers
This commit is contained in:
parent
433f401c83
commit
5a6177127f
|
@ -112,6 +112,6 @@ func TestAccFsMkdirWhenFileExistsAtPath(t *testing.T) {
|
||||||
// assert run fails
|
// assert run fails
|
||||||
_, _, err = RequireErrorRun(t, "fs", "mkdir", "dbfs:"+path.Join(tmpDir, "hello"))
|
_, _, err = RequireErrorRun(t, "fs", "mkdir", "dbfs:"+path.Join(tmpDir, "hello"))
|
||||||
// Different cloud providers return different errors.
|
// Different cloud providers return different errors.
|
||||||
regex := regexp.MustCompile(`^Path is a file: .*$|^Cannot create directory .* because .* is an existing file$|^mkdirs\(hadoopPath: .*, permission: rwxrwxrwx\): failed$`)
|
regex := regexp.MustCompile(`^Path is a file: .*$|^Cannot create directory .* because .* is an existing file\.$|^mkdirs\(hadoopPath: .*, permission: rwxrwxrwx\): failed$`)
|
||||||
assert.Regexp(t, regex, err.Error())
|
assert.Regexp(t, regex, err.Error())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue