Skip to content

Commit

Permalink
Vault Test + SSH Test + Role Assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
adiyaar24 committed Apr 25, 2023
1 parent 8d3cf87 commit de44696
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions docs/resources/platform_role_assignments.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ resource "harness_platform_role_assignments" "example2" {
### Required

- `principal` (Block List, Min: 1) Principal. (see [below for nested schema](#nestedblock--principal))
- `resource_group_identifier` (String) Resource group identifier.
- `role_identifier` (String) Role identifier.

### Optional

Expand All @@ -96,8 +98,6 @@ resource "harness_platform_role_assignments" "example2" {
- `managed` (Boolean) Managed or not.
- `org_id` (String) Org identifier.
- `project_id` (String) Project Identifier
- `resource_group_identifier` (String) Resource group identifier.
- `role_identifier` (String) Role identifier.

### Read-Only

Expand All @@ -106,11 +106,14 @@ resource "harness_platform_role_assignments" "example2" {
<a id="nestedblock--principal"></a>
### Nested Schema for `principal`

Required:

- `type` (String) Type.

Optional:

- `identifier` (String) Identifier.
- `scope_level` (String) Scope level.
- `type` (String) Type.

## Import

Expand Down
1 change: 1 addition & 0 deletions internal/service/platform/connector/vault_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ func TestAccResourceConnectorVault_AppRole(t *testing.T) {
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateIdFunc: acctest.AccountLevelResourceImportStateIdFunc(resourceName),
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ func ResourceRoleAssignments() *schema.Resource {
"resource_group_identifier": {
Description: "Resource group identifier.",
Type: schema.TypeString,
Optional: true,
Required: true,
},
"role_identifier": {
Description: "Role identifier.",
Type: schema.TypeString,
Optional: true,
Required: true,
},
"principal": {
Description: "Principal.",
Expand All @@ -59,7 +59,7 @@ func ResourceRoleAssignments() *schema.Resource {
"type": {
Description: "Type.",
Type: schema.TypeString,
Optional: true,
Required: true,
ValidateFunc: validation.StringInSlice([]string{"USER", "USER_GROUP", "SERVICE", "API_KEY", "SERVICE_ACCOUNT"}, false),
},
},
Expand Down
1 change: 0 additions & 1 deletion internal/service/platform/secret/sshkey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ func testAccResourceSecret_sshkey_sshPathCredential(id string, name string) stri
sshkey_path_credential {
user_name = "user_name"
key_path = "key_path"
encrypted_passphrase = "encrypted_passphrase"
}
credential_type = "KeyPath"
}
Expand Down

0 comments on commit de44696

Please sign in to comment.