From c271cb48dd5d8a129118987acc00d88fd2709281 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Sat, 28 Nov 2015 10:06:22 +0530 Subject: [PATCH] tests: make `sed` a little resilient to whitespaces --- bitnami/apache/test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bitnami/apache/test.sh b/bitnami/apache/test.sh index 55043f0f832c..985382c2ea01 100644 --- a/bitnami/apache/test.sh +++ b/bitnami/apache/test.sh @@ -85,13 +85,13 @@ EOF" [[ "$output" =~ "405 Method Not Allowed" ]] } -@test "Configuration changes are preserved after restart" { +@test "Configuration changes are preserved after deletion" { container_create_with_host_volumes default -d - # modify httpd.conf - container_exec default sed -i 's|[#]*LogLevel .*|LogLevel debug|' $VOL_PREFIX/conf/httpd.conf - container_exec default sed -i 's|[#]*ServerSignature .*|ServerSignature On|' $VOL_PREFIX/conf/httpd.conf - container_exec default sed -i 's|[#]*EnableSendfile .*|EnableSendfile Off|' $VOL_PREFIX/conf/httpd.conf + # edit httpd.conf + container_exec default sed -i 's|^[#]*[ ]*LogLevel \+.*|LogLevel debug|' $VOL_PREFIX/conf/httpd.conf + container_exec default sed -i 's|^[#]*[ ]*ServerSignature \+.*|ServerSignature On|' $VOL_PREFIX/conf/httpd.conf + container_exec default sed -i 's|^[#]*[ ]*EnableSendfile \+.*|EnableSendfile Off|' $VOL_PREFIX/conf/httpd.conf # add vhost container_exec default sh -c "cat > $VOL_PREFIX/conf/vhosts/test.conf <