diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-05-02 10:44:26 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-09-25 09:43:37 +0200 |
| commit | 7e0eff504d7105b635641b8554b83c75d2f66739 (patch) | |
| tree | bd327de9fe9932930975382b0e9424f04eb8b7e8 | |
| parent | 70f5751a97f770819f8b823fd09ba63d75bf4a8b (diff) | |
API Test: Add test for invalid authorization endpoint scheme
| -rw-r--r-- | internal/server/api/api_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/server/api/api_test.go b/internal/server/api/api_test.go index 2e19d47..2fea4c6 100644 --- a/internal/server/api/api_test.go +++ b/internal/server/api/api_test.go @@ -100,6 +100,14 @@ func Test_APIGetEndpoints(t *testing.T) { }, err: errors.New("API scheme: 'https', is not equal to token scheme: 'ftp'"), }, + { + epl: endpoints.List{ + API: "https://example.com/1", + Authorization: "ftp://example.com/2", + Token: "https://example.com/3", + }, + err: errors.New("API scheme: 'https', is not equal to authorization scheme: 'ftp'"), + }, } for _, tc := range testCases { |
