summaryrefslogtreecommitdiff
path: root/test/config_test.cc
AgeCommit message (Collapse)Author
2025-05-29Interpret relative cinemas SQLite3 paths as being relative to the config.xml ↵Carl Hetherington
(#3038).
2025-03-08Don't use an optional for the Grok config object.Carl Hetherington
I'm not sure why I did it like this in the first place - perhaps so that if the API endpoint changes there aren't so many old values stuck in config files all over the place? Anyway, it seems cleaner to do it like this, as it's how we handle the other config.
2025-02-10Apply the same fix for DKDM recipients as we previously had for cinemas.Carl Hetherington
Otherwise the same problem happens with dkdm_recipients.xml - it is moved to sqlite3 but the configuration still has the XML path, causing a crash the next time we try to access the DKDM recipients list.
2025-01-22Sort cinemas and DKDM recipients correctly using the collator (#2950).Carl Hetherington
2024-06-24Use separate working directories for some tests.Carl Hetherington
2024-05-29Use ConfigRestorer to reset override_path after use.Carl Hetherington
2024-05-16Some more test fixups.Carl Hetherington
2024-05-13Fix case where both XML and sqlite3 files are present, and config.xml still ↵Carl Hetherington
refers to the XML. Then we would leave the config.xml pointing at the XML, and everything after that assumes that cinemas_file is sqlite3. Instead we always set the cinemas file to the sqlite3 version, and convert if it it wasn't there before.
2024-05-06Use sqlite for cinema and DKDM recipient lists.Carl Hetherington
2024-04-24Restore time zone to Cinema and improve UI to use it (#2473).Carl Hetherington
2024-01-28Move UTC offset for KDMs from the cinema to the point of KDM creation (#2300).Carl Hetherington
2024-01-28Normalise XML attribute names to be camelCase (#2241).Carl Hetherington
2024-01-28Use 2.18.x subdirectory for configuration.Carl Hetherington
2023-05-18Cleanup: replace some list with vector.Carl Hetherington
2022-09-15Fix some spelling mistakes (mostly in comments).Carl Hetherington
2022-09-05Let config/cinemas/dkdm_recipients take care of their own recovery.Carl Hetherington
This should mean that if one fails to load, but the others are OK, we don't re-write everything. I hope this has no bad side-effects that I didn't think of. It's particularly helpful in the case of #2319 where a failure to load cinemas.xml (which was being created by another tool) caused the config to be re-written, breaking all existing DKDMs.
2022-09-04Add failing test.Carl Hetherington
2022-02-13Missing ConfigRestorer in test.Carl Hetherington
2022-02-10Don't give up on backups if config.xml isn't there (#2185).Carl Hetherington
Even if it isn't, we still want to try to back up other stuff. Previously if copying config.xml threw an exception we'd just give up.
2021-12-24Tidy up backing up of config files, improve the tests a little and fix it ↵Carl Hetherington
for the case when the user has specified their own config file path.
2021-11-04Add ConfigRestorer and use it instead of setup_test_config() directly.Carl Hetherington
2021-10-10Fix a test reference to account for windows filename slashes.Carl Hetherington
2021-09-27Fix tests.v2.15.163Carl Hetherington
2021-09-27Add config location versioning (#2090).Carl Hetherington
2021-04-29C++11 tidying.Carl Hetherington
2021-02-28Try again to fix windows tests.Carl Hetherington
2021-02-27Try to fix text-file-checking test on Windows.Carl Hetherington
2021-02-24Fix tests being broken by new config test.v2.15.132Carl Hetherington
2021-02-24Fix config.xml corruption when it contains multi-byte UTF8 characters.Carl Hetherington
2020-10-12Fix tests after changes made in 4f652387cbeeda9b7b8ace71e047c450acf5c871Carl Hetherington
2020-10-08Fix up config backup tests.Carl Hetherington
2020-09-29Make unit tests use their own configuration rather than whateverCarl Hetherington
happens to be in $HOME. This is especially important for signer certificates; without this it looks like the ones from $HOME will be used.
2018-04-29Allow command-line configuration of config location (#1284).Carl Hetherington
2018-02-13Recover test config after config_test.cc runs.Carl Hetherington
2018-01-05Backup more than one config on failure to load.Carl Hetherington