ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.
Python ai-agentsamdcomfyuidockerllama-cppllmlocal-ain8nnvidiaopen-webuiragself-hostedspeech-to-textstrix-halotext-to-speechworkflow-automation
package main
import("encoding/json";"strings";"testing")
func TestConfigurationPreservesURLWithoutEnvironmentExpansion(t *testing.T){
input:=`https://example.test/check?q=$HOME"ed="value"`
data,err:=configuration(input);if err!=nil{t.Fatal(err)}
if strings.Contains(string(data),"$"){t.Fatal("URL can be interpolated")}
var parsed struct{Endpoints []struct{URL string `json:"url"`} `json:"endpoints"`}
if err=json.Unmarshal(data,&parsed);err!=nil{t.Fatal(err)}
if parsed.Endpoints[0].URL!=input{t.Fatal("URL changed")}
}
func TestConfigurationRejectsUnsupportedTargetsWithoutEcho(t *testing.T){
for _,input:=range []string{"", "file:///secret", "http://", "https://user:[email protected]", "https://example.test/#secret"}{
_,err:=configuration(input);if err==nil{t.Fatalf("accepted %q",input)}
if strings.Contains(err.Error(),"secret"){t.Fatal("input echoed")}
}
}