clip / test /dockerfile_runtime_defaults_test.go
skatef's picture
Deploy CLIProxyAPI v6.9.37 (489e9a52) to Hugging Face Space
4ac9af9
package test
import (
"strings"
"testing"
)
func TestDockerfileProvidesDefaultConfigForContainerStartup(t *testing.T) {
dockerfile := readProxyRepoFile(t, "Dockerfile")
requiredSnippet := "COPY config.example.yaml /CLIProxyAPI/config.yaml"
if !strings.Contains(dockerfile, requiredSnippet) {
t.Fatalf("Dockerfile must include %q so the container can boot with a default config", requiredSnippet)
}
}