2023-10-09 19:29:22 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, lib, package ? pkgs.odoo, ...} : {
|
2021-12-06 16:07:01 +00:00
|
|
|
name = "odoo";
|
2023-05-24 13:37:59 +00:00
|
|
|
meta.maintainers = with lib.maintainers; [ mkg20001 ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
nodes = {
|
|
|
|
server = { ... }: {
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.odoo = {
|
|
|
|
enable = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
package = package;
|
2024-07-27 06:49:29 +00:00
|
|
|
autoInit = true;
|
|
|
|
autoInitExtraFlags = [ "--without-demo=all" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
domain = "localhost";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = { nodes, ... }:
|
|
|
|
''
|
|
|
|
server.wait_for_unit("odoo.service")
|
|
|
|
server.wait_until_succeeds("curl -s http://localhost:8069/web/database/selector | grep '<title>Odoo</title>'")
|
|
|
|
server.succeed("curl -s http://localhost/web/database/selector | grep '<title>Odoo</title>'")
|
|
|
|
'';
|
|
|
|
})
|