From ce442303418f1654653350346b2526b3c04a4b7f Mon Sep 17 00:00:00 2001 From: dhsathiya Date: Tue, 11 Aug 2020 19:01:01 +0530 Subject: [PATCH] Add test for alias domain Signed-off-by: dhsathiya --- features/site.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/features/site.feature b/features/site.feature index 827f6ed8..2af16c99 100644 --- a/features/site.feature +++ b/features/site.feature @@ -31,6 +31,17 @@ Feature: Site Command site.test """ + Scenario: Add alias domain + When I run 'bin/ee site update site.test --add-alias-domains=alias.site.test ' + And I run '/bin/bash -c 'echo "127.0.0.1 alias.site.test" >> /etc/hosts'' + Then STDOUT should return exactly + """ + Success: Alias domains updated on site site.test. + """ + And Request on 'alias.site.test' should contain following headers: + | header | + | HTTP/1.1 200 OK | + Scenario: Delete the sites When I run 'bin/ee site delete site.test --yes' Then STDOUT should return something like @@ -45,3 +56,4 @@ Feature: Site Command And Following containers of site 'site.test' should be removed: | container | | nginx | +