summaryrefslogtreecommitdiffstats
path: root/nixos/tests/cloud-init.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2020-08-18 09:33:47 +0100
committerJörg Thalheim <joerg@thalheim.io>2020-08-18 11:49:22 +0100
commit3ca2fd5520e288afd329e6274a5cc6c0524ec5a8 (patch)
treedc7e94d6a27bbdeb030101d37a727d593bdf38bd /nixos/tests/cloud-init.nix
parent4b9a2e13a82ea293e0d1530e8d32ca07074996dc (diff)
cloud-init: 0.7.9 -> 20.2
Diffstat (limited to 'nixos/tests/cloud-init.nix')
-rw-r--r--nixos/tests/cloud-init.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/nixos/tests/cloud-init.nix b/nixos/tests/cloud-init.nix
index aafa6e24e84a..8debb9e8ed9b 100644
--- a/nixos/tests/cloud-init.nix
+++ b/nixos/tests/cloud-init.nix
@@ -24,7 +24,8 @@ let
instance-id: iid-local01
local-hostname: "test"
public-keys:
- - "should be a key!"
+ ec2-keypair.us-east-1:
+ - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5L7Xuh49VS5VQheFE7VDmXKH0BOnB1R0avAE91QgOB root@test
EOF
${pkgs.cdrkit}/bin/genisoimage -volid cidata -joliet -rock -o $out/metadata.iso $out/iso
'';
@@ -45,8 +46,6 @@ in makeTest {
machine.wait_for_unit("cloud-init.service")
machine.succeed("cat /tmp/cloudinit-write-file | grep -q 'cloudinit'")
- machine.wait_until_succeeds(
- "cat /root/.ssh/authorized_keys | grep -q 'should be a key!'"
- )
+ machine.wait_until_succeeds("cat /root/.ssh/authorized_keys | grep -q root@test")
'';
}