Skip to content

Commit 6bc0e5f

Browse files
committed
Remove sudo test and sudo
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent 02afcca commit 6bc0e5f

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

features/redirect.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Feature: Site Redirection
22

33
Scenario: no_www-no_ssl redirection works properly
4-
When I run 'sudo bin/ee site create example.test'
4+
When I run 'bin/ee site create example.test'
55
Then Request on 'localhost' with header 'Host: www.example.test' should contain following headers:
66
| header |
77
| HTTP/1.1 301 Moved Permanently |
88
| Location: http://example.test/ |
99

1010
Scenario: www-no_ssl redirection works properly
11-
When I run 'sudo bin/ee site create www.example1.test'
11+
When I run 'bin/ee site create www.example1.test'
1212
Then Request on 'localhost' with header 'Host: example1.test' should contain following headers:
1313
| header |
1414
| HTTP/1.1 301 Moved Permanently |

features/site.feature

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
Feature: 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

Comments
 (0)