MCPcopy Index your code
hub / github.com/containerd/containerd / TestContainerUser

Function TestContainerUser

integration/client/container_linux_test.go:591–597  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

589}
590
591func TestContainerUser(t *testing.T) {
592 t.Parallel()
593 t.Run("UserNameAndGroupName", func(t *testing.T) { testContainerUser(t, "www-data:www-data", "33:33") })
594 t.Run("UserIDAndGroupName", func(t *testing.T) { testContainerUser(t, "1001:www-data", "1001:33") })
595 t.Run("UserNameAndGroupID", func(t *testing.T) { testContainerUser(t, "www-data:1002", "33:1002") })
596 t.Run("UserIDAndGroupID", func(t *testing.T) { testContainerUser(t, "1001:1002", "1001:1002") })
597}
598
599func testContainerUser(t *testing.T, userstr, expectedOutput string) {
600 client, err := newClient(t, address)

Callers

nothing calls this directly

Calls 2

testContainerUserFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…