<commit_before>Feature: Test out suite of Roles Manipulation Web Services

  Scenario: As a user I would like to be able to list all Roles
    Given I have this information in my "role" table
      | id  | name            | description                        |
      |   1 | role1           | Description of Role 1              |
      |   2 | role2           | Description of Role 2              |
      |   3 | role3           | Description of Role 3              |
    When I issue a "GET" request to "/roles"
    Then The Response Code will be "200"
    And The response is JSON
    And I will get the following list of roles:
      |   1 | role1           | Description of Role 1              |
      |   2 | role2           | Description of Role 2              |
      |   3 | role3           | Description of Role 3              |<commit_msg>Added BDD test for role lookup by pattern<commit_after>Feature: Test out suite of Roles Manipulation Web Services

  Scenario: As a user I would like to be able to list all Roles
    Given I have this information in my "role" table
      | id  | name            | description                        |
      |   1 | role1           | Description of Role 1              |
      |   2 | role2           | Description of Role 2              |
      |   3 | role3           | Description of Role 3              |
    When I issue a "GET" request to "/roles"
    Then The Response Code will be "200"
    And The response is JSON
    And I will get the following list of roles:
      |   1 | role1           | Description of Role 1              |
      |   2 | role2           | Description of Role 2              |
      |   3 | role3           | Description of Role 3              |


  Scenario: As a user I would like to be able to list all Roles By Pattern
    Given I have this information in my "role" table
      | id  | name            | description                        |
      |   1 | role_read1      | Description of Role Read 1         |
      |   2 | role_write1     | Description of Role Write 1        |
      |   3 | role_read2      | Description of Role Read 2         |
    When I issue a "GET" request to "/roles/read"
    Then The Response Code will be "200"
    And The response is JSON
    And I will get the following list of roles:
      |   1 | role_read1      | Description of Role Read 1         |
      |   3 | role_read2      | Description of Role Read 2         |
{'fraction_non_alphanumeric': 0.05004101722723544, 'fraction_numerical': 0.02461033634126333, 'mean_word_length': 1.322857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2885869', 'n_tokens_mistral': 639, 'n_tokens_neox': 607, 'n_words': 299}