diff mrjunejune/test/config_validation_test.sh @ 265:056790c4fb0d

add role-aware Epi assistant prompts Add verified June knowledge, guest/member/admin Copilot profiles, profile-isolated session recovery, animated Epi greetings, and a single authoritative runtime config workflow for inference. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 10:50:30 -0700
parents 04fee26ecce0
children
line wrap: on
line diff
--- a/mrjunejune/test/config_validation_test.sh	Fri Aug 07 07:34:12 2026 -0700
+++ b/mrjunejune/test/config_validation_test.sh	Fri Aug 07 10:50:30 2026 -0700
@@ -244,4 +244,22 @@
     "TEST_TMPDIR=$tmpdir" \
     "$server"
 
+# A service-owned config outside the bundle/workspace is authoritative. The
+# deliberately bad environment secret must not override the valid file.
+external_config="$tmpdir/service.config"
+cat > "$external_config" <<EOF
+AUTH_COOKIE_SECRET=$GOOD_SECRET
+SERVER_HOST=127.0.0.1
+AUTH_DEV_INSECURE_COOKIE=true
+MRJUNEJUNE_ALLOW_GUEST_INFERENCE=false
+DB_PATH=$tmpdir/external-config.db
+EOF
+run_expect_start "external config path loads and overrides compatibility env" \
+  env -i \
+    "MRJUNEJUNE_CONFIG_PATH=$external_config" \
+    "AUTH_COOKIE_SECRET=bad-env-secret" \
+    "MRJUNEJUNE_PORT=16972" \
+    "TEST_TMPDIR=$tmpdir" \
+    "$server"
+
 echo ""