From c3028b093d1f8c50d45f6141e38b7d3b253b4d32 Mon Sep 17 00:00:00 2001 From: Wilfried OLLIVIER Date: Thu, 3 Dec 2020 21:07:32 +0100 Subject: [PATCH] Fix: emails handling in gitlab provider --- providers/gitlab.go | 5 ++--- providers/gitlab_test.go | 7 ------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/providers/gitlab.go b/providers/gitlab.go index 0d282dd4de..246dd78c9f 100644 --- a/providers/gitlab.go +++ b/providers/gitlab.go @@ -18,9 +18,8 @@ import ( type GitLabProvider struct { *ProviderData - Groups []string - Projects []*GitlabProject - EmailDomains []string + Groups []string + Projects []*GitlabProject AllowUnverifiedEmail bool } diff --git a/providers/gitlab_test.go b/providers/gitlab_test.go index e1d58a905d..62f0a70a30 100644 --- a/providers/gitlab_test.go +++ b/providers/gitlab_test.go @@ -157,7 +157,6 @@ var _ = Describe("Gitlab Provider Tests", func() { type emailsTableInput struct { expectedError error expectedValue string - domains []string allowUnverifiedEmail bool } @@ -166,12 +165,6 @@ var _ = Describe("Gitlab Provider Tests", func() { p.AllowUnverifiedEmail = in.allowUnverifiedEmail session := &sessions.SessionState{AccessToken: "gitlab_access_token"} - if in.domains != nil { - if len(in.domains) >= 1 { - p.EmailDomains = in.domains - } - } - err := p.EnrichSession(context.Background(), session) if in.expectedError != nil {