@@ -6,15 +6,6 @@ import (
66 "encoding/json"
77 "errors"
88 "fmt"
9- "github.com/OctopusDeploy/go-octopusdeploy/v2/pkg/client"
10- "github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework/octoclient"
11- lintwait "github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework/wait"
12- "github.com/avast/retry-go/v4"
13- "github.com/google/uuid"
14- cp "github.com/otiai10/copy"
15- "github.com/testcontainers/testcontainers-go"
16- "github.com/testcontainers/testcontainers-go/wait"
17- orderedmap "github.com/wk8/go-ordered-map/v2"
189 "log"
1910 "net/http"
2011 "os"
@@ -26,6 +17,16 @@ import (
2617 "sync"
2718 "testing"
2819 "time"
20+
21+ "github.com/OctopusDeploy/go-octopusdeploy/v2/pkg/client"
22+ "github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework/octoclient"
23+ lintwait "github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework/wait"
24+ "github.com/avast/retry-go/v4"
25+ "github.com/google/uuid"
26+ cp "github.com/otiai10/copy"
27+ "github.com/testcontainers/testcontainers-go"
28+ "github.com/testcontainers/testcontainers-go/wait"
29+ orderedmap "github.com/wk8/go-ordered-map/v2"
2930)
3031
3132/*
@@ -124,6 +125,12 @@ func (o *OctopusContainerTest) setupDatabase(ctx context.Context, network string
124125 Started : true ,
125126 Reuse : false ,
126127 })
128+
129+ // Display the container logs
130+ if os .Getenv ("OCTODISABLEMSSQLCONTAINERLOGGING" ) != "true" {
131+ o .enableContainerLogging (container , ctx )
132+ }
133+
127134 if err != nil {
128135 return nil , err
129136 }
0 commit comments