mirror of https://github.com/databricks/cli.git
Fix regex error check in mkdir integration test (#735)
## Changes Fixes test for all cloud provider after the Go SDK bump which introduces the `non retryable error` prefix to errors. The test passes now.
This commit is contained in:
parent
e533f9109a
commit
9194418ac1
|
@ -112,6 +112,6 @@ func TestAccFsMkdirWhenFileExistsAtPath(t *testing.T) {
|
|||
// assert run fails
|
||||
_, _, err = RequireErrorRun(t, "fs", "mkdir", "dbfs:"+path.Join(tmpDir, "hello"))
|
||||
// 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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue