1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/nixos/tests/openvscode-server.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
501 B
Nix
Raw Normal View History

2023-05-15 14:33:37 +01:00
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 ];
})