(t *testing.T)
| 589 | } |
| 590 | |
| 591 | func 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 | |
| 599 | func testContainerUser(t *testing.T, userstr, expectedOutput string) { |
| 600 | client, err := newClient(t, address) |
nothing calls this directly
no test coverage detected
searching dependent graphs…