MCPcopy
hub / github.com/FairwindsOps/polaris / TestValidateResourcesEmptyConfig

Function TestValidateResourcesEmptyConfig

pkg/validator/container_test.go:92–102  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func 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
104func TestValidateResourcesEmptyContainer(t *testing.T) {
105 container := corev1.Container{

Callers

nothing calls this directly

Calls 3

getEmptyWorkloadFunction · 0.85
GetSummaryMethod · 0.45

Tested by

no test coverage detected