diff options
| author | mihna123 <mihailonvojinovic@gmail.com> | 2026-09-04 01:13:26 +0200 |
|---|---|---|
| committer | mihna123 <mihailonvojinovic@gmail.com> | 2026-09-04 01:13:26 +0200 |
| commit | 2e227424ba3a5bcc703936c35bcadba8cda0931f (patch) | |
| tree | 922e199d9557eca9eba74e5525a1be8b2ee86061 /internal/config/testdata/full.conf | |
| parent | 5907450d569c997809674a2abeec97ddf0afe4aa (diff) | |
| download | openstore-2e227424ba3a5bcc703936c35bcadba8cda0931f.tar.gz openstore-2e227424ba3a5bcc703936c35bcadba8cda0931f.zip | |
config: add tests for config loading and page handlers
Cover the defaults/system/user cascade, partial overrides, malformed
files and base-url validation, plus DefaultPath resolution. An empty
value in an ini file counts as unset, so that is pinned down too.
Add the first handlers tests: routing, the instance name reaching the
template, and escaping of operator-supplied config in the page.
Diffstat (limited to 'internal/config/testdata/full.conf')
| -rw-r--r-- | internal/config/testdata/full.conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/config/testdata/full.conf b/internal/config/testdata/full.conf new file mode 100644 index 0000000..1f703f0 --- /dev/null +++ b/internal/config/testdata/full.conf @@ -0,0 +1,7 @@ +[serve] +addr = 127.0.0.1:8080 + +[instance] +name = Full Store +contact-email = full@store.com +base-url = https://full.store.com |
