0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixosTests.openvscode-server: init

This commit is contained in:
Pol Dellaiera 2023-05-15 15:33:37 +02:00
parent 1d37fe1526
commit cce7cdd293
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA
3 changed files with 28 additions and 1 deletions

View file

@ -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 {};

View file

@ -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 ];
})