1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-10 03:14:21 +00:00

Initial implementation

This commit is contained in:
tiwood
2022-03-07 21:55:40 +01:00
parent 6932edc6d0
commit 7f2f3a603a
5 changed files with 176 additions and 0 deletions

View File

@@ -65,6 +65,9 @@ func TestEndpoint_ValidateAndSetDefaults(t *testing.T) {
if endpoint.Alerts[0].FailureThreshold != 3 {
t.Error("Endpoint alert should've defaulted to a failure threshold of 3")
}
if endpoint.HasOIDCConfig() {
t.Error("Endpoint OIDC config should've defaulted to 'nil'")
}
}
func TestEndpoint_ValidateAndSetDefaultsWithClientConfig(t *testing.T) {