nixosTests: handleTest -> runTest, batch 1

Reference: https://github.com/NixOS/nixpkgs/issues/386873
This commit is contained in:
Sizhe Zhao 2025-05-24 23:40:23 +08:00
parent 131462b962
commit f34483be5e
No known key found for this signature in database
GPG key ID: ED1807251A7DA08F
538 changed files with 35525 additions and 36600 deletions

View file

@ -1,26 +1,24 @@
import ./make-test-python.nix (
{ pkgs, lib, ... }:
{
name = "code-server";
{ pkgs, lib, ... }:
{
name = "code-server";
nodes = {
machine =
{ pkgs, ... }:
{
services.code-server = {
enable = true;
auth = "none";
};
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)
'';
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 ];
}
)
meta.maintainers = [ lib.maintainers.drupol ];
}