diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-05-16 14:14:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 14:14:29 +0200 |
commit | efb55108b3296621d06502a0759fe87aeb9a822f (patch) | |
tree | 28771a80d05425534e8bf4fe03e3449a9731390d /nixos/tests | |
parent | f552626ad07cf1c42a71a17ed210dbff7dc74d7e (diff) | |
parent | cce7cdd2938c02a550270ef0e8185b4da9f66860 (diff) |
Merge pull request #231435 from drupol/openvscode-server/systemd-service
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/openvscode-server.nix | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 81c5e8dd9f3aa..9df91ca6edc59 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -554,6 +554,7 @@ in { opentabletdriver = handleTest ./opentabletdriver.nix {}; owncast = handleTest ./owncast.nix {}; image-contents = handleTest ./image-contents.nix {}; + openvscode-server = handleTest ./openvscode-server.nix {}; orangefs = handleTest ./orangefs.nix {}; os-prober = handleTestOn ["x86_64-linux"] ./os-prober.nix {}; osrm-backend = handleTest ./osrm-backend.nix {}; diff --git a/nixos/tests/openvscode-server.nix b/nixos/tests/openvscode-server.nix new file mode 100644 index 0000000000000..cbff8e09c5938 --- /dev/null +++ b/nixos/tests/openvscode-server.nix @@ -0,0 +1,22 @@ +import ./make-test-python.nix ({pkgs, lib, ...}: +{ + name = "openvscode-server"; + + nodes = { + machine = {pkgs, ...}: { + services.openvscode-server = { + enable = true; + withoutConnectionToken = true; + }; + }; + }; + + testScript = '' + start_all() + machine.wait_for_unit("openvscode-server.service") + machine.wait_for_open_port(3000) + machine.succeed("curl -k --fail http://localhost:3000", timeout=10) + ''; + + meta.maintainers = [ lib.maintainers.drupol ]; +}) |