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

Function TestIsLableledWithActionFailure

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

Source from the content-addressed store, hash-verified

337}
338
339func TestIsLableledWithActionFailure(t *testing.T) {
340 tNode := getNode(t, getDrainHelper(fake.NewSimpleClientset()))
341 _, err := tNode.IsLabeledWithAction(nodeName)
342 h.Assert(t, err != nil, "Failed to return error on IsLabeledWithAction failure")
343}
344
345func TestUncordonIfRebootedDefaultSuccess(t *testing.T) {
346 client := fake.NewSimpleClientset()

Callers

nothing calls this directly

Calls 3

IsLabeledWithActionMethod · 0.80
getNodeFunction · 0.70
getDrainHelperFunction · 0.70

Tested by

no test coverage detected