]> git.proxmox.com Git - pve-container.git/blobdiff - src/test/run_setup_tests.pl
Add setup tests for authorized keys
[pve-container.git] / src / test / run_setup_tests.pl
index 82148382dcdb1b99ac4070ce1e051b82b1bbf739..fc92dbb10e1ef80d5ec6fee88a3bf2a3dcd2d717 100755 (executable)
@@ -41,7 +41,7 @@ sub run_test {
        # run tests twice, to make sure scripts are idempotent
        
        srand(0);
-       $lxc_setup->post_create_hook('$TEST$ABCDEF');
+       $lxc_setup->post_create_hook('$TEST$ABCDEF','ssh-rsa ABCDEFG ABC@DEF');
 
        my @testfiles = qw(/etc/hostname
                           /etc/hosts
@@ -71,7 +71,13 @@ sub run_test {
                           /etc/init/tty.conf
                           /etc/init/power-status-changed.conf
                           /etc/securetty
-                          /etc/crontab);
+                          /etc/crontab
+                          /root
+                          /root/.ssh
+                          /root/.ssh/authorized_keys
+                          /roothome
+                          /roothome/.ssh
+                          /roothome/.ssh/authorized_keys);
        foreach my $fn (@testfiles) {
            next if !-f "$testdir/$fn.exp";
            test_file("$testdir/$fn.exp", "$rootfs/$fn");