Skip to content

Commit

Permalink
add tests for attribute in
Browse files Browse the repository at this point in the history
  • Loading branch information
JaylonmcShan03 committed Nov 14, 2024
1 parent 5de5697 commit 24776a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kubernetes/data_source_kubernetes_nodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ func TestAccKubernetesDataSourceNodes_basic(t *testing.T) {
resource.TestMatchResourceAttr(dataSourceName, "nodes.0.status.0.conditions.#", oneOrMore),
resource.TestCheckResourceAttrSet(dataSourceName, "nodes.0.status.0.conditions.0.type"),
resource.TestCheckResourceAttrSet(dataSourceName, "nodes.0.status.0.conditions.0.status"),
resource.TestCheckResourceAttrSet(dataSourceName, "nodes.0.status.0.conditions.0.last_heartbeat_time"),
resource.TestCheckResourceAttrSet(dataSourceName, "nodes.0.status.0.conditions.0.last_transition_time"),
resource.TestCheckResourceAttrSet(dataSourceName, "nodes.0.status.0.conditions.0.reason"),
resource.TestCheckResourceAttrSet(dataSourceName, "nodes.0.status.0.conditions.0.message"),
)
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down

0 comments on commit 24776a3

Please sign in to comment.