mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
fix(libstack): compose project working directory [BE-11751] (#600)
This commit is contained in:
parent
f6f07f4690
commit
1b8fbbe7d7
2 changed files with 6 additions and 6 deletions
|
@ -991,10 +991,12 @@ func Test_createProject(t *testing.T) {
|
|||
},
|
||||
configFilepaths: []string{dir + "/docker-compose.yml"},
|
||||
options: libstack.Options{
|
||||
// Note that this is the execution working directory not the compose project working directory
|
||||
// and so it has no affect on the created projects working directory
|
||||
WorkingDir: "/something-totally-different",
|
||||
ProjectName: projectName,
|
||||
},
|
||||
expectedProject: expectedSimpleComposeProject("/something-totally-different", nil),
|
||||
expectedProject: expectedSimpleComposeProject("", nil),
|
||||
},
|
||||
{
|
||||
name: "Relative Working Directory",
|
||||
|
@ -1003,10 +1005,12 @@ func Test_createProject(t *testing.T) {
|
|||
},
|
||||
configFilepaths: []string{dir + "/docker-compose.yml"},
|
||||
options: libstack.Options{
|
||||
// Note that this is the execution working directory not the compose project working directory
|
||||
// and so it has no affect on the created projects working directory
|
||||
WorkingDir: "something-totally-different",
|
||||
ProjectName: projectName,
|
||||
},
|
||||
expectedProject: expectedSimpleComposeProject("something-totally-different", nil),
|
||||
expectedProject: expectedSimpleComposeProject("", nil),
|
||||
},
|
||||
{
|
||||
name: "Absolute Project Directory",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue