<commit_before>﻿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
        And I have installed "Orchard.MultiTenancy"
    When I go to "Admin/MultiTenancy"
    Then I should see "List of Site&#39;s Tenants"
        And I should see "<h3>Default\s*</h3>"
        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"

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 "<h3>Scott\s*</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"

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: Several tenants are configured and go to 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 | Scott1 |
            | RequestUrlHost | scott1.example.org |
        And I hit "Save"
        And I am redirected<commit_msg>Update MultiTenancy.feature<commit_after>﻿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
        And I have installed "Orchard.MultiTenancy"
    When I go to "Admin/MultiTenancy"
    Then I should see "List of Site&#39;s Tenants"
        And I should see "<h3>Default\s*</h3>"
        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"

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 |
            | RequestUrlPrefix | scott |
        And I hit "Save"
        And I am redirected
    Then I should see "<h3>Scott\s*</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 |
            | RequestUrlPrefix | 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"

Scenario: Several tenants are configured and go to 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 | Scott1 |
            | RequestUrlHost | scott1.example.org |
        And I hit "Save"
        And I am redirected
{'fraction_non_alphanumeric': 0.05942376950780312, 'fraction_numerical': 0.008003201280512205, 'mean_word_length': 2.1107654013690107, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '115963', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1361, 'n_words': 622}