2010-04-21 19:41:37 -07:00
|
|
|
|
Feature: Multiple tenant management
|
|
|
|
|
|
In order to host several isolated web applications
|
|
|
|
|
|
As a root Orchard system operator
|
|
|
|
|
|
I want to create and manage tenant configurations
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Default site is listed
|
|
|
|
|
|
Given I have installed Orchard
|
2010-04-22 12:23:58 -07:00
|
|
|
|
And I have installed "Orchard.MultiTenancy"
|
2010-04-21 19:41:37 -07:00
|
|
|
|
When I go to "Admin/MultiTenancy"
|
|
|
|
|
|
Then I should see "List of Site's Tenants"
|
2010-04-22 12:23:58 -07:00
|
|
|
|
And I should see "<td>Default</td>"
|
|
|
|
|
|
And the status should be 200 OK
|
2010-04-21 19:41:37 -07:00
|
|
|
|
|
2010-04-22 12:23:58 -07:00
|
|
|
|
Scenario: New tenant fields are required
|
|
|
|
|
|
Given I have installed Orchard
|
|
|
|
|
|
And I have installed "Orchard.MultiTenancy"
|
|
|
|
|
|
When I go to "Admin/MultiTenancy/Add"
|
|
|
|
|
|
And I hit "Save"
|
|
|
|
|
|
Then I should see "is required"
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: A new tenant is created
|
|
|
|
|
|
Given I have installed Orchard
|
|
|
|
|
|
And I have installed "Orchard.MultiTenancy"
|
|
|
|
|
|
When I go to "Admin/MultiTenancy/Add"
|
|
|
|
|
|
And I fill in
|
|
|
|
|
|
| name | value |
|
|
|
|
|
|
| Name | Scott |
|
|
|
|
|
|
And I hit "Save"
|
|
|
|
|
|
And I am redirected
|
|
|
|
|
|
Then I should see "<td>Scott</td>"
|
|
|
|
|
|
And the status should be 200 OK
|
2010-04-22 17:38:02 -07:00
|
|
|
|
|
|
|
|
|
|
Scenario: A new tenant is created with uninitialized state
|
|
|
|
|
|
Given I have installed Orchard
|
|
|
|
|
|
And I have installed "Orchard.MultiTenancy"
|
|
|
|
|
|
When I go to "Admin/MultiTenancy/Add"
|
|
|
|
|
|
And I fill in
|
|
|
|
|
|
| name | value |
|
|
|
|
|
|
| Name | Scott |
|
|
|
|
|
|
And I hit "Save"
|
|
|
|
|
|
And I am redirected
|
|
|
|
|
|
Then I should see "<td>Uninitialized</td>"
|
|
|
|
|
|
And the status should be 200 OK
|
2010-04-23 17:05:28 -07:00
|
|
|
|
|
|
|
|
|
|
Scenario: A new tenant goes to the setup screen
|
|
|
|
|
|
Given I have installed Orchard
|
|
|
|
|
|
And I have installed "Orchard.MultiTenancy"
|
|
|
|
|
|
When I go to "Admin/MultiTenancy/Add"
|
|
|
|
|
|
And I fill in
|
|
|
|
|
|
| name | value |
|
|
|
|
|
|
| Name | Scott |
|
|
|
|
|
|
| RequestUrlHost | scott.example.org |
|
|
|
|
|
|
And I hit "Save"
|
|
|
|
|
|
And I go to "/Setup" on host scott.example.org
|
|
|
|
|
|
Then I should see "Welcome to Orchard"
|
|
|
|
|
|
And I should see "Finish Setup"
|
|
|
|
|
|
And the status should be 200 OK
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: A new tenant runs the setup
|
|
|
|
|
|
Given I have installed Orchard
|
|
|
|
|
|
And I have installed "Orchard.MultiTenancy"
|
|
|
|
|
|
When I go to "Admin/MultiTenancy/Add"
|
|
|
|
|
|
And I fill in
|
|
|
|
|
|
| name | value |
|
|
|
|
|
|
| Name | Scott |
|
|
|
|
|
|
| RequestUrlHost | scott.example.org |
|
|
|
|
|
|
And I hit "Save"
|
|
|
|
|
|
And I go to "/Setup" on host scott.example.org
|
|
|
|
|
|
And I fill in
|
|
|
|
|
|
| name | value |
|
|
|
|
|
|
| SiteName | Scott Site |
|
|
|
|
|
|
| AdminPassword | 6655321 |
|
|
|
|
|
|
And I hit "Finish Setup"
|
|
|
|
|
|
And I go to "/Default.aspx"
|
|
|
|
|
|
Then I should see "<h1>Scott Site</h1>"
|
|
|
|
|
|
And I should see "Welcome, <strong>admin</strong>!"
|