diff options
author | Soner Sayakci <s.sayakci@shopware.com> | 2022-10-24 20:08:00 +0000 |
---|---|---|
committer | Soner Sayakci <s.sayakci@shopware.com> | 2023-02-06 13:15:00 +0100 |
commit | 56ecab709a5a6e49049c0892a7cc59cfa22bdd98 (patch) | |
tree | 6cb209777f6858016e214cbfd5e43d92357c6b19 /nixos/tests/coder.nix | |
parent | 0566d27d03a7b9c285045f57004a6ba2c2613454 (diff) |
nixos/coder: init module
Diffstat (limited to 'nixos/tests/coder.nix')
-rw-r--r-- | nixos/tests/coder.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixos/tests/coder.nix b/nixos/tests/coder.nix new file mode 100644 index 0000000000000..12813827284b9 --- /dev/null +++ b/nixos/tests/coder.nix @@ -0,0 +1,24 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "coder"; + meta = with pkgs.lib.maintainers; { + maintainers = [ shyim ghuntley ]; + }; + + nodes.machine = + { pkgs, ... }: + { + services.coder = { + enable = true; + accessUrl = "http://localhost:3000"; + }; + }; + + testScript = '' + machine.start() + machine.wait_for_unit("postgresql.service") + machine.wait_for_unit("coder.service") + machine.wait_for_open_port(3000) + + machine.succeed("curl --fail http://localhost:3000") + ''; +}) |