Skip to content

Commit

Permalink
Merge branch 'main' into fix/DXCDT-745-update-messages-in-forms
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj authored Nov 27, 2024
2 parents ca5756f + 1573c5b commit 9b5bd4d
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 82 deletions.
20 changes: 12 additions & 8 deletions internal/auth0/client/data_source_clients_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,18 @@ func TestAccDataClients(t *testing.T) {
{
Config: acctest.ParseTestName(testAccGivenSomeClients+testAccDataClientsWithNameFilter, t.Name()),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("data.auth0_clients.test", "id"),
resource.TestCheckResourceAttr("data.auth0_clients.test", "clients.#", "2"),
resource.TestCheckResourceAttrSet("data.auth0_clients.test", "clients.0.name"),
resource.TestCheckResourceAttrSet("data.auth0_clients.test", "clients.0.app_type"),
resource.TestCheckResourceAttrSet("data.auth0_clients.test", "clients.0.is_first_party"),
resource.TestCheckResourceAttrSet("data.auth0_clients.test", "clients.1.name"),
resource.TestCheckResourceAttrSet("data.auth0_clients.test", "clients.1.app_type"),
resource.TestCheckResourceAttrSet("data.auth0_clients.test", "clients.1.is_first_party"),
resource.TestCheckTypeSetElemNestedAttrs("data.auth0_clients.test", "clients.*", map[string]string{
"name": fmt.Sprintf("Acceptance Test 1 - %s", t.Name()),
"app_type": "non_interactive",
"is_first_party": "true",
"description": fmt.Sprintf("Description for client 1 %s", t.Name()),
}),
resource.TestCheckTypeSetElemNestedAttrs("data.auth0_clients.test", "clients.*", map[string]string{
"name": fmt.Sprintf("Acceptance Test 2 - %s", t.Name()),
"app_type": "spa",
"is_first_party": "false",
"description": fmt.Sprintf("Description for client 2 %s", t.Name()),
}),
),
},
{
Expand Down
Loading

0 comments on commit 9b5bd4d

Please sign in to comment.