Skip to content

Commit

Permalink
fix TestAccFederatedSettingsIdentityProvidersDS_basic (#2070)
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli authored Mar 25, 2024
1 parent 7ec51b7 commit 4aab399
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func TestAccFederatedSettingsIdentityProvidersDS_basic(t *testing.T) {
var (
resourceName = "data.mongodbatlas_federated_settings_identity_providers.test"
dataSourceName = "data.mongodbatlas_federated_settings_identity_providers.test"
federatedSettingsID = os.Getenv("MONGODB_ATLAS_FEDERATION_SETTINGS_ID")
)

Expand All @@ -24,16 +24,10 @@ func TestAccFederatedSettingsIdentityProvidersDS_basic(t *testing.T) {
{
Config: testAccMongoDBAtlasDataSourceFederatedSettingsIdentityProvidersConfig(federatedSettingsID),
Check: resource.ComposeTestCheckFunc(
testAccCheckMongoDBAtlasFederatedSettingsIdentityProvidersExists(resourceName),
testAccCheckMongoDBAtlasFederatedSettingsIdentityProvidersExists(dataSourceName),

resource.TestCheckResourceAttrSet(resourceName, "federation_settings_id"),
resource.TestCheckResourceAttrSet(resourceName, "results.#"),
resource.TestCheckResourceAttrSet(resourceName, "results.1.acs_url"),
resource.TestCheckResourceAttrSet(resourceName, "results.0.audience_claim.0"),
resource.TestCheckResourceAttrSet(resourceName, "results.0.client_id"),
resource.TestCheckResourceAttrSet(resourceName, "results.0.groups_claim"),
resource.TestCheckResourceAttrSet(resourceName, "results.0.requested_scopes.0"),
resource.TestCheckResourceAttrSet(resourceName, "results.0.user_claim"),
resource.TestCheckResourceAttrSet(dataSourceName, "federation_settings_id"),
resource.TestCheckResourceAttr(dataSourceName, "results.#", "2"),
),
},
},
Expand Down

0 comments on commit 4aab399

Please sign in to comment.