Harden CI and switch release builds to tagged immutable images
This commit is contained in:
parent
bed2e6cfb6
commit
f24e96efa7
60 changed files with 4710 additions and 64 deletions
18
internal/config/config_test.go
Normal file
18
internal/config/config_test.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package config
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestParseLogLevel(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
level, err := parseLogLevel("warning")
|
||||
if err != nil {
|
||||
t.Fatalf("parseLogLevel returned an error: %v", err)
|
||||
}
|
||||
if level != slog.LevelWarn {
|
||||
t.Fatalf("parseLogLevel = %v, want %v", level, slog.LevelWarn)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue