From 8353f3fa9c1c66bed8803efe859f935b944d6bf6 Mon Sep 17 00:00:00 2001 From: joshvanl Date: Sat, 17 Aug 2024 02:29:25 -0500 Subject: [PATCH] Adds dapr_scheduler log output Signed-off-by: joshvanl --- tests/e2e/standalone/init_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/e2e/standalone/init_test.go b/tests/e2e/standalone/init_test.go index 21df7079d..20021b564 100644 --- a/tests/e2e/standalone/init_test.go +++ b/tests/e2e/standalone/init_test.go @@ -18,6 +18,7 @@ package standalone_test import ( "context" + "fmt" "net" "os" "path/filepath" @@ -213,6 +214,17 @@ func TestStandaloneInit(t *testing.T) { } output, err := cmdInit(args...) t.Log(output) + + cli, err := dockerClient.NewClientWithOpts(dockerClient.FromEnv) + require.NoError(t, err) + + b, err := cli.ContainerLogs(context.Background(), "dapr_scheduler", types.ContainerLogsOptions{ + ShowStdout: true, + ShowStderr: true, + }) + require.NoError(t, err) + fmt.Printf(">>%s\n", b) + require.NoError(t, err, "init failed") assert.Contains(t, output, "Success! Dapr is up and running.")