mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fix SpecFlow test
HTML generation had changed since last time this test passed. --HG-- branch : dev
This commit is contained in:
@@ -1,158 +1,162 @@
|
|||||||
Feature: Multiple tenant management
|
Feature: Multiple tenant management
|
||||||
In order to host several isolated web applications
|
In order to host several isolated web applications
|
||||||
As a root Orchard system operator
|
As a root Orchard system operator
|
||||||
I want to create and manage tenant configurations
|
I want to create and manage tenant configurations
|
||||||
|
|
||||||
Scenario: Default site is listed
|
Scenario: Default site is listed
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy"
|
When I go to "Admin/MultiTenancy"
|
||||||
Then I should see "List of Site's Tenants"
|
Then I should see "List of Site's Tenants"
|
||||||
And I should see "<span class="tenantName">Default</span>"
|
And I should see "<span class="tenantName">Default</span>"
|
||||||
And the status should be 200 OK
|
And the status should be 200 OK
|
||||||
|
|
||||||
Scenario: New tenant fields are required
|
Scenario: New tenant fields are required
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy/Add"
|
When I go to "Admin/MultiTenancy/Add"
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
Then I should see "is required"
|
Then I should see "is required"
|
||||||
|
|
||||||
Scenario: A new tenant is created
|
Scenario: A new tenant is created
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy/Add"
|
When I go to "Admin/MultiTenancy/Add"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Name | Scott |
|
| Name | Scott |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I am redirected
|
And I am redirected
|
||||||
Then I should see "<span class="tenantName">Scott</span>"
|
Then I should see "<h3>Scott</h3>"
|
||||||
And the status should be 200 OK
|
And the status should be 200 OK
|
||||||
|
|
||||||
Scenario: A new tenant is created with uninitialized state
|
Scenario: A new tenant is created with uninitialized state
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy/Add"
|
When I go to "Admin/MultiTenancy/Add"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Name | Scott |
|
| Name | Scott |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I am redirected
|
And I am redirected
|
||||||
Then I should see "<li class="tenant Uninitialized">"
|
Then I should see "<li class="tenant Uninitialized">"
|
||||||
And the status should be 200 OK
|
And the status should be 200 OK
|
||||||
|
|
||||||
Scenario: A new tenant goes to the setup screen
|
Scenario: A new tenant goes to the setup screen
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy/Add"
|
When I go to "Admin/MultiTenancy/Add"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Name | Scott |
|
| Name | Scott |
|
||||||
| RequestUrlHost | scott.example.org |
|
| RequestUrlHost | scott.example.org |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "/Setup" on host scott.example.org
|
And I go to "/Setup" on host scott.example.org
|
||||||
Then I should see "Welcome to Orchard"
|
Then I should see "Welcome to Orchard"
|
||||||
And I should see "Finish Setup"
|
And I should see "Finish Setup"
|
||||||
And the status should be 200 OK
|
And the status should be 200 OK
|
||||||
|
|
||||||
Scenario: A new tenant with preconfigured database goes to the setup screen
|
Scenario: A new tenant with preconfigured database goes to the setup screen
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy/Add"
|
When I go to "Admin/MultiTenancy/Add"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Name | Scott |
|
| Name | Scott |
|
||||||
| RequestUrlHost | scott.example.org |
|
| RequestUrlHost | scott.example.org |
|
||||||
| DataProvider | SqlCe |
|
| DataProvider | SqlCe |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I am redirected
|
And I am redirected
|
||||||
And I go to "/Setup" on host scott.example.org
|
And I go to "/Setup" on host scott.example.org
|
||||||
Then I should see "Welcome to Orchard"
|
Then I should see "Welcome to Orchard"
|
||||||
And I should see "Finish Setup"
|
And I should see "Finish Setup"
|
||||||
And I should not see "SQL Server Compact"
|
And I should not see "SQL Server Compact"
|
||||||
And the status should be 200 OK
|
And the status should be 200 OK
|
||||||
|
|
||||||
Scenario: A new tenant runs the setup
|
Scenario: A new tenant runs the setup
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy/Add"
|
When I go to "Admin/MultiTenancy/Add"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Name | Scott |
|
| Name | Scott |
|
||||||
| RequestUrlHost | scott.example.org |
|
| RequestUrlHost | scott.example.org |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "/Setup" on host scott.example.org
|
And I go to "/Setup" on host scott.example.org
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| SiteName | Scott Site |
|
| SiteName | Scott Site |
|
||||||
| AdminPassword | 6655321 |
|
| AdminPassword | 6655321 |
|
||||||
And I hit "Finish Setup"
|
| ConfirmPassword | 6655321 |
|
||||||
And I go to "/Default.aspx"
|
And I hit "Finish Setup"
|
||||||
Then I should see "<h1>Scott Site</h1>"
|
And I go to "/Default.aspx"
|
||||||
And I should see "Welcome, <strong>admin</strong>!"
|
Then I should see "<h1>Scott Site</h1>"
|
||||||
|
And I should see "Welcome, <strong>admin</strong>!"
|
||||||
|
|
||||||
Scenario: An existing initialized tenant cannot have its database option cleared
|
Scenario: An existing initialized tenant cannot have its database option cleared
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy/Add"
|
When I go to "Admin/MultiTenancy/Add"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Name | Scott |
|
| Name | Scott |
|
||||||
| RequestUrlHost | scott.example.org |
|
| RequestUrlHost | scott.example.org |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "/Setup" on host scott.example.org
|
And I go to "/Setup" on host scott.example.org
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| SiteName | Scott Site |
|
| SiteName | Scott Site |
|
||||||
| AdminPassword | 6655321 |
|
| AdminPassword | 6655321 |
|
||||||
And I hit "Finish Setup"
|
| ConfirmPassword | 6655321 |
|
||||||
|
And I hit "Finish Setup"
|
||||||
And I go to "/Admin/MultiTenancy/Edit/Scott" on host localhost
|
And I go to "/Admin/MultiTenancy/Edit/Scott" on host localhost
|
||||||
Then I should see "<h1>Edit Tenant</h1>"
|
Then I should see "<h1>Edit Tenant</h1>"
|
||||||
And I should see "<h2>Scott</h2>"
|
And I should see "<h2>Scott</h2>"
|
||||||
And I should not see "Allow the tenant to set up the database"
|
And I should not see "Allow the tenant to set up the database"
|
||||||
|
|
||||||
Scenario: Default tenant cannot be disabled
|
Scenario: Default tenant cannot be disabled
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy"
|
When I go to "Admin/MultiTenancy"
|
||||||
Then I should not see "<form action="/Admin/MultiTenancy/disable""
|
Then I should not see "<form action="/Admin/MultiTenancy/disable""
|
||||||
|
|
||||||
Scenario: A running tenant can be disabled
|
Scenario: A running tenant can be disabled
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy/Add"
|
When I go to "Admin/MultiTenancy/Add"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Name | Scott |
|
| Name | Scott |
|
||||||
| RequestUrlHost | scott.example.org |
|
| RequestUrlHost | scott.example.org |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "/Setup" on host scott.example.org
|
And I go to "/Setup" on host scott.example.org
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| SiteName | Scott Site |
|
| SiteName | Scott Site |
|
||||||
| AdminPassword | 6655321 |
|
| AdminPassword | 6655321 |
|
||||||
And I hit "Finish Setup"
|
| ConfirmPassword | 6655321 |
|
||||||
|
And I hit "Finish Setup"
|
||||||
And I go to "/Admin/MultiTenancy" on host localhost
|
And I go to "/Admin/MultiTenancy" on host localhost
|
||||||
And I hit "Suspend"
|
And I hit "Suspend"
|
||||||
And I am redirected
|
And I am redirected
|
||||||
Then I should see "<form action="/Admin/MultiTenancy/enable""
|
Then I should see "<form action="/Admin/MultiTenancy/enable""
|
||||||
|
|
||||||
Scenario: A running tenant which is disabled can be enabled
|
Scenario: A running tenant which is disabled can be enabled
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
When I go to "Admin/MultiTenancy/Add"
|
When I go to "Admin/MultiTenancy/Add"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Name | Scott |
|
| Name | Scott |
|
||||||
| RequestUrlHost | scott.example.org |
|
| RequestUrlHost | scott.example.org |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "/Setup" on host scott.example.org
|
And I go to "/Setup" on host scott.example.org
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| SiteName | Scott Site |
|
| SiteName | Scott Site |
|
||||||
| AdminPassword | 6655321 |
|
| AdminPassword | 6655321 |
|
||||||
And I hit "Finish Setup"
|
| ConfirmPassword | 6655321 |
|
||||||
|
And I hit "Finish Setup"
|
||||||
And I go to "/Admin/MultiTenancy" on host localhost
|
And I go to "/Admin/MultiTenancy" on host localhost
|
||||||
And I hit "Suspend"
|
And I hit "Suspend"
|
||||||
And I am redirected
|
And I am redirected
|
||||||
@@ -161,9 +165,9 @@ Scenario: A running tenant which is disabled can be enabled
|
|||||||
Then I should see "<form action="/Admin/MultiTenancy/disable""
|
Then I should see "<form action="/Admin/MultiTenancy/disable""
|
||||||
|
|
||||||
Scenario: Listing tenants from command line
|
Scenario: Listing tenants from command line
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
And I have installed "Orchard.MultiTenancy"
|
And I have installed "Orchard.MultiTenancy"
|
||||||
And I have tenant "Alpha" on "example.org" as "New-site-name"
|
And I have tenant "Alpha" on "example.org" as "New-site-name"
|
||||||
When I execute >tenant list
|
When I execute >tenant list
|
||||||
Then I should see "Name: Alpha"
|
Then I should see "Name: Alpha"
|
||||||
And I should see "Request Url Host: example.org"
|
And I should see "Request Url Host: example.org"
|
||||||
|
|||||||
156
src/Orchard.Specs/MultiTenancy.feature.cs
generated
156
src/Orchard.Specs/MultiTenancy.feature.cs
generated
@@ -9,7 +9,7 @@
|
|||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
// ------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
#region Designer generated code
|
#region Designer generated code
|
||||||
namespace Orchard.Tests
|
namespace Orchard.Specs
|
||||||
{
|
{
|
||||||
using TechTalk.SpecFlow;
|
using TechTalk.SpecFlow;
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ testRunner.And("I hit \"Save\"");
|
|||||||
#line 29
|
#line 29
|
||||||
testRunner.And("I am redirected");
|
testRunner.And("I am redirected");
|
||||||
#line 30
|
#line 30
|
||||||
testRunner.Then("I should see \"<span class=\"tenantName\">Scott</span>\"");
|
testRunner.Then("I should see \"<h3>Scott</h3>\"");
|
||||||
#line 31
|
#line 31
|
||||||
testRunner.And("the status should be 200 OK");
|
testRunner.And("the status should be 200 OK");
|
||||||
#line hidden
|
#line hidden
|
||||||
@@ -289,15 +289,18 @@ testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
|||||||
table6.AddRow(new string[] {
|
table6.AddRow(new string[] {
|
||||||
"AdminPassword",
|
"AdminPassword",
|
||||||
"6655321"});
|
"6655321"});
|
||||||
|
table6.AddRow(new string[] {
|
||||||
|
"ConfirmPassword",
|
||||||
|
"6655321"});
|
||||||
#line 86
|
#line 86
|
||||||
testRunner.And("I fill in", ((string)(null)), table6);
|
testRunner.And("I fill in", ((string)(null)), table6);
|
||||||
#line 90
|
|
||||||
testRunner.And("I hit \"Finish Setup\"");
|
|
||||||
#line 91
|
#line 91
|
||||||
testRunner.And("I go to \"/Default.aspx\"");
|
testRunner.And("I hit \"Finish Setup\"");
|
||||||
#line 92
|
#line 92
|
||||||
testRunner.Then("I should see \"<h1>Scott Site</h1>\"");
|
testRunner.And("I go to \"/Default.aspx\"");
|
||||||
#line 93
|
#line 93
|
||||||
|
testRunner.Then("I should see \"<h1>Scott Site</h1>\"");
|
||||||
|
#line 94
|
||||||
testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
testRunner.CollectScenarioErrors();
|
testRunner.CollectScenarioErrors();
|
||||||
@@ -308,13 +311,13 @@ testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
|||||||
public virtual void AnExistingInitializedTenantCannotHaveItsDatabaseOptionCleared()
|
public virtual void AnExistingInitializedTenantCannotHaveItsDatabaseOptionCleared()
|
||||||
{
|
{
|
||||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("An existing initialized tenant cannot have its database option cleared", ((string[])(null)));
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("An existing initialized tenant cannot have its database option cleared", ((string[])(null)));
|
||||||
#line 95
|
|
||||||
this.ScenarioSetup(scenarioInfo);
|
|
||||||
#line 96
|
#line 96
|
||||||
testRunner.Given("I have installed Orchard");
|
this.ScenarioSetup(scenarioInfo);
|
||||||
#line 97
|
#line 97
|
||||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
testRunner.Given("I have installed Orchard");
|
||||||
#line 98
|
#line 98
|
||||||
|
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||||
|
#line 99
|
||||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -326,11 +329,11 @@ testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
|||||||
table7.AddRow(new string[] {
|
table7.AddRow(new string[] {
|
||||||
"RequestUrlHost",
|
"RequestUrlHost",
|
||||||
"scott.example.org"});
|
"scott.example.org"});
|
||||||
#line 99
|
#line 100
|
||||||
testRunner.And("I fill in", ((string)(null)), table7);
|
testRunner.And("I fill in", ((string)(null)), table7);
|
||||||
#line 103
|
|
||||||
testRunner.And("I hit \"Save\"");
|
|
||||||
#line 104
|
#line 104
|
||||||
|
testRunner.And("I hit \"Save\"");
|
||||||
|
#line 105
|
||||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -342,17 +345,20 @@ testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
|||||||
table8.AddRow(new string[] {
|
table8.AddRow(new string[] {
|
||||||
"AdminPassword",
|
"AdminPassword",
|
||||||
"6655321"});
|
"6655321"});
|
||||||
#line 105
|
table8.AddRow(new string[] {
|
||||||
|
"ConfirmPassword",
|
||||||
|
"6655321"});
|
||||||
|
#line 106
|
||||||
testRunner.And("I fill in", ((string)(null)), table8);
|
testRunner.And("I fill in", ((string)(null)), table8);
|
||||||
#line 109
|
|
||||||
testRunner.And("I hit \"Finish Setup\"");
|
|
||||||
#line 110
|
|
||||||
testRunner.And("I go to \"/Admin/MultiTenancy/Edit/Scott\" on host localhost");
|
|
||||||
#line 111
|
#line 111
|
||||||
testRunner.Then("I should see \"<h1>Edit Tenant</h1>\"");
|
testRunner.And("I hit \"Finish Setup\"");
|
||||||
#line 112
|
#line 112
|
||||||
testRunner.And("I should see \"<h2>Scott</h2>\"");
|
testRunner.And("I go to \"/Admin/MultiTenancy/Edit/Scott\" on host localhost");
|
||||||
#line 113
|
#line 113
|
||||||
|
testRunner.Then("I should see \"<h1>Edit Tenant</h1>\"");
|
||||||
|
#line 114
|
||||||
|
testRunner.And("I should see \"<h2>Scott</h2>\"");
|
||||||
|
#line 115
|
||||||
testRunner.And("I should not see \"Allow the tenant to set up the database\"");
|
testRunner.And("I should not see \"Allow the tenant to set up the database\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
testRunner.CollectScenarioErrors();
|
testRunner.CollectScenarioErrors();
|
||||||
@@ -363,15 +369,15 @@ testRunner.And("I should not see \"Allow the tenant to set up the database\"");
|
|||||||
public virtual void DefaultTenantCannotBeDisabled()
|
public virtual void DefaultTenantCannotBeDisabled()
|
||||||
{
|
{
|
||||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Default tenant cannot be disabled", ((string[])(null)));
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Default tenant cannot be disabled", ((string[])(null)));
|
||||||
#line 115
|
|
||||||
this.ScenarioSetup(scenarioInfo);
|
|
||||||
#line 116
|
|
||||||
testRunner.Given("I have installed Orchard");
|
|
||||||
#line 117
|
#line 117
|
||||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
this.ScenarioSetup(scenarioInfo);
|
||||||
#line 118
|
#line 118
|
||||||
testRunner.When("I go to \"Admin/MultiTenancy\"");
|
testRunner.Given("I have installed Orchard");
|
||||||
#line 119
|
#line 119
|
||||||
|
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||||
|
#line 120
|
||||||
|
testRunner.When("I go to \"Admin/MultiTenancy\"");
|
||||||
|
#line 121
|
||||||
testRunner.Then("I should not see \"<form action=\"/Admin/MultiTenancy/disable\"\"");
|
testRunner.Then("I should not see \"<form action=\"/Admin/MultiTenancy/disable\"\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
testRunner.CollectScenarioErrors();
|
testRunner.CollectScenarioErrors();
|
||||||
@@ -382,13 +388,13 @@ testRunner.Then("I should not see \"<form action=\"/Admin/MultiTenancy/disable\"
|
|||||||
public virtual void ARunningTenantCanBeDisabled()
|
public virtual void ARunningTenantCanBeDisabled()
|
||||||
{
|
{
|
||||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("A running tenant can be disabled", ((string[])(null)));
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("A running tenant can be disabled", ((string[])(null)));
|
||||||
#line 121
|
|
||||||
this.ScenarioSetup(scenarioInfo);
|
|
||||||
#line 122
|
|
||||||
testRunner.Given("I have installed Orchard");
|
|
||||||
#line 123
|
#line 123
|
||||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
this.ScenarioSetup(scenarioInfo);
|
||||||
#line 124
|
#line 124
|
||||||
|
testRunner.Given("I have installed Orchard");
|
||||||
|
#line 125
|
||||||
|
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||||
|
#line 126
|
||||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -400,11 +406,11 @@ testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
|||||||
table9.AddRow(new string[] {
|
table9.AddRow(new string[] {
|
||||||
"RequestUrlHost",
|
"RequestUrlHost",
|
||||||
"scott.example.org"});
|
"scott.example.org"});
|
||||||
#line 125
|
#line 127
|
||||||
testRunner.And("I fill in", ((string)(null)), table9);
|
testRunner.And("I fill in", ((string)(null)), table9);
|
||||||
#line 129
|
#line 131
|
||||||
testRunner.And("I hit \"Save\"");
|
testRunner.And("I hit \"Save\"");
|
||||||
#line 130
|
#line 132
|
||||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -416,17 +422,20 @@ testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
|||||||
table10.AddRow(new string[] {
|
table10.AddRow(new string[] {
|
||||||
"AdminPassword",
|
"AdminPassword",
|
||||||
"6655321"});
|
"6655321"});
|
||||||
#line 131
|
table10.AddRow(new string[] {
|
||||||
|
"ConfirmPassword",
|
||||||
|
"6655321"});
|
||||||
|
#line 133
|
||||||
testRunner.And("I fill in", ((string)(null)), table10);
|
testRunner.And("I fill in", ((string)(null)), table10);
|
||||||
#line 135
|
|
||||||
testRunner.And("I hit \"Finish Setup\"");
|
|
||||||
#line 136
|
|
||||||
testRunner.And("I go to \"/Admin/MultiTenancy\" on host localhost");
|
|
||||||
#line 137
|
|
||||||
testRunner.And("I hit \"Suspend\"");
|
|
||||||
#line 138
|
#line 138
|
||||||
testRunner.And("I am redirected");
|
testRunner.And("I hit \"Finish Setup\"");
|
||||||
#line 139
|
#line 139
|
||||||
|
testRunner.And("I go to \"/Admin/MultiTenancy\" on host localhost");
|
||||||
|
#line 140
|
||||||
|
testRunner.And("I hit \"Suspend\"");
|
||||||
|
#line 141
|
||||||
|
testRunner.And("I am redirected");
|
||||||
|
#line 142
|
||||||
testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/enable\"\"");
|
testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/enable\"\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
testRunner.CollectScenarioErrors();
|
testRunner.CollectScenarioErrors();
|
||||||
@@ -437,13 +446,13 @@ testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/enable\"\"");
|
|||||||
public virtual void ARunningTenantWhichIsDisabledCanBeEnabled()
|
public virtual void ARunningTenantWhichIsDisabledCanBeEnabled()
|
||||||
{
|
{
|
||||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("A running tenant which is disabled can be enabled", ((string[])(null)));
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("A running tenant which is disabled can be enabled", ((string[])(null)));
|
||||||
#line 141
|
|
||||||
this.ScenarioSetup(scenarioInfo);
|
|
||||||
#line 142
|
|
||||||
testRunner.Given("I have installed Orchard");
|
|
||||||
#line 143
|
|
||||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
|
||||||
#line 144
|
#line 144
|
||||||
|
this.ScenarioSetup(scenarioInfo);
|
||||||
|
#line 145
|
||||||
|
testRunner.Given("I have installed Orchard");
|
||||||
|
#line 146
|
||||||
|
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||||
|
#line 147
|
||||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -455,11 +464,11 @@ testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
|||||||
table11.AddRow(new string[] {
|
table11.AddRow(new string[] {
|
||||||
"RequestUrlHost",
|
"RequestUrlHost",
|
||||||
"scott.example.org"});
|
"scott.example.org"});
|
||||||
#line 145
|
#line 148
|
||||||
testRunner.And("I fill in", ((string)(null)), table11);
|
testRunner.And("I fill in", ((string)(null)), table11);
|
||||||
#line 149
|
#line 152
|
||||||
testRunner.And("I hit \"Save\"");
|
testRunner.And("I hit \"Save\"");
|
||||||
#line 150
|
#line 153
|
||||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -471,21 +480,24 @@ testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
|||||||
table12.AddRow(new string[] {
|
table12.AddRow(new string[] {
|
||||||
"AdminPassword",
|
"AdminPassword",
|
||||||
"6655321"});
|
"6655321"});
|
||||||
#line 151
|
table12.AddRow(new string[] {
|
||||||
|
"ConfirmPassword",
|
||||||
|
"6655321"});
|
||||||
|
#line 154
|
||||||
testRunner.And("I fill in", ((string)(null)), table12);
|
testRunner.And("I fill in", ((string)(null)), table12);
|
||||||
#line 155
|
|
||||||
testRunner.And("I hit \"Finish Setup\"");
|
|
||||||
#line 156
|
|
||||||
testRunner.And("I go to \"/Admin/MultiTenancy\" on host localhost");
|
|
||||||
#line 157
|
|
||||||
testRunner.And("I hit \"Suspend\"");
|
|
||||||
#line 158
|
|
||||||
testRunner.And("I am redirected");
|
|
||||||
#line 159
|
#line 159
|
||||||
testRunner.And("I hit \"Resume\"");
|
testRunner.And("I hit \"Finish Setup\"");
|
||||||
#line 160
|
#line 160
|
||||||
testRunner.And("I am redirected");
|
testRunner.And("I go to \"/Admin/MultiTenancy\" on host localhost");
|
||||||
#line 161
|
#line 161
|
||||||
|
testRunner.And("I hit \"Suspend\"");
|
||||||
|
#line 162
|
||||||
|
testRunner.And("I am redirected");
|
||||||
|
#line 163
|
||||||
|
testRunner.And("I hit \"Resume\"");
|
||||||
|
#line 164
|
||||||
|
testRunner.And("I am redirected");
|
||||||
|
#line 165
|
||||||
testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/disable\"\"");
|
testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/disable\"\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
testRunner.CollectScenarioErrors();
|
testRunner.CollectScenarioErrors();
|
||||||
@@ -496,19 +508,19 @@ testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/disable\"\"")
|
|||||||
public virtual void ListingTenantsFromCommandLine()
|
public virtual void ListingTenantsFromCommandLine()
|
||||||
{
|
{
|
||||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Listing tenants from command line", ((string[])(null)));
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Listing tenants from command line", ((string[])(null)));
|
||||||
#line 163
|
|
||||||
this.ScenarioSetup(scenarioInfo);
|
|
||||||
#line 164
|
|
||||||
testRunner.Given("I have installed Orchard");
|
|
||||||
#line 165
|
|
||||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
|
||||||
#line 166
|
|
||||||
testRunner.And("I have tenant \"Alpha\" on \"example.org\" as \"New-site-name\"");
|
|
||||||
#line 167
|
#line 167
|
||||||
testRunner.When("I execute >tenant list");
|
this.ScenarioSetup(scenarioInfo);
|
||||||
#line 168
|
#line 168
|
||||||
testRunner.Then("I should see \"Name: Alpha\"");
|
testRunner.Given("I have installed Orchard");
|
||||||
#line 169
|
#line 169
|
||||||
|
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||||
|
#line 170
|
||||||
|
testRunner.And("I have tenant \"Alpha\" on \"example.org\" as \"New-site-name\"");
|
||||||
|
#line 171
|
||||||
|
testRunner.When("I execute >tenant list");
|
||||||
|
#line 172
|
||||||
|
testRunner.Then("I should see \"Name: Alpha\"");
|
||||||
|
#line 173
|
||||||
testRunner.And("I should see \"Request Url Host: example.org\"");
|
testRunner.And("I should see \"Request Url Host: example.org\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
testRunner.CollectScenarioErrors();
|
testRunner.CollectScenarioErrors();
|
||||||
|
|||||||
Reference in New Issue
Block a user