MCPcopy Index your code
hub / github.com/helm/helm / TestInstallWithSystemLabels

Function TestInstallWithSystemLabels

pkg/action/install_test.go:1029–1042  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1027}
1028
1029func TestInstallWithSystemLabels(t *testing.T) {
1030 is := assert.New(t)
1031 instAction := installAction(t)
1032 instAction.Labels = map[string]string{
1033 "owner": "val1",
1034 "key2": "val2",
1035 }
1036 _, err := instAction.Run(buildChart(), nil)
1037 if err == nil {
1038 t.Fatal("expected an error")
1039 }
1040
1041 is.Equal(fmt.Errorf("user supplied labels contains system reserved label name. System labels: %+v", driver.GetSystemLabels()), err)
1042}
1043
1044func TestUrlEqual(t *testing.T) {
1045 is := assert.New(t)

Callers

nothing calls this directly

Calls 5

GetSystemLabelsFunction · 0.92
installActionFunction · 0.85
buildChartFunction · 0.85
FatalMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…