mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixosTests.openvscode-server: init
This commit is contained in:
parent
1d37fe1526
commit
cce7cdd293
3 changed files with 28 additions and 1 deletions
22
nixos/tests/openvscode-server.nix
Normal file
22
nixos/tests/openvscode-server.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
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 ];
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue