Skip to content

Commit

Permalink
fix struct name in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jusshersmith committed Jan 28, 2020
1 parent 23ace27 commit 0356d01
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/auth/providers/amazon_cognito_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func TestAmazonCognitoValidateGroupMembership(t *testing.T) {
groupsError error
checkMembershipGroups []string
listMembershipsFunc func(string) (groups.MemberSet, bool)
getUserProfileResp GetCognitoUserProfileResponse
getUserProfileResp getCognitoUserProfileResponse
expectedGroups []string
expectedErrorString string
}{
Expand All @@ -386,7 +386,7 @@ func TestAmazonCognitoValidateGroupMembership(t *testing.T) {
name: "no username returned from Cognito results in error",
inputAllowedGroups: []string{"group1"},
expectedGroups: []string{},
getUserProfileResp: GetCognitoUserProfileResponse{
getUserProfileResp: getCognitoUserProfileResponse{
Username: "",
},
listMembershipsFunc: func(string) (groups.MemberSet, bool) { return nil, false },
Expand All @@ -397,7 +397,7 @@ func TestAmazonCognitoValidateGroupMembership(t *testing.T) {
inputAllowedGroups: []string{"group1"},
groupsError: fmt.Errorf("should not get here"),
listMembershipsFunc: func(string) (groups.MemberSet, bool) { return groups.MemberSet{"username": {}}, true },
getUserProfileResp: GetCognitoUserProfileResponse{
getUserProfileResp: getCognitoUserProfileResponse{
Username: "username",
},
expectedGroups: []string{"group1"},
Expand All @@ -407,7 +407,7 @@ func TestAmazonCognitoValidateGroupMembership(t *testing.T) {
inputAllowedGroups: []string{"group1"},
groupsError: fmt.Errorf("should not get here"),
listMembershipsFunc: func(string) (groups.MemberSet, bool) { return groups.MemberSet{}, true },
getUserProfileResp: GetCognitoUserProfileResponse{
getUserProfileResp: getCognitoUserProfileResponse{
Username: "username",
},
expectedGroups: []string{},
Expand All @@ -425,7 +425,7 @@ func TestAmazonCognitoValidateGroupMembership(t *testing.T) {
return groups.MemberSet{}, false
}
},
getUserProfileResp: GetCognitoUserProfileResponse{
getUserProfileResp: getCognitoUserProfileResponse{
Username: "username",
},
expectedGroups: []string{"group1"},
Expand All @@ -442,7 +442,7 @@ func TestAmazonCognitoValidateGroupMembership(t *testing.T) {
return groups.MemberSet{}, false
}
},
getUserProfileResp: GetCognitoUserProfileResponse{
getUserProfileResp: getCognitoUserProfileResponse{
Username: "username",
},
expectedErrorString: "error",
Expand All @@ -459,7 +459,7 @@ func TestAmazonCognitoValidateGroupMembership(t *testing.T) {
return groups.MemberSet{}, true
}
},
getUserProfileResp: GetCognitoUserProfileResponse{
getUserProfileResp: getCognitoUserProfileResponse{
Username: "username",
},
expectedGroups: []string{"group1"},
Expand Down

0 comments on commit 0356d01

Please sign in to comment.