(t *testing.T)
| 199 | } |
| 200 | |
| 201 | func TestIsUnschedulableSuccess(t *testing.T) { |
| 202 | client := fake.NewSimpleClientset() |
| 203 | _, err := client.CoreV1().Nodes().Create( |
| 204 | context.Background(), |
| 205 | &v1.Node{ |
| 206 | ObjectMeta: metav1.ObjectMeta{Name: nodeName}, |
| 207 | }, |
| 208 | metav1.CreateOptions{}) |
| 209 | h.Ok(t, err) |
| 210 | tNode := getNode(t, getDrainHelper(client)) |
| 211 | value, err := tNode.IsUnschedulable(nodeName) |
| 212 | h.Ok(t, err) |
| 213 | h.Equals(t, false, value) |
| 214 | } |
| 215 | |
| 216 | func TestIsUnschedulableFailure(t *testing.T) { |
| 217 | tNode := getNode(t, getDrainHelper(fake.NewSimpleClientset())) |
nothing calls this directly
no test coverage detected