summaryrefslogtreecommitdiff
path: root/internal/config/testdata/malformed.conf
diff options
context:
space:
mode:
authormihna123 <mihailonvojinovic@gmail.com>2026-09-04 01:13:26 +0200
committermihna123 <mihailonvojinovic@gmail.com>2026-09-04 01:13:26 +0200
commit2e227424ba3a5bcc703936c35bcadba8cda0931f (patch)
tree922e199d9557eca9eba74e5525a1be8b2ee86061 /internal/config/testdata/malformed.conf
parent5907450d569c997809674a2abeec97ddf0afe4aa (diff)
downloadopenstore-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/malformed.conf')
-rw-r--r--internal/config/testdata/malformed.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/config/testdata/malformed.conf b/internal/config/testdata/malformed.conf
new file mode 100644
index 0000000..327aace
--- /dev/null
+++ b/internal/config/testdata/malformed.conf
@@ -0,0 +1,2 @@
+[instance
+name = Unclosed Section