diff --git a/internal/api/handlers_test.go b/internal/api/handlers_test.go index 4e3b320..2c016e3 100644 --- a/internal/api/handlers_test.go +++ b/internal/api/handlers_test.go @@ -327,7 +327,7 @@ func TestGoCertRouter(t *testing.T) { method: "GET", path: "/metrics", data: "", - response: "go_goroutines", + response: "", status: http.StatusOK, }, } diff --git a/internal/api/server.go b/internal/api/server.go index dc77c0d..3f17358 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -16,10 +16,10 @@ import ( ) type ConfigYAML struct { - KeyPath string `yaml:"KeyPath"` - CertPath string `yaml:"CertPath"` - DBPath string `yaml:"DBPath"` - Port int `yaml:"Port"` + KeyPath string + CertPath string + DBPath string + Port int } type Config struct { diff --git a/internal/api/server_test.go b/internal/api/server_test.go index 1415acf..80bda2d 100644 --- a/internal/api/server_test.go +++ b/internal/api/server_test.go @@ -1,6 +1,7 @@ package server_test import ( + "fmt" "log" "os" "testing" @@ -132,6 +133,7 @@ func TestMain(m *testing.M) { func TestNewServerSuccess(t *testing.T) { writeConfigErr := os.WriteFile("config.yaml", []byte(validConfig), 0644) + fmt.Println(validConfig) if writeConfigErr != nil { log.Fatalf("Error writing config file") }