Skip to content

Commit

Permalink
use real TF file for test data
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoodsell-tempus committed Sep 19, 2023
1 parent 35316c5 commit 308eedb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/okta_org_metadata/datasource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data "okta_org_metadata" "test" {}
8 changes: 3 additions & 5 deletions okta/data_source_okta_org_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ import (
)

func TestAccDataSourceOktaOrgMetadata_read(t *testing.T) {
mgr := newFixtureManager("okta_org_metadata", t.Name())

oktaResourceTest(t, resource.TestCase{
PreCheck: testAccPreCheck(t),
ErrorCheck: testAccErrorChecks(t),
ProtoV5ProviderFactories: testAccMergeProvidersFactories,
Steps: []resource.TestStep{
// Read testing
{
Config: testAccExampleDataSourceOktaOrgMetadata,
Config: mgr.GetFixtures("datasource.tf", t),
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttrSet("data.okta_org_metadata.test", "id"),
resource.TestCheckResourceAttrSet("data.okta_org_metadata.test", "pipeline"),
Expand All @@ -27,7 +29,3 @@ func TestAccDataSourceOktaOrgMetadata_read(t *testing.T) {
},
})
}

const testAccExampleDataSourceOktaOrgMetadata = `
data "okta_org_metadata" "test" {}
`

0 comments on commit 308eedb

Please sign in to comment.