@@ -41,9 +41,9 @@ func TestAzureProviderDefaults(t *testing.T) {
4141 p.Data().LoginURL.String())
4242 assert.Equal(t, "https://login.microsoftonline.com/common/oauth2/token",
4343 p.Data().RedeemURL.String())
44− assert.Equal(t, "https://graph.windows.net/me?api-version=1.6",
44+ assert.Equal(t, "https://graph.microsoft.com/v1.0/me",
4545 p.Data().ProfileURL.String())
46− assert.Equal(t, "https://graph.windows.net",
46+ assert.Equal(t, "https://graph.microsoft.com",
4747 p.Data().ProtectedResource.String())
4848 assert.Equal(t, "",
4949 p.Data().ValidateURL.String())
@@ -97,9 +97,9 @@ func TestAzureSetTenant(t *testing.T) {
9797 p.Data().LoginURL.String())
9898 assert.Equal(t, "https://login.microsoftonline.com/example/oauth2/token",
9999 p.Data().RedeemURL.String())
100− assert.Equal(t, "https://graph.windows.net/me?api-version=1.6",
100+ assert.Equal(t, "https://graph.microsoft.com/v1.0/me",
101101 p.Data().ProfileURL.String())
102− assert.Equal(t, "https://graph.windows.net",
102+ assert.Equal(t, "https://graph.microsoft.com",
103103 p.Data().ProtectedResource.String())
104104 assert.Equal(t, "",
105105 p.Data().ValidateURL.String())
@@ -107,12 +107,11 @@ func TestAzureSetTenant(t *testing.T) {
107107}
108108
109109func testAzureBackend(payload string) *httptest.Server {
110− path := "/me"
111− query := "api-version=1.6"
110+ path := "/v1.0/me"
112111
113112 return httptest.NewServer(http.HandlerFunc(
114113 func(w http.ResponseWriter, r *http.Request) {
115− if (r.URL.Path != path || r.URL.RawQuery != query) && r.Method != http.MethodPost {
114+ if (r.URL.Path != path) && r.Method != http.MethodPost {
116115 w.WriteHeader(404)
117116 } else if r.Method == http.MethodPost && r.Body != nil {
118117 w.WriteHeader(200)