mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
Update some tests for systemd
This commit is contained in:
parent
b6f9e05269
commit
d380152f39
@ -41,7 +41,7 @@
|
||||
$walled->succeed("ping -c 1 attacker >&2");
|
||||
|
||||
# If we stop the firewall, then connections should succeed.
|
||||
$walled->succeed("stop firewall");
|
||||
$walled->stopJob("firewall");
|
||||
$attacker->succeed("curl -v http://walled/ >&2");
|
||||
'';
|
||||
|
||||
|
@ -63,7 +63,7 @@
|
||||
$router->succeed("ping -c 1 client >&2");
|
||||
|
||||
# If we turn off NAT, the client shouldn't be able to reach the server.
|
||||
$router->succeed("stop nat");
|
||||
$router->stopJob("nat");
|
||||
$client->fail("curl --fail --connect-timeout 5 http://server/ >&2");
|
||||
$client->fail("ping -c 1 server >&2");
|
||||
|
||||
|
@ -28,9 +28,8 @@ rec {
|
||||
{ server =
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{ jobs.quake3Server =
|
||||
{ name = "quake3-server";
|
||||
startOn = "startup";
|
||||
{ jobs."quake3-server" =
|
||||
{ startOn = "startup";
|
||||
exec =
|
||||
"${pkgs.quake3demo}/bin/quake3-server '+set g_gametype 0' " +
|
||||
"'+map q3dm7' '+addbot grunt' '+addbot daemia' 2> /tmp/log";
|
||||
@ -74,7 +73,7 @@ rec {
|
||||
|
||||
$client1->shutdown();
|
||||
$client2->shutdown();
|
||||
$server->succeed("stop quake3-server");
|
||||
$server->stopJob("quake3-server");
|
||||
'';
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user