(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestValidateResourcesEmptyConfig(t *testing.T) { |
| 93 | container := &corev1.Container{ |
| 94 | Name: "Empty", |
| 95 | } |
| 96 | |
| 97 | results, err := applyContainerSchemaChecks(context.Background(), &conf.Configuration{}, nil, getEmptyWorkload(t, ""), container, false) |
| 98 | if err != nil { |
| 99 | panic(err) |
| 100 | } |
| 101 | assert.Equal(t, uint(0), results.GetSummary().Dangers) |
| 102 | } |
| 103 | |
| 104 | func TestValidateResourcesEmptyContainer(t *testing.T) { |
| 105 | container := corev1.Container{ |
nothing calls this directly
no test coverage detected