summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2026-03-23 17:25:50 +0100
committerxengineering <me@xengineering.eu>2026-03-23 19:56:36 +0100
commit04e6d681f04731c67b9b65fb6a55a21184fd4baa (patch)
tree930415e3d41ffe48d8e82c8cb178f1011cce120f
parent1337229d4a202099d9847778507faa0f0f207f82 (diff)
downloadsia-server-04e6d681f04731c67b9b65fb6a55a21184fd4baa.tar
sia-server-04e6d681f04731c67b9b65fb6a55a21184fd4baa.tar.zst
sia-server-04e6d681f04731c67b9b65fb6a55a21184fd4baa.zip
Move default.json to configs/valid
Since the default configuration is a valid configuration it should belong to this new directory. This allows to continue with extending automated tests to test all configurations in this directory.
-rw-r--r--config.go2
-rw-r--r--configs/meson.build2
-rw-r--r--configs/valid/default.json (renamed from configs/default.json)0
3 files changed, 2 insertions, 2 deletions
diff --git a/config.go b/config.go
index d39efca..b3cd9dc 100644
--- a/config.go
+++ b/config.go
@@ -31,7 +31,7 @@ func init() {
mqttTopicPrefixRegexp = regexp.MustCompile(MQTT_TOPIC_PREFIX_REGEX)
}
-//go:embed configs/default.json
+//go:embed configs/valid/default.json
var defaultConfig []byte
type MQTTConfig struct {
diff --git a/configs/meson.build b/configs/meson.build
index 98110da..aa16a47 100644
--- a/configs/meson.build
+++ b/configs/meson.build
@@ -1,3 +1,3 @@
fs = import('fs')
-default_config = fs.copyfile(meson.current_source_dir() / 'default.json')
+default_config = fs.copyfile(meson.current_source_dir() / 'valid' / 'default.json')
diff --git a/configs/default.json b/configs/valid/default.json
index b291185..b291185 100644
--- a/configs/default.json
+++ b/configs/valid/default.json