nixos/tests: osquery: /var/run -> /run

This commit is contained in:
Bob van der Linden 2018-12-19 22:53:53 +01:00
parent d8dc1226f4
commit 09bff929df
No known key found for this signature in database
GPG key ID: 2A90361F99CF1795

View file

@ -11,7 +11,7 @@ with lib;
machine = {
services.osquery.enable = true;
services.osquery.loggerPath = "/var/log/osquery/logs";
services.osquery.pidfile = "/var/run/osqueryd.pid";
services.osquery.pidfile = "/run/osqueryd.pid";
};
testScript = ''
@ -23,6 +23,6 @@ with lib;
"echo 'SELECT value FROM osquery_flags WHERE name = \"logger_path\";' | osqueryi | grep /var/log/osquery/logs"
);
$machine->succeed("echo 'SELECT value FROM osquery_flags WHERE name = \"pidfile\";' | osqueryi | grep /var/run/osqueryd.pid");
$machine->succeed("echo 'SELECT value FROM osquery_flags WHERE name = \"pidfile\";' | osqueryi | grep /run/osqueryd.pid");
'';
})