mirror of https://github.com/databricks/cli.git
Fix mkdir integration test on GCP (#620)
GCP returns a different error here incase of a conflict. This PR fixes the test.
This commit is contained in:
parent
3697dfcb51
commit
e4b66833dd
|
@ -111,7 +111,7 @@ func TestAccFsMkdirWhenFileExistsAtPath(t *testing.T) {
|
|||
|
||||
// assert run fails
|
||||
_, _, err = RequireErrorRun(t, "fs", "mkdir", "dbfs:"+path.Join(tmpDir, "hello"))
|
||||
// Different backends return different errors (for example: file in s3 vs dbfs)
|
||||
regex := regexp.MustCompile(`^Path is a file: .*$|^Cannot create directory .* because .* is an existing file`)
|
||||
// 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$`)
|
||||
assert.Regexp(t, regex, err.Error())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue