fix: update HTTP request handling and improve test coverage in various handlers

This commit is contained in:
GitHub Actions
2025-12-31 22:12:51 +00:00
parent a263a5415a
commit dcdc4e03b8
8 changed files with 37 additions and 26 deletions
@@ -1086,7 +1086,7 @@ func TestFindConfigPath_RootLayout(t *testing.T) {
// Create config.yaml in root (not in config/ subdirectory)
configPath := filepath.Join(tmpDir, "config.yaml")
require.NoError(t, os.WriteFile(configPath, []byte("common:\n daemonize: false"), 0644))
require.NoError(t, os.WriteFile(configPath, []byte("common:\n daemonize: false"), 0o644))
exec := &stubEnvExecutor{}
svc := NewConsoleEnrollmentService(db, exec, tmpDir, "secret")