Skip to content

Commit

Permalink
validate all paths
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Nov 18, 2024
1 parent c008bc9 commit 0edc5b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/node_pool/node_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ func TestNodePool(t *testing.T) {
g.JSONEq(assert, cluster, pth)
}

// Test validating all Paths
fmt.Println(cluster.Paths("*"))
for _, pth := range cluster.Paths("*") {
g.JSONEq(assert, cluster, pth)
}

// Pool-01
assert.Equal("pool-01", cluster.Get("nodePools.#(name==\"pool-01\").name").String(), "pool-1 exists")
assert.Equal("e2-medium", cluster.Get("nodePools.#(name==\"pool-01\").config.machineType").String(), "is the expected machine type")
Expand Down

0 comments on commit 0edc5b5

Please sign in to comment.