MCPcopy Index your code
hub / github.com/aws/aws-node-termination-handler / TestUncordonSuccess

Function TestUncordonSuccess

pkg/node/node_test.go:181–193  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

179}
180
181func TestUncordonSuccess(t *testing.T) {
182 client := fake.NewSimpleClientset()
183 _, err := client.CoreV1().Nodes().Create(
184 context.Background(),
185 &v1.Node{
186 ObjectMeta: metav1.ObjectMeta{Name: nodeName},
187 },
188 metav1.CreateOptions{})
189 h.Ok(t, err)
190 tNode := getNode(t, getDrainHelper(client))
191 err = tNode.Uncordon(nodeName)
192 h.Ok(t, err)
193}
194
195func TestUncordonFailure(t *testing.T) {
196 tNode := getNode(t, getDrainHelper(fake.NewSimpleClientset()))

Callers

nothing calls this directly

Calls 3

UncordonMethod · 0.80
getNodeFunction · 0.70
getDrainHelperFunction · 0.70

Tested by

no test coverage detected