Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
post_client_server -> post_client_item (#40)
Browse files Browse the repository at this point in the history
Co-authored-by: Giacomo Consonni <[email protected]>
  • Loading branch information
Giaco9 and giacomo-ca authored Jan 15, 2021
1 parent a7009a6 commit 7e1ba8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/resources/project_access_token.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The following arguments are supported:
* `name` - (Required) `<string>` Name of the project access token. Max length 32 characters.

* `scopes` - (Required) `<list(string)>` Scopes to assign to the create access token.
Valid options: `read`, `write`, `post_server_item`, `post_client_server`.
Valid options: `read`, `write`, `post_server_item`, `post_client_item`.

* `status` - (Required) `<string>` Enable or disable the access token. Valid options: `enabled`, `disabled`.

Expand Down
2 changes: 1 addition & 1 deletion rollbar/resource_rollbar_project_access_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func resourceRollbarProjectAccessToken() *schema.Resource {
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice(
[]string{"read", "write", "post_server_item", "post_client_server"}, false),
[]string{"read", "write", "post_server_item", "post_client_item"}, false),
},
},

Expand Down
2 changes: 1 addition & 1 deletion rollbar/resource_rollbar_project_access_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestAccRollbarProjectAccessToken_InvalidScopes(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccCheckRollbarProjectAccessToken_InvalidScopes(projectName, tokenName),
ExpectError: regexp.MustCompile(`.*to be one of \[read write post_server_item post_client_server].*`),
ExpectError: regexp.MustCompile(`.*to be one of \[read write post_server_item post_client_item].*`),
},
},
})
Expand Down

0 comments on commit 7e1ba8d

Please sign in to comment.