Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
22 lines
501 B
Nix
22 lines
501 B
Nix
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 ];
|
|
})
|