Skip to content

Commit

Permalink
Back to disabled self-service permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tensho committed Oct 12, 2020
1 parent ee4429f commit 9165fe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aws/resource_aws_workspaces_directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func resourceAwsWorkspacesDirectoryCreate(d *schema.ResourceData, meta interface

input := &workspaces.RegisterWorkspaceDirectoryInput{
DirectoryId: aws.String(directoryId),
EnableSelfService: aws.Bool(true), // this is handled separately below
EnableSelfService: aws.Bool(false), // this is handled separately below
EnableWorkDocs: aws.Bool(true),
Tenancy: aws.String(workspaces.TenancyShared),
Tags: tags,
Expand Down
8 changes: 4 additions & 4 deletions aws/resource_aws_workspaces_directory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ func TestAccAwsWorkspacesDirectory_basic(t *testing.T) {
resource.TestCheckResourceAttrPair(resourceName, "iam_role_id", iamRoleDataSourceName, "arn"),
resource.TestCheckResourceAttrSet(resourceName, "registration_code"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.#", "1"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.change_compute_type", "true"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.increase_volume_size", "true"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.rebuild_workspace", "true"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.change_compute_type", "false"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.increase_volume_size", "false"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.rebuild_workspace", "false"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.restart_workspace", "true"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.switch_running_mode", "true"),
resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.switch_running_mode", "false"),
resource.TestCheckResourceAttr(resourceName, "subnet_ids.#", "2"),
resource.TestCheckResourceAttr(resourceName, "tags.%", "0"),
resource.TestCheckResourceAttr(resourceName, "workspace_creation_properties.#", "1"),
Expand Down

0 comments on commit 9165fe1

Please sign in to comment.