internal/config/remote_management_test.go
Rama main · réplica de lectura del repositorio original.
package config
import (
"testing"
)
func TestParseConfigBytesRemoteManagementBaseURL(t *testing.T) {
cfg, errParse := ParseConfigBytes([]byte(`remote-management:
allow-remote: true
base-url: "https://proxy.example.com"
`))
if errParse != nil {
t.Fatalf("ParseConfigBytes() error = %v", errParse)
}
if cfg.RemoteManagement.BaseURL != "https://proxy.example.com" {
t.Fatalf("RemoteManagement.BaseURL = %q, want https://proxy.example.com", cfg.RemoteManagement.BaseURL)
}
}