Feature: 0088 - Manipulate activation keys
Description: In order to register systems to the spacewalk server
As the testing user
I want to create and edit activation keys
File name: srv_manage_activationkey.feature
Relative path: secondary/srv_manage_activationkey.feature
When
I follow the left menu "Systems > Activation Keys"
00:00:00.132
And
I follow "Create Key"
00:00:00.265
And
I wait until I do not see "Loading..." text
00:00:00.229
And
I enter "SUSE Test Key i586" as "description"
00:00:00.072
And
I enter "SUSE-TEST-i586" as "key"
00:00:00.070
And
I check "virtualization_host"
00:00:00.083
And
I click on "Create Activation Key"
00:00:00.063
Then
I should see a "Activation key SUSE Test Key i586 has been created." text
00:00:00.180
When
I follow the left menu "Systems > Activation Keys"
00:00:00.063
And
I follow "SUSE Test Key i586"
00:00:00.347
And
I wait until I do not see "Loading..." text
00:00:00.402
And
I enter "20" as "usageLimit"
00:00:00.055
And
I click on "Update Activation Key"
00:00:00.598
Then
I wait until I see "Activation key SUSE Test Key i586 has been modified." text
00:00:00.177
And
I should see "20" in field identified by "usageLimit"
00:00:00.024
When
I follow the left menu "Systems > Activation Keys"
00:00:00.065
And
I follow "SUSE Test Key i586"
00:00:00.351
And
I wait until I do not see "Loading..." text
00:00:00.478
And
I select "Fake-Base-Channel-i586" from "selectedBaseChannel"
00:00:00.075
And
I click on "Update Activation Key"
00:00:00.695
Then
I wait until I see "Activation key SUSE Test Key i586 has been modified." text
00:00:00.170
When
I follow the left menu "Systems > Activation Keys"
00:00:00.059
And
I follow "SUSE Test Key i586" in the content area
00:00:00.067
And
I wait until I do not see "Loading..." text
00:00:00.564
And
I follow "Delete Key"
00:00:00.319
And
I click on "Delete Activation Key"
00:00:00.055
Then
I should see a "Activation key SUSE Test Key i586 has been deleted." text
00:00:00.190
Scenario: Create an activation key with a channel and a package list for i586
When
I follow the left menu "Systems > Activation Keys"
00:00:00.065
And
I follow "Create Key"
00:00:00.289
And
I wait until I do not see "Loading..." text
00:00:00.296
And
I enter "SUSE Test PKG Key i586" as "description"
00:00:00.070
And
I enter "SUSE-TEST-2-i586" as "key"
00:00:00.067
And
I enter "20" as "usageLimit"
00:00:00.045
And
I select "Fake-Base-Channel-i586" from "selectedBaseChannel"
00:00:00.051
And
I click on "Create Activation Key"
00:00:01.321
And
I follow "Packages"
00:00:00.409
And
I enter "sed" as "packages"
00:00:00.048
And
I click on "Update Activation Key"
00:00:00.486
Then
I should see a "Activation key SUSE Test PKG Key i586 has been modified." text
00:00:00.141
When
I follow the left menu "Systems > Activation Keys"
00:00:00.060
And
I follow "SUSE Test PKG Key i586" in the content area
00:00:00.067
And
I follow "Delete Key"
00:00:00.313
And
I click on "Delete Activation Key"
00:00:00.587
Then
I should see a "Activation key SUSE Test PKG Key i586 has been deleted." text
00:00:00.184
@scc_credentials
@susemanager
Scenario: Create an activation key with a channel and a package list for x86_64
When
I follow the left menu "Systems > Activation Keys"
0s
And
I follow "Create Key"
0s
And
I wait until I do not see "Loading..." text
0s
And
I enter "SUSE Test PKG Key x86_64" as "description"
0s
And
I enter "SUSE-TEST-x86_64" as "key"
0s
And
I enter "20" as "usageLimit"
0s
And
I select "SLE-Product-SLES15-SP7-Pool for x86_64" from "selectedBaseChannel"
0s
And
I click on "Create Activation Key"
0s
And
I follow "Packages"
0s
And
I enter "sed" as "packages"
0s
And
I click on "Update Activation Key"
0s
Then
I should see a "Activation key SUSE Test PKG Key x86_64 has been modified." text
0s
@scc_credentials
@uyuni
Scenario: Create an activation key with a channel and a package list for x86_64
When
I follow the left menu "Systems > Activation Keys"
00:00:00.069
And
I follow "Create Key"
00:00:00.246
And
I wait until I do not see "Loading..." text
00:00:00.301
And
I enter "SUSE Test PKG Key x86_64" as "description"
00:00:00.085
And
I enter "SUSE-TEST-x86_64" as "key"
00:00:00.065
And
I enter "20" as "usageLimit"
00:00:00.046
And
I select "openSUSE Tumbleweed (x86_64)" from "selectedBaseChannel"
00:00:00.059
And
I click on "Create Activation Key"
00:00:00.068
And
I follow "Packages"
00:00:00.316
And
I enter "sed" as "packages"
00:00:00.051
And
I click on "Update Activation Key"
00:00:00.054
Then
I should see a "Activation key SUSE Test PKG Key x86_64 has been modified." text
00:00:00.571
@scc_credentials
Scenario: Delete the x86_64 activation key with packages
When
I follow the left menu "Systems > Activation Keys"
00:00:00.062
And
I follow "SUSE Test PKG Key x86_64" in the content area
00:00:00.067
And
I follow "Delete Key"
00:00:00.315
And
I click on "Delete Activation Key"
00:00:00.048
Then
I should see a "Activation key SUSE Test PKG Key x86_64 has been deleted." text
00:00:00.649
+ Show Error
+ Screenshot
Unable to find visible xpath "/html" (Capybara::ElementNotFound) ./features/support/commonlib.rb:125:in `check_text?' ./features/step_definitions/navigation_steps.rb:691:in `/^I should see a "([^"]*)" text$/' features/secondary/srv_manage_activationkey.feature:106:in `I should see a "Activation key SUSE Test PKG Key x86_64 has been deleted." text'