Skip to content

Commit

Permalink
Merge pull request #1116 from hashicorp/nf/oct23-saml-settings-flakes
Browse files Browse the repository at this point in the history
Fix flaky TFESAMLSettings resource tests, add comments
  • Loading branch information
nfagerlund authored Oct 25, 2023
2 parents 0f88ce7 + d992cd3 commit 7efe29a
Show file tree
Hide file tree
Showing 2 changed files with 213 additions and 194 deletions.
6 changes: 6 additions & 0 deletions internal/provider/data_source_saml_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

// FLAKE ALERT: SAML settings are a singleton resource shared by the entire TFE
// instance, and any test touching them is at high risk to flake.
// This test is fine, because it only checks that the attributes have SOME
// value. Testing for any _particular_ value would not be viable, because
// `resource_tfe_saml_settings_test.go` exists. See that file for more color on
// this.
func TestAccTFESAMLSettingsDataSource_basic(t *testing.T) {
resourceAddress := "data.tfe_saml_settings.foobar"
resource.Test(t, resource.TestCase{
Expand Down
Loading

0 comments on commit 7efe29a

Please sign in to comment.