Skip to content
Permalink
Browse files

disable root password and add test for all images

  • Loading branch information...
andyshinn committed Nov 27, 2015
1 parent 896a467 commit 8b9abf92b9960b7153b93268580099f34ef20f69
@@ -36,3 +36,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run "alpine:2.6" sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -36,3 +36,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run "alpine:2.7" sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -36,3 +36,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run "alpine:3.1" sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -36,3 +36,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run "alpine:3.2" sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -37,3 +37,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run "alpine:edge" sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -36,3 +36,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run gliderlabs/alpine:2.6 sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -36,3 +36,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run gliderlabs/alpine:2.7 sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -36,3 +36,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run gliderlabs/alpine:3.1 sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -36,3 +36,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run gliderlabs/alpine:3.2 sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -37,3 +37,9 @@ setup() {
[ $status -eq 0 ]
[ "$output" = "0" ]
}

@test "root password is disabled" {
run docker run gliderlabs/alpine:edge sh -c "adduser -D -s /bin/ash test; su -c 'echo | su' - test"
[ $status -eq 1 ]
[ "${lines[1]}" = "su: incorrect password" ]
}
@@ -1,5 +1,5 @@
export RELEASE="v2.6"
export MIRROR="http://alpine.gliderlabs.com/alpine"
export BUILD_OPTIONS="-s -E -c -t UTC -r $RELEASE -m $MIRROR"
export BUILD_OPTIONS="-d -s -E -c -t UTC -r $RELEASE -m $MIRROR"
export TAGS="gliderlabs/alpine:2.6"
export PUSH_IMAGE="true"
@@ -1,5 +1,5 @@
export RELEASE="v2.7"
export MIRROR="http://alpine.gliderlabs.com/alpine"
export BUILD_OPTIONS="-s -E -c -t UTC -r $RELEASE -m $MIRROR"
export BUILD_OPTIONS="-d -s -E -c -t UTC -r $RELEASE -m $MIRROR"
export TAGS="gliderlabs/alpine:2.7"
export PUSH_IMAGE="true"
@@ -1,5 +1,5 @@
export RELEASE="v3.1"
export MIRROR="http://alpine.gliderlabs.com/alpine"
export BUILD_OPTIONS="-s -E -c -t UTC -r $RELEASE -m $MIRROR"
export BUILD_OPTIONS="-d -s -E -c -t UTC -r $RELEASE -m $MIRROR"
export TAGS="gliderlabs/alpine:3.1"
export PUSH_IMAGE="true"
@@ -1,5 +1,5 @@
export RELEASE="v3.2"
export MIRROR="http://alpine.gliderlabs.com/alpine"
export BUILD_OPTIONS="-s -E -c -t UTC -r $RELEASE -m $MIRROR"
export BUILD_OPTIONS="-d -s -E -c -t UTC -r $RELEASE -m $MIRROR"
export TAGS="gliderlabs/alpine:3.2 gliderlabs/alpine:latest"
export PUSH_IMAGE="true"
@@ -1,5 +1,5 @@
export RELEASE="edge"
export MIRROR="http://alpine.gliderlabs.com/alpine"
export BUILD_OPTIONS="-s -c -t UTC -r $RELEASE -m $MIRROR"
export BUILD_OPTIONS="-d -s -c -t UTC -r $RELEASE -m $MIRROR"
export TAGS="gliderlabs/alpine:edge"
export PUSH_IMAGE="true"
@@ -1,3 +1,3 @@
export RELEASE="v2.6"
export BUILD_OPTIONS="-s -E -t UTC -r ${RELEASE} -m http://dl-4.alpinelinux.org/alpine"
export BUILD_OPTIONS="-d -s -E -t UTC -r ${RELEASE} -m http://dl-4.alpinelinux.org/alpine"
export TAGS="alpine:2.6"
@@ -1,3 +1,3 @@
export RELEASE="v2.7"
export BUILD_OPTIONS="-s -E -t UTC -r ${RELEASE} -m http://dl-4.alpinelinux.org/alpine"
export BUILD_OPTIONS="-d -s -E -t UTC -r ${RELEASE} -m http://dl-4.alpinelinux.org/alpine"
export TAGS="alpine:2.7"
@@ -1,4 +1,4 @@
export RELEASE="v3.1"
export MIRROR="http://dl-4.alpinelinux.org/alpine"
export BUILD_OPTIONS="-s -E -t UTC -r $RELEASE -m $MIRROR"
export BUILD_OPTIONS="-d -s -E -t UTC -r $RELEASE -m $MIRROR"
export TAGS="alpine:3.1"
@@ -1,4 +1,4 @@
export RELEASE="v3.2"
export MIRROR="http://dl-4.alpinelinux.org/alpine"
export BUILD_OPTIONS="-s -E -t UTC -r $RELEASE -m $MIRROR"
export BUILD_OPTIONS="-d -s -E -t UTC -r $RELEASE -m $MIRROR"
export TAGS="alpine:3.2 alpine:latest"
@@ -1,4 +1,4 @@
export RELEASE="edge"
export MIRROR="http://dl-4.alpinelinux.org/alpine"
export BUILD_OPTIONS="-s -t UTC -r $RELEASE -m $MIRROR"
export BUILD_OPTIONS="-d -s -t UTC -r $RELEASE -m $MIRROR"
export TAGS="alpine:edge"

0 comments on commit 8b9abf9

Please sign in to comment.
You can’t perform that action at this time.