[#3948] added Bitbucket OAuth2 provider

Co-authored-by: aabajyan <arsen.abajyan@pm.me>
This commit is contained in:
Gani Georgiev
2023-12-17 15:31:34 +02:00
parent 1208edec92
commit 4e91be6d74
41 changed files with 2992 additions and 2818 deletions
+9
View File
@@ -225,4 +225,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Mailcow); !ok {
t.Error("Expected to be instance of *auth.Mailcow")
}
// bitbucket
p, err = auth.NewProviderByName(auth.NameBitbucket)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Bitbucket); !ok {
t.Error("Expected to be instance of *auth.Bitbucket")
}
}