From d4cf8fe077d1edf7ea56fb82f7f78d7fcc2fdbfd Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 22 Oct 2025 23:23:43 +0800 Subject: [PATCH] update test case --- pkg/auth/oauth2/nextcloud_oauth2_datasource_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/auth/oauth2/nextcloud_oauth2_datasource_test.go b/pkg/auth/oauth2/nextcloud_oauth2_datasource_test.go index 77742647..84112f10 100644 --- a/pkg/auth/oauth2/nextcloud_oauth2_datasource_test.go +++ b/pkg/auth/oauth2/nextcloud_oauth2_datasource_test.go @@ -14,9 +14,9 @@ func TestNewNextcloudOAuth2Provider(t *testing.T) { assert.Equal(t, "https://example.com/apps/oauth2/authorize", datasource.GetAuthUrl()) assert.Equal(t, "https://example.com/apps/oauth2/api/v1/token", datasource.GetTokenUrl()) - datasource = NewNextcloudOAuth2Provider("https://example.com") - assert.Equal(t, "https://example.com/apps/oauth2/authorize", datasource.GetAuthUrl()) - assert.Equal(t, "https://example.com/apps/oauth2/api/v1/token", datasource.GetTokenUrl()) + datasource = NewNextcloudOAuth2Provider("https://example.com/index.php") + assert.Equal(t, "https://example.com/index.php/apps/oauth2/authorize", datasource.GetAuthUrl()) + assert.Equal(t, "https://example.com/index.php/apps/oauth2/api/v1/token", datasource.GetTokenUrl()) } func TestNextcloudOAuth2Datasource_GetUserInfoRequest(t *testing.T) {