Skip to content

Commit

Permalink
Fix compile and test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mhodgson committed Aug 16, 2022
1 parent 7759ad9 commit d9e4486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,11 @@ func (s *GroupsService) AddGroupSAMLLink(gid interface{}, opt *AddGroupSAMLLinkO

// The API returns a null response for new created objects, so we construct the result for a successfull post from the inputs.
gl := SAMLGroupLink{
AccessLevel: AddGroupSAMLLinkOptions.AccessLevel,
Name: AddGroupSAMLLinkOptions.SamlGroupName
AccessLevel: *opt.AccessLevel,
Name: *opt.SamlGroupName,
}

return gl, resp, err
return &gl, resp, err
}

// DeleteGroupSAMLLink deletes a group SAML link. Available only for users who
Expand Down
2 changes: 1 addition & 1 deletion groups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func TestAddGroupSAMLLink(t *testing.T) {
})

opt := &AddGroupSAMLLinkOptions{
AccessLevel: String("developer"),
AccessLevel: String("Developer"),
SamlGroupName: String("gitlab_group_example_developer"),
}

Expand Down

0 comments on commit d9e4486

Please sign in to comment.