11Feature : Site Command
22
3- Scenario : ee throws error when run without root
4- Given 'bin/ee' is installed
5- When I run 'bin/ee'
6- Then STDERR should return exactly
7- """
8- Error: Please run `ee` with root privileges.
9- """
10-
113 Scenario : ee executable is command working correctly
124 Given 'bin/ee' is installed
13- When I run 'sudo bin/ee'
5+ When I run 'bin/ee'
146 Then STDOUT should return something like
157 """
168 NAME
@@ -19,28 +11,28 @@ Feature: Site Command
1911 """
2012
2113 Scenario : Check site command is present
22- When I run 'sudo bin/ee site'
14+ When I run 'bin/ee site'
2315 Then STDOUT should return something like
2416 """
2517 usage: ee site
2618 """
2719
2820 Scenario : Create html site successfully
29- When I run 'sudo bin/ee site create site.test --type=html'
21+ When I run 'bin/ee site create site.test --type=html'
3022 Then The site 'site.test' should have webroot
3123 And Request on 'site.test' should contain following headers:
3224 | header |
3325 | HTTP /1 .1 200 OK |
3426
3527 Scenario : List the sites
36- When I run 'sudo bin/ee site list --format=text'
28+ When I run 'bin/ee site list --format=text'
3729 Then STDOUT should return exactly
3830 """
3931 site.test
4032 """
4133
4234 Scenario : Delete the sites
43- When I run 'sudo bin/ee site delete site.test --yes'
35+ When I run 'bin/ee site delete site.test --yes'
4436 Then STDOUT should return something like
4537 """
4638 Site site.test deleted.
0 commit comments