<commit_before>Feature: create

  Background:
    Given user "participant1" exists
    Given user "participant2" exists
    Given group "group1" exists
    Given user "participant2" is member of group "group1"

  Scenario: Create a room group room for participant1
    Given invoking occ with "talk:room:create room1 --user participant1"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 2    | 3               | participant1-displayname |

  Scenario: Create a room group room for participant1 as moderator
    Given invoking occ with "talk:room:create room1 --user participant1 --moderator participant1"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 2    | 2               | participant1-displayname |

  Scenario: Create a room group room for participant1 as owner
    Given invoking occ with "talk:room:create room1 --user participant1 --owner participant1"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 2    | 1               | participant1-displayname |

  Scenario: Create a room public room for participant1 as owner group1 as users
    Given invoking occ with "talk:room:create room1 --user participant1 --owner participant1 --public --group group1"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 3    | 1               | participant1-displayname, participant2-displayname |
    And user "participant2" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 3    | 3               | participant1-displayname, participant2-displayname |

  Scenario: Create a room public room for participant1 as owner group1 as users with password and readonly
    Given invoking occ with "talk:room:create room1 --user participant1 --owner participant1 --public --group group1 --readonly --password <PASSWORD>"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | readOnly | hasPassword | participantType | participants |<commit_msg>Fix typo in scenario names<commit_after>Feature: create

  Background:
    Given user "participant1" exists
    Given user "participant2" exists
    Given group "group1" exists
    Given user "participant2" is member of group "group1"

  Scenario: Create a group room for participant1
    Given invoking occ with "talk:room:create room1 --user participant1"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 2    | 3               | participant1-displayname |

  Scenario: Create a group room for participant1 as moderator
    Given invoking occ with "talk:room:create room1 --user participant1 --moderator participant1"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 2    | 2               | participant1-displayname |

  Scenario: Create a group room for participant1 as owner
    Given invoking occ with "talk:room:create room1 --user participant1 --owner participant1"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 2    | 1               | participant1-displayname |

  Scenario: Create a public room for participant1 as owner group1 as users
    Given invoking occ with "talk:room:create room1 --user participant1 --owner participant1 --public --group group1"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 3    | 1               | participant1-displayname, participant2-displayname |
    And user "participant2" is participant of the following rooms
      | name  | type | participantType | participants |
      | room1 | 3    | 3               | participant1-displayname, participant2-displayname |

  Scenario: Create a public room for participant1 as owner group1 as users with password and readonly
    Given invoking occ with "talk:room:create room1 --user participant1 --owner participant1 --public --group group1 --readonly --password <PASSWORD>"
    And the command output contains the text "Room successfully created"
    Then the command was successful
    And user "participant1" is participant of the following rooms
      | name  | type | readOnly | hasPassword | participantType | participants |
{'fraction_non_alphanumeric': 0.056757715501951043, 'fraction_numerical': 0.019865200425682867, 'mean_word_length': 3.1281112737920935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6195967', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1318, 'n_words': 629}