diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-08-18 09:33:47 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-08-18 11:49:22 +0100 |
commit | 3ca2fd5520e288afd329e6274a5cc6c0524ec5a8 (patch) | |
tree | dc7e94d6a27bbdeb030101d37a727d593bdf38bd /nixos/tests/cloud-init.nix | |
parent | 4b9a2e13a82ea293e0d1530e8d32ca07074996dc (diff) | |
download | nixpkgs-3ca2fd5520e288afd329e6274a5cc6c0524ec5a8.tar nixpkgs-3ca2fd5520e288afd329e6274a5cc6c0524ec5a8.tar.gz nixpkgs-3ca2fd5520e288afd329e6274a5cc6c0524ec5a8.tar.bz2 nixpkgs-3ca2fd5520e288afd329e6274a5cc6c0524ec5a8.tar.lz nixpkgs-3ca2fd5520e288afd329e6274a5cc6c0524ec5a8.tar.xz nixpkgs-3ca2fd5520e288afd329e6274a5cc6c0524ec5a8.tar.zst nixpkgs-3ca2fd5520e288afd329e6274a5cc6c0524ec5a8.zip |
cloud-init: 0.7.9 -> 20.2
Diffstat (limited to 'nixos/tests/cloud-init.nix')
-rw-r--r-- | nixos/tests/cloud-init.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nixos/tests/cloud-init.nix b/nixos/tests/cloud-init.nix index aafa6e24e84..8debb9e8ed9 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") ''; } |