9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
22 lines
467 B
Nix
22 lines
467 B
Nix
import ./make-test-python.nix ({pkgs, lib, ...}:
|
|
{
|
|
name = "code-server";
|
|
|
|
nodes = {
|
|
machine = {pkgs, ...}: {
|
|
services.code-server = {
|
|
enable = true;
|
|
auth = "none";
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
machine.wait_for_unit("code-server.service")
|
|
machine.wait_for_open_port(4444)
|
|
machine.succeed("curl -k --fail http://localhost:4444", timeout=10)
|
|
'';
|
|
|
|
meta.maintainers = [ lib.maintainers.drupol ];
|
|
})
|