Skip to content

Commit

Permalink
Update datasources for Boundary v0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
remilapeyre authored and moduli committed May 6, 2024
1 parent dad33e4 commit fda8a02
Show file tree
Hide file tree
Showing 17 changed files with 93 additions and 19 deletions.
2 changes: 1 addition & 1 deletion internal/provider/data_source_accounts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_auth_methods.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_auth_tokens.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_credential_libraries.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_credential_stores.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_groups.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_host_catalogs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_host_sets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_hosts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_managed_groups.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_roles.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_scopes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/data_source_sessions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 72 additions & 3 deletions internal/provider/data_source_targets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion internal/provider/data_source_targets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ func TestAccDataSourceTargets(t *testing.T) {
{
Config: testConfig(url, fooOrg, firstProjectFoo, credStoreRes, fooBarCredLibs, fooBarHostSet, fooTarget, fooTargetsData),
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("data.boundary_targets.foo", "id", "boundary-targets"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.#", "1"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.%", "17"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.%", "21"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.application_credential_libraries.#", "0"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.application_credential_library_ids.#", "0"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.application_credential_source_ids.#", "0"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.application_credential_sources.#", "0"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.authorized_actions.#", "11"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.authorized_actions.0", "no-op"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.authorized_actions.1", "read"),
Expand All @@ -68,6 +71,8 @@ func TestAccDataSourceTargets(t *testing.T) {
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.description", "bar"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.host_set_ids.#", "0"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.host_sets.#", "0"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.host_source_ids.#", "0"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.host_sources.#", "0"),
resource.TestCheckResourceAttrSet("data.boundary_targets.foo", "items.0.id"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.name", "test"),
resource.TestCheckResourceAttr("data.boundary_targets.foo", "items.0.scope.#", "1"),
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/data_source_users.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/generate_datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

var (
boundaryVersion = "v0.4.0"
boundaryVersion = "v0.6.1"
swaggerFile = fmt.Sprintf("https://raw.githubusercontent.com/hashicorp/boundary/%s/internal/gen/controller.swagger.json", boundaryVersion)
)

Expand Down

0 comments on commit fda8a02

Please sign in to comment.