diff options
| author | Jeroen Wijenbergh <jeroenwijenbergh@protonmail.com> | 2024-04-30 13:12:41 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-05-29 14:36:10 +0200 |
| commit | b1033a6a39fe21fec99be5318ba3536af148a79b (patch) | |
| tree | b7f8032f4b8efd3bee4d447b262155ac3e95d221 /internal/discovery/discovery_test.go | |
| parent | 67df2767c1edd64eed4ea1aa1a2628576de40e3f (diff) | |
Discovery: Return a subset to the client
Diffstat (limited to 'internal/discovery/discovery_test.go')
| -rw-r--r-- | internal/discovery/discovery_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/discovery/discovery_test.go b/internal/discovery/discovery_test.go index 495efd2..2ea18e1 100644 --- a/internal/discovery/discovery_test.go +++ b/internal/discovery/discovery_test.go @@ -86,9 +86,9 @@ func TestOrganizations(t *testing.T) { // TestSecureLocationList tests the function for getting a list of secure internet servers func TestSecureLocationList(t *testing.T) { d := Discovery{ - ServerList: discotypes.Servers{ + ServerList: Servers{ Version: 1, - List: []discotypes.Server{ + List: []Server{ // institute access server, this should not be found {CountryCode: "", Type: "institute_access"}, // secure internet servers, these should be found @@ -111,15 +111,15 @@ func TestSecureLocationList(t *testing.T) { // TestServerByURL tests the function for getting a server by the Base URL and type func TestServerByURL(t *testing.T) { d := Discovery{ - ServerList: discotypes.Servers{ + ServerList: Servers{ Version: 1, - List: []discotypes.Server{ + List: []Server{ // institute access server - {BaseURL: "a", Type: "institute_access"}, + Server{BaseURL: "a", Type: "institute_access"}, // secure internet servers - {BaseURL: "b", Type: "secure_internet"}, + Server{BaseURL: "b", Type: "secure_internet"}, // Unexpected type, this should not be found - {BaseURL: "d", Type: "test"}, + Server{BaseURL: "d", Type: "test"}, }, }, } |
