@@ -81,26 +81,28 @@ steps:
8181 - verify-preemptible-and-regular-instance-templates-simple-local
8282 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
8383 args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy preemptible-and-regular-instance-templates-simple-local']
84- - id : create- instance-simple-local
85- wait_for :
84+ - id : go-init- instance-simple
85+ waitFor :
8686 - prepare
8787 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
88- args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do create instance-simple-local ']
89- - id : converge- instance-simple-local
90- wait_for :
91- - create- instance-simple-local
88+ args : ['/bin/bash', '-c', 'cd test/integration && RUN_STAGE=init go test -v -run TestInstanceSimpleModule ./... -p 1 ']
89+ - id : go-apply- instance-simple
90+ waitFor :
91+ - go-init- instance-simple
9292 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
93- args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge instance-simple-local']
94- - id : verify-instance-simple-local
95- wait_for :
96- - converge-instance-simple-local
93+ args : ['/bin/bash', '-c', 'cd test/integration && RUN_STAGE=apply go test -v -run TestInstanceSimpleModule ./... -p 1']
94+ timeout : 3600s
95+ - id : go-verify-instance-simple
96+ waitFor :
97+ - go-apply-instance-simple
9798 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
98- args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do verify instance-simple-local ']
99- - id : destroy-instance-simple-local
100- wait_for :
101- - verify-instance-simple-local
99+ args : ['/bin/bash', '-c', 'cd test/integration && RUN_STAGE= verify go test -v -run TestInstanceSimpleModule ./... -p 1 ']
100+ - id : go- destroy-instance-simple
101+ waitFor :
102+ - go- verify-instance-simple
102103 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
103- args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy instance-simple-local']
104+ args : ['/bin/bash', '-c', 'cd test/integration && RUN_STAGE=teardown go test -v -run TestInstanceSimpleModule ./... -p 1']
105+ timeout : 1800s
104106- id : create-mig-simple-local
105107 wait_for :
106108 - prepare
@@ -126,7 +128,7 @@ steps:
126128 - destroy-it-simple-local
127129 - destroy-it-additional-disks-local
128130 - destroy-preemptible-and-regular-instance-templates-simple-local
129- - destroy-instance-simple-local
131+ - go- destroy-instance-simple
130132 - destroy-mig-simple-local
131133 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
132134 args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do create mig-autoscaler-local']
@@ -150,7 +152,7 @@ steps:
150152 - destroy-it-simple-local
151153 - destroy-it-additional-disks-local
152154 - destroy-preemptible-and-regular-instance-templates-simple-local
153- - destroy-instance-simple-local
155+ - go- destroy-instance-simple
154156 - destroy-mig-simple-local
155157 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
156158 args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do create umig-simple-local']
@@ -174,7 +176,7 @@ steps:
174176 - destroy-it-simple-local
175177 - destroy-it-additional-disks-local
176178 - destroy-preemptible-and-regular-instance-templates-simple-local
177- - destroy-instance-simple-local
179+ - go- destroy-instance-simple
178180 - destroy-mig-simple-local
179181 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
180182 args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do create umig-named-ports-local']
@@ -198,7 +200,7 @@ steps:
198200 - destroy-it-simple-local
199201 - destroy-it-additional-disks-local
200202 - destroy-preemptible-and-regular-instance-templates-simple-local
201- - destroy-instance-simple-local
203+ - go- destroy-instance-simple
202204 - destroy-mig-simple-local
203205 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
204206 args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do create umig-static-ips-local']
@@ -222,7 +224,7 @@ steps:
222224 - destroy-it-simple-local
223225 - destroy-it-additional-disks-local
224226 - destroy-preemptible-and-regular-instance-templates-simple-local
225- - destroy-instance-simple-local
227+ - go- destroy-instance-simple
226228 - destroy-mig-simple-local
227229 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
228230 args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do create mig-with-percent-simple-local']
@@ -241,6 +243,7 @@ steps:
241243 - verify-mig-with-percent-simple-local
242244 name : ' gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
243245 args : ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy mig-with-percent-simple-local']
246+
244247tags :
245248- ' ci'
246249- ' integration'
0 commit comments