Skip to content

Commit ed5101f

Browse files
committed
Use cluster name variable rather than hardcoded name when testing metadata
1 parent 5979d17 commit ed5101f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/integration/node_pool/controls/gcloud.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@
128128
"tags" => match_array([
129129
"all-node-example",
130130
"pool-01-example",
131-
"gke-node-pool-cluster",
132-
"gke-node-pool-cluster-pool-01",
131+
"gke-#{cluster_name}",
132+
"gke-#{cluster_name}-pool-01",
133133
]),
134134
),
135135
)
@@ -245,8 +245,8 @@
245245
"config" => including(
246246
"tags" => match_array([
247247
"all-node-example",
248-
"gke-node-pool-cluster",
249-
"gke-node-pool-cluster-pool-02",
248+
"gke-#{cluster_name}",
249+
"gke-#{cluster_name}-pool-02",
250250
])
251251
),
252252
)

0 commit comments

Comments
 (0)