nixosTests.snipe-it: fix test

This commit is contained in:
Yaya 2024-10-14 13:49:14 +02:00
parent b13432edec
commit 209b7f634b

View File

@ -65,7 +65,9 @@ in {
with subtest("Circumvent the pre-flight setup by just writing some settings into the database ourself"):
snipeit.succeed(
"""
mysql -D ${nodes.snipeit.services.snipe-it.database.name} -e "INSERT INTO settings (id, user_id, site_name) VALUES ('1', '1', '${siteName}');"
mysql -D ${nodes.snipeit.services.snipe-it.database.name} -e "
INSERT INTO settings (id, site_name, login_remote_user_custom_logout_url, login_remote_user_header_name)
VALUES ('1', '${siteName}', 'https://whatever.invalid', 'whatever');"
"""
)