Skip to content

Commit c90f780

Browse files
mhodgsontimofurrer
authored andcommitted
Requested updates to SAML link resource
1 parent a2ffae3 commit c90f780

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

docs/resources/group_saml_link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "gitlab_group_saml_link" "test" {
2828

2929
### Required
3030

31-
- `access_level` (String) Access level for members of the SAML group. Valid values are: `Guest`, `Reporter`, `Developer`, `Maintainer`, `Owner`.
31+
- `access_level` (String) Access level for members of the SAML group. Valid values are: `guest`, `reporter`, `developer`, `maintainer`, `owner`.
3232
- `group` (String) The ID or path of the group to add the SAML Group Link to.
3333
- `saml_group_name` (String) The name of the SAML group.
3434

internal/provider/resource_gitlab_group_saml_link.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import (
1313

1414
var _ = registerResource("gitlab_group_saml_link", func() *schema.Resource {
1515
validGroupSamlLinkAccessLevelNames := []string{
16-
"Guest",
17-
"Reporter",
18-
"Developer",
19-
"Maintainer",
20-
"Owner",
16+
"guest",
17+
"reporter",
18+
"developer",
19+
"maintainer",
20+
"owner",
2121
}
2222

2323
return &schema.Resource{

internal/provider/resource_gitlab_group_saml_link_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
)
1313

1414
func TestAccGitlabGroupSamlLink_basic(t *testing.T) {
15+
testAccCheckEE(t)
1516
testAccRequiresAtLeast(t, "15.3")
1617

1718
testGroup := testAccCreateGroups(t, 1)[0]
@@ -26,7 +27,7 @@ func TestAccGitlabGroupSamlLink_basic(t *testing.T) {
2627
Config: fmt.Sprintf(`
2728
resource "gitlab_group_saml_link" "this" {
2829
group = "%d"
29-
access_level = "Developer"
30+
access_level = "developer"
3031
saml_group_name = "test_saml_group"
3132
3233
}
@@ -43,7 +44,7 @@ func TestAccGitlabGroupSamlLink_basic(t *testing.T) {
4344
Config: fmt.Sprintf(`
4445
resource "gitlab_group_saml_link" "this" {
4546
group = "%d"
46-
access_level = "Maintainer"
47+
access_level = "maintainer"
4748
saml_group_name = "test_saml_group"
4849
4950
}

0 commit comments

Comments
 (0)