File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,24 @@ Feature: Site Redirection
1414 | HTTP /1 .1 301 Moved Permanently |
1515 | Location : http ://www .example1 .test / |
1616
17+ Scenario : no_www-ssl redirection works properly
18+ When I run
'sudo bin/ee site create example2.test --le [email protected] --skip-status-check' 19+ Then Request on 'localhost' with header 'Host: www.example2.test' should contain following headers:
20+ | header |
21+ | HTTP /1 .1 301 Moved Permanently |
22+ | Location : https ://example2 .test / |
23+ And Request on 'https://www.example2.test' with resolve option 'www.example2.test:443:127.0.0.1' should contain following headers:
24+ | header |
25+ | HTTP /1 .1 301 Moved Permanently |
26+ | Location : https ://example2 .test / |
27+
28+ Scenario : www-ssl redirection works properly
29+ When I run
'sudo bin/ee site create www.example3.test --le [email protected] --skip-status-check' 30+ Then Request on 'localhost' with header 'Host: example3.test' should contain following headers:
31+ | header |
32+ | HTTP /1 .1 301 Moved Permanently |
33+ | Location : https ://www .example3 .test / |
34+ And Request on 'https://example3.test/' with resolve option 'example3.test:443:127.0.0.1' should contain following headers:
35+ | header |
36+ | HTTP /1 .1 301 Moved Permanently |
37+ | Location : https ://www .example3 .test / |
You can’t perform that action at this time.
0 commit comments