summaryrefslogtreecommitdiff
path: root/internal/discovery/discovery_test.go
AgeCommit message (Collapse)Author
2024-11-21Replace all links from GitHub to Codebergjwijenbergh
2024-07-17Discovery: Implement conditional requestsjwijenbergh
From docs.eduvpn.org (https://docs.eduvpn.org/server/v3/server-discovery.html): When fetching the new JSON files, the client SHOULD use conditional requests, so the file is only fetched in case there were changes. This, in order to reduce the amount of traffic required by VPN clients, especially relevant for metered, or slow connections. The If-Modified-Since request header SHOULD be used for this. If the response code is 304, the file hasn’t changed since. The value to use for the If-Modified-Since request header is the exact value of the Last-Modified response header for the last successful download, i.e. 200 response. You SHOULD store the value of Last-Modified and use it as-is for the If-Modified-Since header.
2024-06-27Discovery: Test for #55jwijenbergh
2024-06-25Discovery: Return a fresh booleanjwijenbergh
2024-05-29Discovery: return country_code to the clientjwijenbergh
2024-05-29Discovery: Fix testjwijenbergh
2024-05-29Discovery: Return a subset to the clientJeroen Wijenbergh
2024-05-24Test Server: Add helpers for response handlersJeroen Wijenbergh
2023-09-25Discovery: Pass a context aroundjwijenbergh
2023-09-25Tests: Pass for V2 APIjwijenbergh
2023-02-28Discovery: Update tests to use the right membersjwijenbergh
2023-02-16Format: Run gofumptjwijenbergh
2023-02-16Test: Implement util package for starting a TLS serverjwijenbergh
2023-01-31Discovery Test: Fix http -> https typojwijenbergh
We rewrite URLs anyway so this is still fine but let's not make it so confusing
2023-01-31Discovery: Setup a local HTTPS serverjwijenbergh
2023-01-03Format: Run gofumptjwijenbergh
2023-01-03Discovery Test: Add more utility function testsjwijenbergh
2023-01-02Discovery Test: Ignore linter for serve errorjwijenbergh
2023-01-02Discovery: Add simple tests with a file serverjwijenbergh