<commit_before>@wip
Feature: Admin Tool Declarative Administrative Permissions

As a SLI Operator/Administrator, I want to login to the SLI Default Roles Admin Page,
so I could get an information about the default roles in SLI and their permissions.

As a SLI Operator/Administrator, I want the SLI Default Roles Admin Page to be
protected so only I can get information about the default roles in SLI and their permissions.
 
Scenario: Go to SLI Default Roles Admin Page, with a SLI IT Administrator role when authenticated to SLI IDP
Given I have an open web browser
And I am authenticated to SLI IDP as user "demo" with pass "<PASSWORD>"
And I have a Role attribute equal to "SLI IT Administrator"
When I navigate to the SLI Default Roles Admin Page
Then I should be redirected to the SLI Default Roles Admin Page
 
Scenario: Go to SLI Default Roles Admin Page, with a role other than SLI IT Administrator when authenticated to SLI IDP
Given I have an open web browser
And I am authenticated to SLI IDP as user "leader" with pass "<PASSWORD>"
And I have a Role attribute equal to "Leader"
When I navigate to the SLI Default Roles Admin Page
Then I should get a message that I am not authorized
 
Scenario: Go to SLI Default Roles Admin Page, with a SLI IT Administrator role when authenticated to SEA/LEA IDP
Given I have an open web browser
And I am authenticated to SLI IDP as user "admin" with pass "<PASSWORD>"
And I have a Role attribute equal to "SLI IT Administrator"
When I navigate to the SLI Default Roles Admin Page
Then I should get a message that I am not authorized
 
Scenario: Go to SLI Default Roles Admin Page, with a role other than SLI IT Administrator when authenticated to SEA/LEA IDP
Given I have an open web browser
And I am authenticated to SLI IDP as user "tbear" with pass "<PASSWORD>"
And I have a Role attribute equal to "Educator"
When I navigate to the SLI Default Roles Admin Page
Then I should get a message that I am not authorized
 
Scenario: Valid SLI IDP user login to SLI Default Roles Admin Page
Given I have an open web browser 
And I am not authenticated to SLI IDP
And I have tried to access the SLI Default Roles Admin Page
And I was redirected to the Realm page
And I choose realm "Shared Learning Initiative" in the drop-down list
And I was redirected to the SLI IDP Login page
And I am user "demo"
And "demo" is valid "SLI IDP" user
And I have a Role attribute equal to "SLI IT Administrator"
When I enter "demo" in the username text field
And I enter "<PASSWORD>" in the password text field
And I click the Go button
Then I am now authenticated to SLI IDP
And I should be redirected to the SLI Default Roles Admin Page

Scenario: Invalid SLI IDP user login to SLI Default Roles Admin Page
 
Given I have an open web browser
And I am not authenticated to SLI IDP
And I have tried to access the SLI Default Roles Admin Page
And I was redirected to the Realm page
And I choose my realm
And I was redirected to the SLI IDP Login page
And I am user "InvalidJohnDoe"
And "InvalidJohnDoe" is invalid "SLI IDP" user
When I enter "InvalidJohnDoe" in the username text field
And I enter "<PASSWORD>" in the password text field
And I click the Go button
Then I am informed that authentication has failed
And I do not have access to the SLI Default Roles Admin Page<commit_msg>Fixed typo in admintool tests<commit_after>@wip
Feature: Admin Tool Declarative Administrative Permissions

As a SLI Operator/Administrator, I want to login to the SLI Default Roles Admin Page,
so I could get an information about the default roles in SLI and their permissions.

As a SLI Operator/Administrator, I want the SLI Default Roles Admin Page to be
protected so only I can get information about the default roles in SLI and their permissions.
 
Scenario: Go to SLI Default Roles Admin Page, with a SLI IT Administrator role when authenticated to SLI IDP
Given I have an open web browser
And I am authenticated to SLI IDP as user "demo" with pass "<PASSWORD>"
And I have a Role attribute equal to "SLI IT Administrator"
When I navigate to the SLI Default Roles Admin Page
Then I should be redirected to the SLI Default Roles Admin Page
 
Scenario: Go to SLI Default Roles Admin Page, with a role other than SLI IT Administrator when authenticated to SLI IDP
Given I have an open web browser
And I am authenticated to SLI IDP as user "leader" with pass "<PASSWORD>"
And I have a Role attribute equal to "Leader"
When I navigate to the SLI Default Roles Admin Page
Then I should get a message that I am not authorized
 
Scenario: Go to SLI Default Roles Admin Page, with a SLI IT Administrator role when authenticated to SEA/LEA IDP
Given I have an open web browser
And I am authenticated to SEA/LEA IDP as user "admin" with pass "<PASSWORD>"
And I have a Role attribute equal to "SLI IT Administrator"
When I navigate to the SLI Default Roles Admin Page
Then I should get a message that I am not authorized
 
Scenario: Go to SLI Default Roles Admin Page, with a role other than SLI IT Administrator when authenticated to SEA/LEA IDP
Given I have an open web browser
And I am authenticated to SEA\/LEA IDP as user "tbear" with pass "<PASSWORD>"
And I have a Role attribute equal to "Educator"
When I navigate to the SLI Default Roles Admin Page
Then I should get a message that I am not authorized
 
Scenario: Valid SLI IDP user login to SLI Default Roles Admin Page
Given I have an open web browser 
And I am not authenticated to SLI IDP
And I have tried to access the SLI Default Roles Admin Page
And I was redirected to the Realm page
And I choose realm "Shared Learning Initiative" in the drop-down list
And I was redirected to the SLI IDP Login page
And I am user "demo"
And "demo" is valid "SLI IDP" user
And I have a Role attribute equal to "SLI IT Administrator"
When I enter "demo" in the username text field
And I enter "demo1234" in the password text field
And I click the Go button
Then I am now authenticated to SLI IDP
And I should be redirected to the SLI Default Roles Admin Page

Scenario: Invalid SLI IDP user login to SLI Default Roles Admin Page
 
Given I have an open web browser
And I am not authenticated to SLI IDP
And I have tried to access the SLI Default Roles Admin Page
And I was redirected to the Realm page
And I choose my realm
And I was redirected to the SLI IDP Login page
And I am user "InvalidJohnDoe"
And "InvalidJohnDoe" is invalid "SLI IDP" user
When I enter "InvalidJohnDoe" in the username text field
And I enter "badpass" in the password text field
And I click the Go button
Then I am informed that authentication has failed
And I do not have access to the SLI Default Roles Admin Page
{'fraction_non_alphanumeric': 0.025428829371050257, 'fraction_numerical': 0.0006018657839301836, 'mean_word_length': 4.25870253164557, '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': '4629767', 'n_tokens_mistral': 1865, 'n_tokens_neox': 1787, 'n_words': 1215}