TODO(chrisfegly): add/update test(s) to allow testing of multiple runtimes at the same time
(t *testing.T)
| 26 | |
| 27 | // TODO(chrisfegly): add/update test(s) to allow testing of multiple runtimes at the same time |
| 28 | func TestRuntimeHandler(t *testing.T) { |
| 29 | t.Logf("Create a sandbox") |
| 30 | if *runtimeHandler == "" { |
| 31 | t.Logf("The --runtime-handler flag value is empty which results internally to setting the default runtime") |
| 32 | } else { |
| 33 | t.Logf("The --runtime-handler flag value is %s", *runtimeHandler) |
| 34 | } |
| 35 | sb, _ := PodSandboxConfigWithCleanup(t, "sandbox", "test-runtime-handler") |
| 36 | |
| 37 | t.Logf("Verify runtimeService.PodSandboxStatus() returns previously set runtimeHandler") |
| 38 | sbStatus, err := runtimeService.PodSandboxStatus(sb) |
| 39 | require.NoError(t, err) |
| 40 | assert.Equal(t, *runtimeHandler, sbStatus.RuntimeHandler) |
| 41 | |
| 42 | t.Logf("Verify runtimeService.ListPodSandbox() returns previously set runtimeHandler") |
| 43 | sandboxes, err := runtimeService.ListPodSandbox(&runtime.PodSandboxFilter{}) |
| 44 | require.NoError(t, err) |
| 45 | assert.Equal(t, *runtimeHandler, sandboxes[0].RuntimeHandler) |
| 46 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…