(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func TestNewBitbucketProvider(t *testing.T) { |
| 63 | g := NewWithT(t) |
| 64 | |
| 65 | // Test that defaults are set when calling for a new provider with nothing set |
| 66 | providerData := NewBitbucketProvider(&ProviderData{}, options.BitbucketOptions{}).Data() |
| 67 | g.Expect(providerData.ProviderName).To(Equal("Bitbucket")) |
| 68 | g.Expect(providerData.LoginURL.String()).To(Equal("https://bitbucket.org/site/oauth2/authorize")) |
| 69 | g.Expect(providerData.RedeemURL.String()).To(Equal("https://bitbucket.org/site/oauth2/access_token")) |
| 70 | g.Expect(providerData.ProfileURL.String()).To(Equal("")) |
| 71 | g.Expect(providerData.ValidateURL.String()).To(Equal("https://api.bitbucket.org/2.0/user/emails")) |
| 72 | g.Expect(providerData.Scope).To(Equal("email")) |
| 73 | } |
| 74 | |
| 75 | func TestBitbucketProviderScopeAdjustForTeam(t *testing.T) { |
| 76 | p := testBitbucketProvider("", "test-team", "") |
nothing calls this directly
no test coverage detected