Skip to content

Commit 0edc5b5

Browse files
committed
validate all paths
1 parent c008bc9 commit 0edc5b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/integration/node_pool/node_pool_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ func TestNodePool(t *testing.T) {
9292
g.JSONEq(assert, cluster, pth)
9393
}
9494

95+
// Test validating all Paths
96+
fmt.Println(cluster.Paths("*"))
97+
for _, pth := range cluster.Paths("*") {
98+
g.JSONEq(assert, cluster, pth)
99+
}
100+
95101
// Pool-01
96102
assert.Equal("pool-01", cluster.Get("nodePools.#(name==\"pool-01\").name").String(), "pool-1 exists")
97103
assert.Equal("e2-medium", cluster.Get("nodePools.#(name==\"pool-01\").config.machineType").String(), "is the expected machine type")

0 commit comments

Comments
 (0)