MCPcopy
hub / github.com/docker/compose / assertServiceStatus

Function assertServiceStatus

pkg/e2e/restart_test.go:29–34  ·  view source on GitHub ↗
(t *testing.T, projectName, service, status string, ps string)

Source from the content-addressed store, hash-verified

27)
28
29func assertServiceStatus(t *testing.T, projectName, service, status string, ps string) {
30 // match output with random spaces like:
31 // e2e-start-stop-db-1 alpine:latest "echo hello" db 1 minutes ago Exited (0) 1 minutes ago
32 regx := fmt.Sprintf("%s-%s-1.+%s\\s+.+%s.+", projectName, service, service, status)
33 assert.Assert(t, is.Regexp(regx, ps))
34}
35
36func TestRestart(t *testing.T) {
37 c := NewParallelCLI(t)

Callers 4

TestCopyFunction · 0.85
TestLocalComposeUpFunction · 0.85
TestStartStopFunction · 0.85
TestRestartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected