docs: public-readiness — vibe-coded disclosure + genericize internal hosts
- README + CLAUDE.md: upfront "this is a vibe-coded project" disclosure for going public. - Replace internal LAN hostnames (*.orgrimmar.dudenhoeffer.casa) with example.com across README, ADR-0004, the envproviders example, and env_test.go (assertions updated together; suite still green). Token was already a "change-me" placeholder, not a real secret. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+5
-5
@@ -21,8 +21,8 @@ func TestParseDSN(t *testing.T) {
|
||||
wantErr error
|
||||
}{
|
||||
{
|
||||
raw: "foreman://test-token-change-me@foreman-m1.orgrimmar.dudenhoeffer.casa",
|
||||
want: DSN{Scheme: "foreman", Token: "test-token-change-me", Host: "foreman-m1.orgrimmar.dudenhoeffer.casa"},
|
||||
raw: "foreman://test-token-change-me@foreman-m1.example.com",
|
||||
want: DSN{Scheme: "foreman", Token: "test-token-change-me", Host: "foreman-m1.example.com"},
|
||||
},
|
||||
{
|
||||
raw: "ollama://my-host.example:11434",
|
||||
@@ -66,8 +66,8 @@ func TestDSNBaseURL(t *testing.T) {
|
||||
func TestLoadEnvForeman(t *testing.T) {
|
||||
r := newTestRegistry(t)
|
||||
err := r.LoadEnv(map[string]string{
|
||||
"LLM_M1": "foreman://test-token-change-me@foreman-m1.orgrimmar.dudenhoeffer.casa",
|
||||
"LLM_M5": "foreman://test-token-change-me@foreman-m5.orgrimmar.dudenhoeffer.casa",
|
||||
"LLM_M1": "foreman://test-token-change-me@foreman-m1.example.com",
|
||||
"LLM_M5": "foreman://test-token-change-me@foreman-m5.example.com",
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatalf("LoadEnv: %v", err)
|
||||
@@ -85,7 +85,7 @@ func TestLoadEnvForeman(t *testing.T) {
|
||||
if op.Name() != name {
|
||||
t.Errorf("provider name = %q, want %q", op.Name(), name)
|
||||
}
|
||||
wantURL := "https://foreman-" + name + ".orgrimmar.dudenhoeffer.casa"
|
||||
wantURL := "https://foreman-" + name + ".example.com"
|
||||
if op.BaseURL() != wantURL {
|
||||
t.Errorf("provider %q baseURL = %q, want %q", name, op.BaseURL(), wantURL)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user