nixpkgs/nixos/tests/openvscode-server.nix

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

25 lines
495 B
Nix
Raw Normal View History

{ pkgs, lib, ... }:
{
name = "openvscode-server";
2023-05-15 15:33:37 +02:00
nodes = {
machine =
{ pkgs, ... }:
{
services.openvscode-server = {
enable = true;
withoutConnectionToken = true;
};
};
};
2023-05-15 15:33:37 +02:00
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)
'';
2023-05-15 15:33:37 +02:00
meta.maintainers = [ lib.maintainers.drupol ];
}