X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=packer%2Fdebian64.bats;h=80481a5958e9d75ce9b3a205ac57e31acc7d8db8;hp=b0f9be6d23eb968318c35c89015d924e60827013;hb=HEAD;hpb=7803bf372239c4aa67e7e60de715f311232e7b7b 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 ] }