X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=packer%2Fdebian64.bats;h=80481a5958e9d75ce9b3a205ac57e31acc7d8db8;hb=457e3e47524aca9f8fa85ae26bf214c2a704adb9;hp=b0f9be6d23eb968318c35c89015d924e60827013;hpb=7803bf372239c4aa67e7e60de715f311232e7b7b;p=grml-debootstrap.git diff --git a/packer/debian64.bats b/packer/debian64.bats index b0f9be6..80481a5 100644 --- a/packer/debian64.bats +++ b/packer/debian64.bats @@ -17,7 +17,7 @@ teardown() { @test "debian_version exists and is valid version" { run cat "${mountpath}/etc/debian_version" [ "$status" -eq 0 ] - [[ "$output" == [0-9].[0-9]* ]] || [[ "$output" == 'buster/sid' ]] + [[ "$output" == [0-9]*.[0-9]* ]] || [[ "$output" == 'bullseye/sid' ]] } @test "kernel exists" { @@ -75,7 +75,7 @@ teardown() { [ "$status" -eq 0 ] } -@test "home directory for user vagrant" { +@test "ssh key for user vagrant" { run grep -q ssh-rsa "$mountpath"/home/vagrant/.ssh/authorized_keys [ "$status" -eq 0 ] }