Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for alias domain #350

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions features/site.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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''
kirtangajjar marked this conversation as resolved.
Show resolved Hide resolved
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
Expand All @@ -45,3 +56,4 @@ Feature: Site Command
And Following containers of site 'site.test' should be removed:
| container |
| nginx |