MCPcopy Index your code
hub / github.com/redspread/spread / TestRCBadObjects

Function TestRCBadObjects

pkg/entity/replicationcontroller_test.go:97–108  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func TestRCBadObjects(t *testing.T) {
98 objects := []deploy.KubeObject{
99 nil, // illegal
100 }
101
102 selector := map[string]string{"required": "value"}
103 kubePod := testNewKubePod("testPod")
104 kubePod.Labels = selector
105 kubeRC := testNewKubeRC(kube.ObjectMeta{}, selector, kubePod)
106 _, err := NewReplicationController(kubeRC, kube.ObjectMeta{}, "", objects...)
107 assert.Error(t, err, "bad objects")
108}
109
110func TestRCAttachImage(t *testing.T) {
111 imageName := "rc-attach-image"

Callers

nothing calls this directly

Calls 3

testNewKubePodFunction · 0.85
testNewKubeRCFunction · 0.85
NewReplicationControllerFunction · 0.85

Tested by

no test coverage detected