MCPcopy Create free account
hub / github.com/ddev/ddev / TestGetAppContainers

Function TestGetAppContainers

pkg/dockerutil/containers_test.go:348–353  ·  view source on GitHub ↗

TestGetAppContainers looks for container with sitename dockerutils-test

(t *testing.T)

Source from the content-addressed store, hash-verified

346
347// TestGetAppContainers looks for container with sitename dockerutils-test
348func TestGetAppContainers(t *testing.T) {
349 assert := asrt.New(t)
350 containers, err := dockerutil.GetAppContainers(testContainerName)
351 assert.NoError(err)
352 assert.Contains(containers[0].Image, versionconstants.WebImg)
353}
354
355// TestFindContainerByName does a simple test of FindContainerByName()
356func TestFindContainerByName(t *testing.T) {

Callers

nothing calls this directly

Calls 1

GetAppContainersFunction · 0.92

Tested by

no test coverage detected