X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=packer%2Fdebian64.bats;h=d5aca5988e5d6a2a7ba3cfcb24b36bc55c9508a3;hp=b0f9be6d23eb968318c35c89015d924e60827013;hb=refs%2Fheads%2Fmaster;hpb=c63778958572b529958e6d2844352bc6c4739ea5 diff --git a/packer/debian64.bats b/packer/debian64.bats index b0f9be6..3e5818c 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" == 'bookworm/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 ] }