criRuntimeInfo dumps CRI config.
(t *testing.T, svc *remote.RuntimeService)
| 794 | |
| 795 | // criRuntimeInfo dumps CRI config. |
| 796 | func criRuntimeInfo(t *testing.T, svc *remote.RuntimeService) map[string]any { |
| 797 | resp, err := svc.Status() |
| 798 | require.NoError(t, err) |
| 799 | |
| 800 | cfg := map[string]any{} |
| 801 | err = json.Unmarshal([]byte(resp.GetInfo()["config"]), &cfg) |
| 802 | require.NoError(t, err) |
| 803 | |
| 804 | return cfg |
| 805 | } |
| 806 | |
| 807 | // checkContainerState checks container's state. |
| 808 | func checkContainerState(t *testing.T, svc *remote.RuntimeService, name string, expected criruntime.ContainerState) { |
no test coverage detected
searching dependent graphs…