tests: update test to also accecpt '*' for root login
This commit is contained in:
1 parent
59b01af339
commit
9cb10581ea
1 file changed
+1
-1
+1
-1
@@ -52,7 +52,7 @@ setup() {
|
||||
@test "root login is disabled" {
|
||||
run docker run --rm alpine:$TAG awk -F: '$1=="root"{print $2}' /etc/shadow
|
||||
[ $status -eq 0 ]
|
||||
[ "$output" = "!" ]
|
||||
[ "$output" = "*" ] || [ "$output" = "!" ]
|
||||
}
|
||||
|
||||
@test "/dev/null should be missing" {
|
||||
|
||||
Reference in new issue
Block a user