test add node with pods

This commit is contained in:
Aleksandra Malinowska 2020-02-12 14:58:13 +01:00
parent 1bd1f8e316
commit 610f35710b
1 changed files with 11 additions and 0 deletions

View File

@ -102,6 +102,17 @@ func TestForking(t *testing.T) {
nodes: []*apiv1.Node{node},
},
},
{
name: "add node with pods",
op: func(snapshot ClusterSnapshot) {
err := snapshot.AddNodeWithPods(node, []*apiv1.Pod{pod})
assert.NoError(t, err)
},
modifiedState: snapshotState{
nodes: []*apiv1.Node{node},
pods: []*apiv1.Pod{pod},
},
},
{
name: "remove node",
state: snapshotState{