Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Run "full" profile in docker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed May 15, 2024
1 parent d3a7438 commit fefbebc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/docker-network/tests/dockertestframework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ func NewDockerTestFramework(t *testing.T, opts ...options.Option[DockerTestFrame
}

func (d *DockerTestFramework) DockerComposeUp(detach ...bool) error {
cmd := exec.Command("docker", "compose", "up")
cmd := exec.Command("docker", "compose", "--profile", "full", "up")

if len(detach) > 0 && detach[0] {
cmd = exec.Command("docker", "compose", "up", "-d")
cmd = exec.Command("docker", "compose", "--profile", "full", "up", "-d")
}

cmd.Env = os.Environ()
Expand Down Expand Up @@ -131,7 +131,7 @@ func (d *DockerTestFramework) DockerComposeUp(detach ...bool) error {

func (d *DockerTestFramework) Run() error {
// first we remove old containers, volumes and orphans
_ = exec.Command("docker", "compose", "down", "-v", "--remove-orphans").Run()
_ = exec.Command("docker", "compose", "--profile", "full", "down", "-v", "--remove-orphans").Run()

ch := make(chan error)
stopCh := make(chan struct{})
Expand Down Expand Up @@ -188,7 +188,7 @@ func (d *DockerTestFramework) Stop() {
defer fmt.Println("Stop the network.....done")

// remove volumes and orphans
_ = exec.Command("docker", "compose", "down", "-v", "--remove-orphans").Run()
_ = exec.Command("docker", "compose", "--profile", "full", "down", "-v", "--remove-orphans").Run()
_ = exec.Command("rm", d.snapshotPath).Run() //nolint:gosec
}

Expand Down

0 comments on commit fefbebc

Please sign in to comment.