@@ -75,6 +75,7 @@ var _ = Describe("StackCollection Tasks", func() {
7575
7676 It ("should have nice description" , func () {
7777 fakeVPCImporter := new (vpcfakes.FakeImporter )
78+ accessConfig := & api.AccessConfig {}
7879 // TODO use DescribeTable
7980
8081 // The supportsManagedNodes argument has no effect on the Describe call, so the values are alternated
@@ -99,7 +100,7 @@ var _ = Describe("StackCollection Tasks", func() {
99100 Expect (tasks .Describe ()).To (Equal (`no tasks` ))
100101 }
101102 {
102- tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" , "foo" ), nil , nil , nil )
103+ tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" , "foo" ), nil , accessConfig , nil )
103104 Expect (tasks .Describe ()).To (Equal (`
1041052 sequential tasks: { create cluster control plane "test-cluster",
105106 2 parallel sub-tasks: {
@@ -110,18 +111,18 @@ var _ = Describe("StackCollection Tasks", func() {
110111` ))
111112 }
112113 {
113- tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" ), nil , nil , nil )
114+ tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" ), nil , accessConfig , nil )
114115 Expect (tasks .Describe ()).To (Equal (`
1151162 sequential tasks: { create cluster control plane "test-cluster", create nodegroup "bar"
116117}
117118` ))
118119 }
119120 {
120- tasks := stackManager .NewTasksToCreateCluster (context .Background (), nil , nil , nil , nil )
121+ tasks := stackManager .NewTasksToCreateCluster (context .Background (), nil , nil , accessConfig , nil )
121122 Expect (tasks .Describe ()).To (Equal (`1 task: { create cluster control plane "test-cluster" }` ))
122123 }
123124 {
124- tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" , "foo" ), makeManagedNodeGroups ("m1" , "m2" ), nil , nil )
125+ tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" , "foo" ), makeManagedNodeGroups ("m1" , "m2" ), accessConfig , nil )
125126 Expect (tasks .Describe ()).To (Equal (`
1261272 sequential tasks: { create cluster control plane "test-cluster",
127128 2 parallel sub-tasks: {
@@ -138,7 +139,7 @@ var _ = Describe("StackCollection Tasks", func() {
138139` ))
139140 }
140141 {
141- tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" , "foo" ), makeManagedNodeGroupsWithPropagatedTags ("m1" , "m2" ), nil , nil )
142+ tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" , "foo" ), makeManagedNodeGroupsWithPropagatedTags ("m1" , "m2" ), accessConfig , nil )
142143 Expect (tasks .Describe ()).To (Equal (`
1431442 sequential tasks: { create cluster control plane "test-cluster",
144145 2 parallel sub-tasks: {
@@ -161,7 +162,7 @@ var _ = Describe("StackCollection Tasks", func() {
161162` ))
162163 }
163164 {
164- tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("foo" ), makeManagedNodeGroups ("m1" ), nil , nil )
165+ tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("foo" ), makeManagedNodeGroups ("m1" ), accessConfig , nil )
165166 Expect (tasks .Describe ()).To (Equal (`
1661672 sequential tasks: { create cluster control plane "test-cluster",
167168 2 parallel sub-tasks: {
@@ -172,7 +173,7 @@ var _ = Describe("StackCollection Tasks", func() {
172173` ))
173174 }
174175 {
175- tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" ), nil , nil , nil , & task {id : 1 })
176+ tasks := stackManager .NewTasksToCreateCluster (context .Background (), makeNodeGroups ("bar" ), nil , accessConfig , nil , & task {id : 1 })
176177 Expect (tasks .Describe ()).To (Equal (`
1771782 sequential tasks: { create cluster control plane "test-cluster",
178179 2 sequential sub-tasks: {
0 commit comments