mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
26 lines
661 B
Nix
26 lines
661 B
Nix
import ./make-test-python.nix ({ pkgs, lib, ...} : {
|
|
name = "odoo";
|
|
meta.maintainers = with lib.maintainers; [ mkg20001 ];
|
|
|
|
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>'")
|
|
'';
|
|
})
|