mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
* No wonder the OpenSSH test was so unreliable: it didn't wait for the
sshd Upstart job to finish. svn path=/nixos/trunk/; revision=25524
This commit is contained in:
parent
04b43f1e3f
commit
fd48855284
|
@ -1,25 +1,26 @@
|
|||
{pkgs, ...}:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
nodes = {
|
||||
|
||||
server =
|
||||
{pkgs, config, ...}:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.openssh.enable = true;
|
||||
};
|
||||
|
||||
client =
|
||||
{pkgs, config, ...}:
|
||||
{ config, pkgs, ... }: { };
|
||||
|
||||
{
|
||||
};
|
||||
};
|
||||
|
||||
testScript =
|
||||
''
|
||||
testScript = ''
|
||||
startAll;
|
||||
|
||||
my $key=`${pkgs.openssh}/bin/ssh-keygen -t dsa -f key -N ""`;
|
||||
|
||||
$server->waitForJob("sshd");
|
||||
|
||||
$server->mustSucceed("mkdir -m 700 /root/.ssh");
|
||||
$server->copyFileFromHost("key.pub", "/root/.ssh/authorized_keys");
|
||||
|
|
Loading…
Reference in a new issue