Skip to content

Commit

Permalink
Address suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Gedon <dominik.gedon@suse.com>
  • Loading branch information
nodeg committed Aug 29, 2023
1 parent f7ba7bb commit 728e82e
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Feature: Add the Alma 9 distribution custom repositories
When I click on "Attach/Detach Sources"
And I wait until I do not see "Loading" text
And I select "AlmaLinux 9 (x86_64)" from "selectedBaseChannel"
And I check "Uyuni Client Tools for AlmaLinux 9 (x86_64) (Development)"
And I check "Uyuni Client Tools for AlmaLinux 9 (x86_64)"
And I check "Custom Channel for alma9_minion"
And I check "AlmaLinux 9 AppStream (x86_64)"
And I click on "Save"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Feature: Add the Oracle 9 distribution custom repositories
When I click on "Attach/Detach Sources"
And I wait until I do not see "Loading" text
And I select "Oracle Linux 9 (x86_64)" from "selectedBaseChannel"
And I check "Uyuni Client Tools for Oracle Linux 9 (x86_64) (Development)"
And I check "Uyuni Client Tools for Oracle Linux 9 (x86_64)"
And I check "Oracle Linux 9 AppStream (x86_64)"
And I check "Custom Channel for oracle9_minion"
And I click on "Save"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Feature: Add the Rocky 8 distribution custom repositories
When I click on "Attach/Detach Sources"
And I wait until I do not see "Loading" text
And I select "Rocky Linux 8 (x86_64)" from "selectedBaseChannel"
And I check "Uyuni Client Tools for Rocky Linux 8 (x86_64) (Development)"
And I check "Uyuni Client Tools for Rocky Linux 8 (x86_64)"
And I check "Rocky Linux 8 - AppStream (x86_64)"
And I check "Custom Channel for Rocky 8 DVD"
And I check "Custom Channel for rocky8_minion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Feature: Add the Rocky 9 distribution custom repositories
When I click on "Attach/Detach Sources"
And I wait until I do not see "Loading" text
And I select "Rocky Linux 9 (x86_64)" from "selectedBaseChannel"
And I check "Uyuni Client Tools for Rocky Linux 9 (x86_64) (Development)"
And I check "Uyuni Client Tools for Rocky Linux 9 (x86_64)"
And I check "Rocky Linux 9 AppStream (x86_64)"
And I check "Custom Channel for rocky9_minion"
And I click on "Save"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,6 @@ Feature: Update activation keys
And I check "Update repository of openSUSE Leap 15.4 Backports (x86_64)"
And I check "Update repository with updates from SUSE Linux Enterprise 15 for openSUSE Leap 15.4 (x86_64)"
And I check "Uyuni Client Tools for openSUSE Leap 15.4 (x86_64)"
And I check "Uyuni Proxy Devel for openSUSE Leap 15.4 (x86_64) (Development)"
And I check "Uyuni Proxy Devel for openSUSE Leap 15.4 (x86_64)"
When I click on "Update Activation Key"
Then I should see a "Activation key Proxy Key x86_64 has been modified" text
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Feature: Setup Uyuni proxy
And I check "Update repository of openSUSE Leap 15.4 Backports (x86_64)"
And I check "Update repository with updates from SUSE Linux Enterprise 15 for openSUSE Leap 15.4 (x86_64)"
And I check "Uyuni Client Tools for openSUSE Leap 15.4 (x86_64)"
And I check "Uyuni Proxy Devel for openSUSE Leap 15.4 (x86_64) (Development)"
And I check "Uyuni Proxy Devel for openSUSE Leap 15.4 (x86_64)"
And I click on "Next"
Then I should see a "Confirm Software Channel Change" text
When I click on "Confirm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Feature: Setup Uyuni proxy
And I check "Update repository of openSUSE Leap 15.4 Backports (x86_64)"
And I check "Update repository with updates from SUSE Linux Enterprise 15 for openSUSE Leap 15.4 (x86_64)"
And I check "Uyuni Client Tools for openSUSE Leap 15.4 (x86_64)"
And I check "Uyuni Proxy Devel for openSUSE Leap 15.4 (x86_64) (Development)"
And I check "Uyuni Proxy Devel for openSUSE Leap 15.4 (x86_64)"
And I click on "Next"
Then I should see a "Confirm Software Channel Change" text
When I click on "Confirm"
Expand Down
10 changes: 5 additions & 5 deletions testsuite/features/step_definitions/api_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,19 +238,19 @@
When(/^I create an activation key including custom channels for "([^"]*)" via API$/) do |client|
# Create a key with the base channel for this client
id = description = "#{client}_key"
base_channel_map = BASE_CHANNEL_BY_CLIENT[product][client]
base_channel = LABEL_BY_BASE_CHANNEL[product][base_channel_map]
key = $api_test.activationkey.create(id, description, base_channel, 100)
base_channel = BASE_CHANNEL_BY_CLIENT[product][client]
base_channel_label = LABEL_BY_BASE_CHANNEL[product][base_channel]
key = $api_test.activationkey.create(id, description, base_channel_label, 100)
raise StandardError, 'Error creating activation key via the API' if key.nil?
STDOUT.puts "Activation key #{key} created" unless key.nil?

is_ssh_minion = client.include? 'ssh_minion'
$api_test.activationkey.set_details(key, description, base_channel, 100, is_ssh_minion ? 'ssh-push' : 'default')
$api_test.activationkey.set_details(key, description, base_channel_label, 100, is_ssh_minion ? 'ssh-push' : 'default')
entitlements = client.include?('buildhost') ? ['osimage_build_host'] : ''
$api_test.activationkey.set_entitlement(key, entitlements) unless entitlements.empty?

# Get the list of child channels for this base channel
child_channels = $api_test.channel.software.list_child_channels(base_channel)
child_channels = $api_test.channel.software.list_child_channels(base_channel_label)

# Filter out the custom channels
# This is needed because we might have both a traditional custom channel and a Salt custom channel
Expand Down

0 comments on commit 728e82e

Please sign in to comment.