@@ -557,15 +557,15 @@ func TestUpSecretsResources(t *testing.T) {
557
557
_ , _ , _ = setupTestResourceGroup (t , c )
558
558
559
559
t .Run ("compose up" , func (t * testing.T ) {
560
- c .RunDockerCmd ("compose" , "up" , " -f" , composefilePath , "--project-name" , composeProjectName )
560
+ c .RunDockerCmd ("compose" , "-f" , composefilePath , "--project-name" , composeProjectName , "up" )
561
561
res := c .RunDockerCmd ("ps" )
562
562
out := Lines (res .Stdout ())
563
563
// Check 2 containers running
564
564
assert .Assert (t , is .Len (out , 3 ))
565
565
})
566
566
567
567
t .Cleanup (func () {
568
- c .RunDockerCmd ("compose" , "down" , " --project-name" , composeProjectName )
568
+ c .RunDockerCmd ("compose" , "--project-name" , composeProjectName , "down" )
569
569
res := c .RunDockerCmd ("ps" )
570
570
out := Lines (res .Stdout ())
571
571
assert .Equal (t , len (out ), 1 )
@@ -696,7 +696,7 @@ func TestUpUpdate(t *testing.T) {
696
696
Location : location ,
697
697
ResourceGroup : groupID ,
698
698
}
699
- c .RunDockerCmd ("compose" , "up" , " -f" , singlePortVolumesComposefile , "--domainname " , dnsLabelName , "--project-name " , projectName )
699
+ c .RunDockerCmd ("compose" , "-f" , singlePortVolumesComposefile , "--project-name " , projectName , "up" , "--domainname " , dnsLabelName )
700
700
701
701
// Volume should be autocreated by the "compose up"
702
702
uploadTestFile (t , aciContext , composeAccountName , fileshareName , testFileName , testFileContent )
@@ -747,11 +747,11 @@ func TestUpUpdate(t *testing.T) {
747
747
})
748
748
749
749
t .Run ("compose ps" , func (t * testing.T ) {
750
- res := c .RunDockerCmd ("compose" , "ps" , " --project-name" , composeProjectName , "--quiet" )
750
+ res := c .RunDockerCmd ("compose" , "--project-name" , composeProjectName , "ps" , "--quiet" )
751
751
l := Lines (res .Stdout ())
752
752
assert .Assert (t , is .Len (l , 3 ))
753
753
754
- res = c .RunDockerCmd ("compose" , "ps" , " --project-name" , composeProjectName )
754
+ res = c .RunDockerCmd ("compose" , "--project-name" , composeProjectName , "ps" )
755
755
l = Lines (res .Stdout ())
756
756
assert .Assert (t , is .Len (l , 4 ))
757
757
var wordsDisplayed , webDisplayed , dbDisplayed bool
@@ -797,7 +797,7 @@ func TestUpUpdate(t *testing.T) {
797
797
})
798
798
799
799
t .Run ("update" , func (t * testing.T ) {
800
- c .RunDockerCmd ("compose" , "up" , " -f" , multiPortComposefile , "--project-name" , composeProjectName )
800
+ c .RunDockerCmd ("compose" , "-f" , multiPortComposefile , "--project-name" , composeProjectName , "up" )
801
801
res := c .RunDockerCmd ("ps" )
802
802
out := Lines (res .Stdout ())
803
803
// Check three containers are running
@@ -832,7 +832,7 @@ func TestUpUpdate(t *testing.T) {
832
832
})
833
833
834
834
t .Run ("down" , func (t * testing.T ) {
835
- c .RunDockerCmd ("compose" , "down" , " --project-name" , composeProjectName )
835
+ c .RunDockerCmd ("compose" , "--project-name" , composeProjectName , "down" )
836
836
res := c .RunDockerCmd ("ps" )
837
837
out := Lines (res .Stdout ())
838
838
assert .Equal (t , len (out ), 1 )
0 commit comments