@skip_if_github_validation
@no_mirror
Feature: 0139 - SCC user credentials in the Setup Wizard
Description: As a systems administrator
In order to manage organization's access to SUSE Customer Service
I want to create, edit, and delete its credentials
File name: srv_scc_user_credentials.feature
Relative path: secondary/srv_scc_user_credentials.feature
@skip_if_github_validation
@no_mirror
Scenario: Enter some invalid organization credentials
When
I follow the left menu "Admin > Setup Wizard > Organization Credentials"
0s
And
I ask to add new credentials
0s
And
I enter "SCC user" as "edit-user"
0s
And
I enter "SCC password" as "edit-password"
0s
And
I click on "Save"
0s
Then
I should see a "SCC user" text
0s
And
the credentials for "SCC user" should be invalid
0s
@skip_if_github_validation
@no_mirror
Scenario: Check the associated subscription list
When
I follow the left menu "Admin > Setup Wizard > Organization Credentials"
0s
And
I view the subscription list for "SCC user"
0s
And
I wait until I see "No subscriptions available" text
0s
And
I click on "Close"
0s
@skip_if_github_validation
@no_mirror
Scenario: Enter duplicate SCC credentials
Given
I am authorized for the "Admin" section
0s
When
I follow the left menu "Admin > Setup Wizard > Organization Credentials"
0s
And
I ask to add new credentials
0s
And
I enter "invalidname" as "edit-user"
0s
And
I enter "invalidpw" as "edit-password"
0s
And
I click on "Save"
0s
Then
the credentials for "invalidname" should be invalid
0s
When
I ask to add new credentials
0s
And
I enter "invalidname" as "edit-user"
0s
And
I enter "invalidpw" as "edit-password"
0s
And
I click on "Save"
0s
Then
I should see a "Credentials with this username already exist" text
0s
When
I click on "Cancel"
0s
Then
the credentials for "invalidname" should be invalid
0s
Given
I am authorized for the "Admin" section
0s
When
I follow the left menu "Admin > Setup Wizard > Organization Credentials"
0s
And
I ask to edit the credentials for "invalidname"
0s
And
I enter "SCC user" as "edit-user"
0s
And
I enter "geekogeeko" as "edit-password"
0s
And
I click on "Save"
0s
Then
I should see a "Credentials with this username already exist" text
0s
When
I enter "invalidgeeko" as "edit-user"
0s
And
I click on "Save"
0s
Then
I should see a "invalidgeeko" text
0s
And
the credentials for "invalidgeeko" should be invalid
0s
@skip_if_github_validation
@no_mirror
Scenario: Cleanup: delete the new organization credentials
When
I follow the left menu "Admin > Setup Wizard > Organization Credentials"
0s
And
I wait for the trash icon to appear for "SCC user"
0s
And
I ask to delete the credentials for "SCC user"
0s
And
I click on "Delete" in "Are you sure you want to delete these credentials?" modal
0s
Then
I wait until I do not see "SCC user" text
0s
When
I wait for the trash icon to appear for "invalidgeeko"
0s
And
I ask to delete the credentials for "invalidgeeko"
0s
And
I click on "Delete" in "Are you sure you want to delete these credentials?" modal
0s
Then
I wait until I do not see "invalidgeeko" text
0s