* 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:
Eelco Dolstra 2011-01-12 17:36:15 +00:00
parent 04b43f1e3f
commit fd48855284

View File

@ -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");