(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func TestNewDigitalOceanProvider(t *testing.T) { |
| 49 | g := NewWithT(t) |
| 50 | |
| 51 | // Test that defaults are set when calling for a new provider with nothing set |
| 52 | providerData := NewDigitalOceanProvider(&ProviderData{}).Data() |
| 53 | g.Expect(providerData.ProviderName).To(Equal("DigitalOcean")) |
| 54 | g.Expect(providerData.LoginURL.String()).To(Equal("https://cloud.digitalocean.com/v1/oauth/authorize")) |
| 55 | g.Expect(providerData.RedeemURL.String()).To(Equal("https://cloud.digitalocean.com/v1/oauth/token")) |
| 56 | g.Expect(providerData.ProfileURL.String()).To(Equal("https://api.digitalocean.com/v2/account")) |
| 57 | g.Expect(providerData.ValidateURL.String()).To(Equal("https://api.digitalocean.com/v2/account")) |
| 58 | g.Expect(providerData.Scope).To(Equal("read")) |
| 59 | } |
| 60 | |
| 61 | func TestDigitalOceanProviderOverrides(t *testing.T) { |
| 62 | p := NewDigitalOceanProvider( |
nothing calls this directly
no test coverage detected