mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Fix SpecFlow test
HTML generation had changed since last time this test passed. --HG-- branch : dev
This commit is contained in:
parent
4f1dd9d185
commit
8022b45560
@ -1,158 +1,162 @@
|
||||
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
|
||||
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
|
||||
And I have installed "Orchard.MultiTenancy"
|
||||
When I go to "Admin/MultiTenancy"
|
||||
Then I should see "List of Site's Tenants"
|
||||
And I should see "<span class="tenantName">Default</span>"
|
||||
And the status should be 200 OK
|
||||
Given I have installed Orchard
|
||||
And I have installed "Orchard.MultiTenancy"
|
||||
When I go to "Admin/MultiTenancy"
|
||||
Then I should see "List of Site's Tenants"
|
||||
And I should see "<span class="tenantName">Default</span>"
|
||||
And the status should be 200 OK
|
||||
|
||||
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"
|
||||
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 "<span class="tenantName">Scott</span>"
|
||||
And the status should be 200 OK
|
||||
|
||||
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 "<h3>Scott</h3>"
|
||||
And the status should be 200 OK
|
||||
|
||||
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 "<li class="tenant Uninitialized">"
|
||||
And the status should be 200 OK
|
||||
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 "<li class="tenant Uninitialized">"
|
||||
And the status should be 200 OK
|
||||
|
||||
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
|
||||
|
||||
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 with preconfigured database 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 |
|
||||
| DataProvider | SqlCe |
|
||||
And I hit "Save"
|
||||
And I am redirected
|
||||
And I go to "/Setup" on host scott.example.org
|
||||
Then I should see "Welcome to Orchard"
|
||||
And I should see "Finish Setup"
|
||||
And I should not see "SQL Server Compact"
|
||||
And the status should be 200 OK
|
||||
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 |
|
||||
| DataProvider | SqlCe |
|
||||
And I hit "Save"
|
||||
And I am redirected
|
||||
And I go to "/Setup" on host scott.example.org
|
||||
Then I should see "Welcome to Orchard"
|
||||
And I should see "Finish Setup"
|
||||
And I should not see "SQL Server Compact"
|
||||
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>!"
|
||||
|
||||
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 |
|
||||
| ConfirmPassword | 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>!"
|
||||
|
||||
Scenario: An existing initialized tenant cannot have its database option cleared
|
||||
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"
|
||||
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 |
|
||||
| ConfirmPassword | 6655321 |
|
||||
And I hit "Finish Setup"
|
||||
And I go to "/Admin/MultiTenancy/Edit/Scott" on host localhost
|
||||
Then I should see "<h1>Edit Tenant</h1>"
|
||||
And I should see "<h2>Scott</h2>"
|
||||
And I should not see "Allow the tenant to set up the database"
|
||||
|
||||
Scenario: Default tenant cannot be disabled
|
||||
Given I have installed Orchard
|
||||
And I have installed "Orchard.MultiTenancy"
|
||||
When I go to "Admin/MultiTenancy"
|
||||
Given I have installed Orchard
|
||||
And I have installed "Orchard.MultiTenancy"
|
||||
When I go to "Admin/MultiTenancy"
|
||||
Then I should not see "<form action="/Admin/MultiTenancy/disable""
|
||||
|
||||
Scenario: A running tenant can be disabled
|
||||
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"
|
||||
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 |
|
||||
| ConfirmPassword | 6655321 |
|
||||
And I hit "Finish Setup"
|
||||
And I go to "/Admin/MultiTenancy" on host localhost
|
||||
And I hit "Suspend"
|
||||
And I am redirected
|
||||
Then I should see "<form action="/Admin/MultiTenancy/enable""
|
||||
|
||||
Scenario: A running tenant which is disabled can be enabled
|
||||
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"
|
||||
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 |
|
||||
| ConfirmPassword | 6655321 |
|
||||
And I hit "Finish Setup"
|
||||
And I go to "/Admin/MultiTenancy" on host localhost
|
||||
And I hit "Suspend"
|
||||
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""
|
||||
|
||||
Scenario: Listing tenants from command line
|
||||
Given I have installed Orchard
|
||||
And I have installed "Orchard.MultiTenancy"
|
||||
And I have tenant "Alpha" on "example.org" as "New-site-name"
|
||||
When I execute >tenant list
|
||||
Then I should see "Name: Alpha"
|
||||
And I should see "Request Url Host: example.org"
|
||||
Given I have installed Orchard
|
||||
And I have installed "Orchard.MultiTenancy"
|
||||
And I have tenant "Alpha" on "example.org" as "New-site-name"
|
||||
When I execute >tenant list
|
||||
Then I should see "Name: Alpha"
|
||||
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>
|
||||
// ------------------------------------------------------------------------------
|
||||
#region Designer generated code
|
||||
namespace Orchard.Tests
|
||||
namespace Orchard.Specs
|
||||
{
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
@ -124,7 +124,7 @@ testRunner.And("I hit \"Save\"");
|
||||
#line 29
|
||||
testRunner.And("I am redirected");
|
||||
#line 30
|
||||
testRunner.Then("I should see \"<span class=\"tenantName\">Scott</span>\"");
|
||||
testRunner.Then("I should see \"<h3>Scott</h3>\"");
|
||||
#line 31
|
||||
testRunner.And("the status should be 200 OK");
|
||||
#line hidden
|
||||
@ -289,15 +289,18 @@ testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
table6.AddRow(new string[] {
|
||||
"AdminPassword",
|
||||
"6655321"});
|
||||
table6.AddRow(new string[] {
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 86
|
||||
testRunner.And("I fill in", ((string)(null)), table6);
|
||||
#line 90
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 91
|
||||
testRunner.And("I go to \"/Default.aspx\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 92
|
||||
testRunner.Then("I should see \"<h1>Scott Site</h1>\"");
|
||||
testRunner.And("I go to \"/Default.aspx\"");
|
||||
#line 93
|
||||
testRunner.Then("I should see \"<h1>Scott Site</h1>\"");
|
||||
#line 94
|
||||
testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
@ -308,13 +311,13 @@ testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
||||
public virtual void AnExistingInitializedTenantCannotHaveItsDatabaseOptionCleared()
|
||||
{
|
||||
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
|
||||
testRunner.Given("I have installed Orchard");
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 97
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 98
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 99
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line hidden
|
||||
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[] {
|
||||
"RequestUrlHost",
|
||||
"scott.example.org"});
|
||||
#line 99
|
||||
#line 100
|
||||
testRunner.And("I fill in", ((string)(null)), table7);
|
||||
#line 103
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 104
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 105
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
#line hidden
|
||||
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[] {
|
||||
"AdminPassword",
|
||||
"6655321"});
|
||||
#line 105
|
||||
table8.AddRow(new string[] {
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 106
|
||||
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
|
||||
testRunner.Then("I should see \"<h1>Edit Tenant</h1>\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 112
|
||||
testRunner.And("I should see \"<h2>Scott</h2>\"");
|
||||
testRunner.And("I go to \"/Admin/MultiTenancy/Edit/Scott\" on host localhost");
|
||||
#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\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
@ -363,15 +369,15 @@ testRunner.And("I should not see \"Allow the tenant to set up the database\"");
|
||||
public virtual void DefaultTenantCannotBeDisabled()
|
||||
{
|
||||
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
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 118
|
||||
testRunner.When("I go to \"Admin/MultiTenancy\"");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#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\"\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
@ -382,13 +388,13 @@ testRunner.Then("I should not see \"<form action=\"/Admin/MultiTenancy/disable\"
|
||||
public virtual void ARunningTenantCanBeDisabled()
|
||||
{
|
||||
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
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#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\"");
|
||||
#line hidden
|
||||
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[] {
|
||||
"RequestUrlHost",
|
||||
"scott.example.org"});
|
||||
#line 125
|
||||
#line 127
|
||||
testRunner.And("I fill in", ((string)(null)), table9);
|
||||
#line 129
|
||||
#line 131
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 130
|
||||
#line 132
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
#line hidden
|
||||
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[] {
|
||||
"AdminPassword",
|
||||
"6655321"});
|
||||
#line 131
|
||||
table10.AddRow(new string[] {
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 133
|
||||
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
|
||||
testRunner.And("I am redirected");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#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\"\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
@ -437,13 +446,13 @@ testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/enable\"\"");
|
||||
public virtual void ARunningTenantWhichIsDisabledCanBeEnabled()
|
||||
{
|
||||
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
|
||||
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\"");
|
||||
#line hidden
|
||||
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[] {
|
||||
"RequestUrlHost",
|
||||
"scott.example.org"});
|
||||
#line 145
|
||||
#line 148
|
||||
testRunner.And("I fill in", ((string)(null)), table11);
|
||||
#line 149
|
||||
#line 152
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 150
|
||||
#line 153
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
#line hidden
|
||||
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[] {
|
||||
"AdminPassword",
|
||||
"6655321"});
|
||||
#line 151
|
||||
table12.AddRow(new string[] {
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 154
|
||||
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
|
||||
testRunner.And("I hit \"Resume\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 160
|
||||
testRunner.And("I am redirected");
|
||||
testRunner.And("I go to \"/Admin/MultiTenancy\" on host localhost");
|
||||
#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\"\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
@ -496,19 +508,19 @@ testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/disable\"\"")
|
||||
public virtual void ListingTenantsFromCommandLine()
|
||||
{
|
||||
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
|
||||
testRunner.When("I execute >tenant list");
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 168
|
||||
testRunner.Then("I should see \"Name: Alpha\"");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#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\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
|
Loading…
Reference in New Issue
Block a user