@@ -557,15 +557,15 @@ func TestUpSecretsResources(t *testing.T) {
557557 _ , _ , _ = setupTestResourceGroup (t , c )
558558
559559 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" )
561561 res := c .RunDockerCmd ("ps" )
562562 out := Lines (res .Stdout ())
563563 // Check 2 containers running
564564 assert .Assert (t , is .Len (out , 3 ))
565565 })
566566
567567 t .Cleanup (func () {
568- c .RunDockerCmd ("compose" , "down" , " --project-name" , composeProjectName )
568+ c .RunDockerCmd ("compose" , "--project-name" , composeProjectName , "down" )
569569 res := c .RunDockerCmd ("ps" )
570570 out := Lines (res .Stdout ())
571571 assert .Equal (t , len (out ), 1 )
@@ -696,7 +696,7 @@ func TestUpUpdate(t *testing.T) {
696696 Location : location ,
697697 ResourceGroup : groupID ,
698698 }
699- c .RunDockerCmd ("compose" , "up" , " -f" , singlePortVolumesComposefile , "--domainname " , dnsLabelName , "--project-name " , projectName )
699+ c .RunDockerCmd ("compose" , "-f" , singlePortVolumesComposefile , "--project-name " , projectName , "up" , "--domainname " , dnsLabelName )
700700
701701 // Volume should be autocreated by the "compose up"
702702 uploadTestFile (t , aciContext , composeAccountName , fileshareName , testFileName , testFileContent )
@@ -747,11 +747,11 @@ func TestUpUpdate(t *testing.T) {
747747 })
748748
749749 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" )
751751 l := Lines (res .Stdout ())
752752 assert .Assert (t , is .Len (l , 3 ))
753753
754- res = c .RunDockerCmd ("compose" , "ps" , " --project-name" , composeProjectName )
754+ res = c .RunDockerCmd ("compose" , "--project-name" , composeProjectName , "ps" )
755755 l = Lines (res .Stdout ())
756756 assert .Assert (t , is .Len (l , 4 ))
757757 var wordsDisplayed , webDisplayed , dbDisplayed bool
@@ -797,7 +797,7 @@ func TestUpUpdate(t *testing.T) {
797797 })
798798
799799 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" )
801801 res := c .RunDockerCmd ("ps" )
802802 out := Lines (res .Stdout ())
803803 // Check three containers are running
@@ -832,7 +832,7 @@ func TestUpUpdate(t *testing.T) {
832832 })
833833
834834 t .Run ("down" , func (t * testing.T ) {
835- c .RunDockerCmd ("compose" , "down" , " --project-name" , composeProjectName )
835+ c .RunDockerCmd ("compose" , "--project-name" , composeProjectName , "down" )
836836 res := c .RunDockerCmd ("ps" )
837837 out := Lines (res .Stdout ())
838838 assert .Equal (t , len (out ), 1 )
0 commit comments