mirror of https://github.com/databricks/cli.git
correct the test
This commit is contained in:
parent
735d72225a
commit
33ce0292fb
|
@ -25,6 +25,9 @@ func TestTranslatePathsApps_FilePathRelativeSubDirectory(t *testing.T) {
|
||||||
SyncRootPath: dir,
|
SyncRootPath: dir,
|
||||||
SyncRoot: vfs.MustNew(dir),
|
SyncRoot: vfs.MustNew(dir),
|
||||||
Config: config.Root{
|
Config: config.Root{
|
||||||
|
Workspace: config.Workspace{
|
||||||
|
FilePath: "/bundle/files",
|
||||||
|
},
|
||||||
Resources: config.Resources{
|
Resources: config.Resources{
|
||||||
Apps: map[string]*resources.App{
|
Apps: map[string]*resources.App{
|
||||||
"app": {
|
"app": {
|
||||||
|
@ -48,7 +51,7 @@ func TestTranslatePathsApps_FilePathRelativeSubDirectory(t *testing.T) {
|
||||||
// Assert that the file path for the app has been converted to its local absolute path.
|
// Assert that the file path for the app has been converted to its local absolute path.
|
||||||
assert.Equal(
|
assert.Equal(
|
||||||
t,
|
t,
|
||||||
filepath.Join("src", "app"),
|
"/bundle/files/src/app",
|
||||||
b.Config.Resources.Apps["app"].SourceCodePath,
|
b.Config.Resources.Apps["app"].SourceCodePath,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue