Skip to content

Commit

Permalink
Document testAccCheckTFEWorkspaceAttributes helper
Browse files Browse the repository at this point in the history
  • Loading branch information
nfagerlund committed Nov 7, 2023
1 parent 2a4184b commit fc6c305
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/provider/resource_tfe_workspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2296,6 +2296,10 @@ func testAccCheckTFEWorkspaceHasRemoteConsumers(ws string, wsConsumers []string)
}
}

// Helper that checks the actual workspace attribute values in the remote
// service (as opposed to just checking the terraform resource state). This
// makes hardcoded assumptions about the attribute values in the configuration,
// so it can only be used with configs that match those assumptions.
func testAccCheckTFEWorkspaceAttributes(
workspace *tfe.Workspace) resource.TestCheckFunc {
return func(s *terraform.State) error {
Expand Down

0 comments on commit fc6c305

Please sign in to comment.