Add Authentication Response Code checks (#15)

* add authentication tests to check status codes

* update authentication test URLs to use the correct endpoint

* Fix test failures
This commit is contained in:
Ian-J-S 2026-02-26 20:32:26 -08:00 committed by GitHub
parent 62bcbc6082
commit 0708cfbc02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,6 +150,10 @@ func host() string {
return fmt.Sprintf("http://%s", cfg.ListenAddr())
}
func TestHealthEndpointNoAuth(t *testing.T) {
if os.Getenv("KOITO_SKIP_DOCKER") == "1" {
t.Skip("skipping Docker-based integration test")
}
client := &http.Client{
Timeout: 5 * time.Second,
}
@ -164,6 +168,10 @@ func TestHealthEndpointNoAuth(t *testing.T) {
}
func TestHealthEndpointMethodNotAllowed(t *testing.T) {
if os.Getenv("KOITO_SKIP_DOCKER") == "1" {
t.Skip("skipping Docker-based integration test")
}
client := &http.Client{
Timeout: 5 * time.Second,
}