2023-04-30 15:26:18 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, lib, ...} : {
|
2021-11-02 00:48:47 +00:00
|
|
|
name = "odoo";
|
2023-04-30 15:26:18 +01:00
|
|
|
meta.maintainers = with lib.maintainers; [ mkg20001 ];
|
2021-11-02 00:48:47 +00:00
|
|
|
|
|
|
|
nodes = {
|
|
|
|
server = { ... }: {
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.odoo = {
|
|
|
|
enable = true;
|
|
|
|
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>'")
|
|
|
|
'';
|
|
|
|
})
|