Mercurial
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 264:04fee26ecce0 | 265:056790c4fb0d |
|---|---|
| 242 "AUTH_TRUSTED_PROXY=::1" \ | 242 "AUTH_TRUSTED_PROXY=::1" \ |
| 243 "MRJUNEJUNE_PORT=16971" \ | 243 "MRJUNEJUNE_PORT=16971" \ |
| 244 "TEST_TMPDIR=$tmpdir" \ | 244 "TEST_TMPDIR=$tmpdir" \ |
| 245 "$server" | 245 "$server" |
| 246 | 246 |
| 247 # A service-owned config outside the bundle/workspace is authoritative. The | |
| 248 # deliberately bad environment secret must not override the valid file. | |
| 249 external_config="$tmpdir/service.config" | |
| 250 cat > "$external_config" <<EOF | |
| 251 AUTH_COOKIE_SECRET=$GOOD_SECRET | |
| 252 SERVER_HOST=127.0.0.1 | |
| 253 AUTH_DEV_INSECURE_COOKIE=true | |
| 254 MRJUNEJUNE_ALLOW_GUEST_INFERENCE=false | |
| 255 DB_PATH=$tmpdir/external-config.db | |
| 256 EOF | |
| 257 run_expect_start "external config path loads and overrides compatibility env" \ | |
| 258 env -i \ | |
| 259 "MRJUNEJUNE_CONFIG_PATH=$external_config" \ | |
| 260 "AUTH_COOKIE_SECRET=bad-env-secret" \ | |
| 261 "MRJUNEJUNE_PORT=16972" \ | |
| 262 "TEST_TMPDIR=$tmpdir" \ | |
| 263 "$server" | |
| 264 | |
| 247 echo "" | 265 echo "" |