Skip to content

Commit

Permalink
docker-compose logs on up error
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Aug 1, 2023
1 parent 700ac4c commit f55db57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions tests/certification/flow/dockercompose/dockercompose.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ func (c Compose) Up(ctx flow.Context) error {
"--remove-orphans").CombinedOutput()
ctx.Log(string(out))

out, lerr := exec.Command(
"docker-compose",
"-f", c.filename,
"logs").CombinedOutput()
ctx.Log(lerr)
ctx.Log(string(out))

return err
}

Expand All @@ -68,6 +75,7 @@ func (c Compose) Down(ctx flow.Context) error {
"docker-compose",
"-f", c.filename,
"logs").CombinedOutput()
ctx.Log(err)
ctx.Log(string(out))

out, err = exec.Command(
Expand Down
16 changes: 8 additions & 8 deletions tests/certification/pubsub/pulsar/pulsar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ type pulsarSuite struct {
}

func TestPulsar(t *testing.T) {
t.Run("Auth:None", func(t *testing.T) {
suite.Run(t, &pulsarSuite{
authType: "none",
dockerComposeYAML: dockerComposeAuthNoneYAML,
componentsPath: "./components/auth-none",
services: []string{"standalone"},
})
})
//t.Run("Auth:None", func(t *testing.T) {
// suite.Run(t, &pulsarSuite{
// authType: "none",
// dockerComposeYAML: dockerComposeAuthNoneYAML,
// componentsPath: "./components/auth-none",
// services: []string{"standalone"},
// })
//})

t.Run("Auth:OIDC", func(t *testing.T) {
t.Log("Starting OIDC server...")
Expand Down

0 comments on commit f55db57

Please sign in to comment.