Feature: 0014 - Synchronize fake channels
Description: In order to use the content provided inside the repositories of the fake channels
As admin
I want to synchronize the fake channels
File name: srv_sync_fake_channels.feature
Relative path: reposync/srv_sync_fake_channels.feature
Given
I am authorized for the "Admin" section
00:00:01.532
When
I follow the left menu "Software > Manage > Channels"
00:00:01.170
And
I follow "Fake-RPM-SUSE-Channel"
00:00:00.959
And
I follow "Repositories" in the content area
00:00:00.332
And
I follow "Sync"
00:00:00.639
And
I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page
00:00:00.009
And
I click on "Sync Now"
00:00:01.209
Then
I should see a "Repository sync scheduled for Fake-RPM-SUSE-Channel." text
00:00:00.009
And
I wait until the channel "fake-rpm-suse-channel" has been synced
00:17:00.892
+ Show Error
+ Show Info
+ Screenshot
SCP did not finish successfully (channel closed before end of transmission) (Net::SCP::Error) (internal:kernel):168:in 'Kernel#loop' ./features/support/network_utils.rb:66:in 'Object#scp_download_command' ./features/support/remote_node.rb:111:in 'RemoteNode#scp_download' ./features/support/remote_node.rb:273:in 'RemoteNode#extract' ./features/support/commonlib.rb:1042:in 'Object#channel_packages_are_downloaded?' ./features/support/commonlib.rb:966:in 'block (2 levels) in Object#wait_for_channels' ./features/support/commonlib.rb:966:in 'Array#reject!' ./features/support/commonlib.rb:966:in 'block in Object#wait_for_channels' ./features/support/commonlib.rb:175:in 'block in Object#repeat_until_timeout' ./features/support/commonlib.rb:164:in 'Object#repeat_until_timeout' ./features/support/commonlib.rb:964:in 'Object#wait_for_channels' ./features/step_definitions/command_steps.rb:470:in `/^I wait until the channel "([^"]*)" has been synced(?: on (server|server2|server3|hub|peripheral1|peripheral2))?$/' ./features/support/env.rb:431:in 'block in (top (required))' features/reposync/srv_sync_fake_channels.feature:31:in `I wait until the channel "fake-rpm-suse-channel" has been synced'
DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log 1m / 17m waiting for channel 'fake-rpm-suse-channel' synchronization DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log 2m / 17m waiting for channel 'fake-rpm-suse-channel' synchronization DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log 3m / 17m waiting for channel 'fake-rpm-suse-channel' synchronization DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log 4m / 17m waiting for channel 'fake-rpm-suse-channel' synchronization DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log 5m / 17m waiting for channel 'fake-rpm-suse-channel' synchronization DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log 6m / 17m waiting for channel 'fake-rpm-suse-channel' synchronization DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log 7m / 17m waiting for channel 'fake-rpm-suse-channel' synchronization DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log 8m / 17m waiting for channel 'fake-rpm-suse-channel' synchronization DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log 9m / 17m waiting for channel 'fake-rpm-suse-channel' synchronization DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log DEBUG: Channel 'fake-rpm-suse-channel' not found in reposync.log Failed channels for channel 'fake-rpm-suse-channel': ["fake-rpm-suse-channel"]. SCP did not finish successfully (channel closed before end of transmission)
Then
"orion-dummy-1.1-1.1.x86_64.rpm" package should have been stored
00:00:08.614
And
solver file for "fake-rpm-suse-channel" should reference "orion-dummy-1.1-1.1.x86_64.rpm"
00:10:00.000
+ Show Error
+ Screenshot
execution expired (Timeout::Error) ./features/support/commonlib.rb:164:in 'Object#repeat_until_timeout' ./features/step_definitions/command_steps.rb:462:in `/^solver file for "([^"]*)" should reference "([^"]*)"$/' ./features/support/env.rb:431:in 'block in (top (required))' features/reposync/srv_sync_fake_channels.feature:36:in `solver file for "fake-rpm-suse-channel" should reference "orion-dummy-1.1-1.1.x86_64.rpm"'
@skip_if_github_validation
Scenario: Synchronize Fake-Child-Channel-i586 channel
Given
I am authorized for the "Admin" section
00:00:00.519
When
I follow the left menu "Software > Manage > Channels"
00:00:01.169
And
I follow "Fake-Child-Channel-i586"
00:00:00.759
And
I follow "Repositories" in the content area
00:00:00.337
And
I follow "Sync"
00:00:00.417
And
I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page
00:00:00.010
And
I click on "Sync Now"
00:00:00.954
Then
I should see a "Repository sync scheduled for Fake-Child-Channel-i586." text
00:00:00.010
DEBUG: Found channel 'fake-child-channel-i586' at line 233. Checking for completion... DEBUG: Sync for fake-child-channel-i586 still in progress (no completion message found). DEBUG: Found channel 'fake-child-channel-i586' at line 233. Checking for completion... DEBUG: Found 'Sync of channel completed.' for fake-child-channel-i586 at line 237. SUCCESS: fake-child-channel-i586 is fully synchronized.
Given
I am authorized for the "Admin" section
00:00:00.639
When
I follow the left menu "Software > Manage > Channels"
00:00:01.172
And
I follow "Test-Child-Channel-x86_64"
00:00:00.396
And
I follow "Repositories" in the content area
00:00:00.362
And
I follow "Sync"
00:00:00.343
And
I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page
00:00:00.010
And
I click on "Sync Now"
00:00:00.557
Then
I should see a "Repository sync scheduled for Test-Child-Channel-x86_64." text
00:00:00.010
DEBUG: Found channel 'test-child-channel-x86_64' at line 241. Checking for completion... DEBUG: Sync for test-child-channel-x86_64 still in progress (no completion message found). DEBUG: Found channel 'test-child-channel-x86_64' at line 241. Checking for completion... DEBUG: Found 'Sync of channel completed.' for test-child-channel-x86_64 at line 245. SUCCESS: test-child-channel-x86_64 is fully synchronized.
Given
I am authorized for the "Admin" section
00:00:00.561
When
I follow the left menu "Software > Manage > Channels"
00:00:01.148
And
I follow "Fake-Child-Channel-SUSE-like"
00:00:00.331
And
I follow "Repositories" in the content area
00:00:00.368
And
I follow "Sync"
00:00:00.323
And
I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page
00:00:00.011
And
I click on "Sync Now"
00:00:00.488
Then
I should see a "Repository sync scheduled for Fake-Child-Channel-SUSE-like." text
00:00:00.010
And
I wait until the channel "fake-child-channel-suse-like" has been synced
00:00:18.908
+ Show Info
DEBUG: Found channel 'fake-child-channel-suse-like' at line 249. Checking for completion... DEBUG: Sync for fake-child-channel-suse-like still in progress (no completion message found). DEBUG: Found channel 'fake-child-channel-suse-like' at line 249. Checking for completion... DEBUG: Found 'Sync of channel completed.' for fake-child-channel-suse-like at line 253. SUCCESS: fake-child-channel-suse-like is fully synchronized.
@deblike_minion
Scenario: Synchronize Fake-Base-Channel-Debian-like channel
Given
I am authorized for the "Admin" section
00:00:00.633
When
I follow the left menu "Software > Manage > Channels"
00:00:01.163
And
I follow "Fake-Base-Channel-Debian-like"
00:00:00.348
And
I follow "Repositories" in the content area
00:00:00.355
And
I follow "Sync"
00:00:00.343
And
I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page
00:00:00.010
And
I click on "Sync Now"
00:00:00.516
Then
I should see a "Repository sync scheduled for Fake-Base-Channel-Debian-like." text
00:00:00.011
And
I wait until the channel "fake-base-channel-debian-like" has been synced
00:00:04.284
+ Show Info
DEBUG: Found channel 'fake-base-channel-debian-like' at line 257. Checking for completion... DEBUG: Found 'Sync of channel completed.' for fake-base-channel-debian-like at line 261. SUCCESS: fake-base-channel-debian-like is fully synchronized.
Given
I am authorized for the "Admin" section
00:00:00.480
When
I follow the left menu "Software > Manage > Channels"
00:00:01.150
And
I follow "Fake-Base-Channel-RH-like"
00:00:00.320
And
I follow "Repositories" in the content area
00:00:00.351
And
I follow "Sync"
00:00:00.343
And
I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page
00:00:00.011
And
I click on "Sync Now"
00:00:00.430
Then
I should see a "Repository sync scheduled for Fake-Base-Channel-RH-like." text
00:00:00.010
DEBUG: Found channel 'fake-base-channel-rh-like' at line 265. Checking for completion... DEBUG: Sync for fake-base-channel-rh-like still in progress (no completion message found). DEBUG: Found channel 'fake-base-channel-rh-like' at line 265. Checking for completion... DEBUG: Found 'Sync of channel completed.' for fake-base-channel-rh-like at line 269. SUCCESS: fake-base-channel-rh-like is fully synchronized.
Given
I am authorized for the "Admin" section
00:00:00.558
When
I follow the left menu "Software > Manage > Channels"
00:00:01.154
And
I follow "Fake-Base-Channel-AppStream"
00:00:00.323
And
I follow "Repositories" in the content area
00:00:00.350
And
I follow "Sync"
00:00:00.327
And
I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page
00:00:00.010
And
I click on "Sync Now"
00:00:00.457
Then
I should see a "Repository sync scheduled for Fake-Base-Channel-AppStream." text
00:00:00.009
DEBUG: Found channel 'fake-base-channel-appstream' at line 273. Checking for completion... DEBUG: Sync for fake-base-channel-appstream still in progress (no completion message found). DEBUG: Found channel 'fake-base-channel-appstream' at line 273. Checking for completion... DEBUG: Found 'Sync of channel completed.' for fake-base-channel-appstream at line 277. SUCCESS: fake-base-channel-appstream is fully synchronized.
@pxeboot_minion
@uyuni
@scc_credentials
Scenario: Synchronize the repository in the terminal channel
Given
I am authorized for the "Admin" section
0s
And
I follow the left menu "Software > Manage > Channels"
0s
And
I follow "Fake-RPM-Terminal-Channel"
0s
And
I follow "Repositories" in the content area
0s
And
I follow "Sync"
0s
And
I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page
0s
And
I click on "Sync Now"
0s
Then
I should see a "Repository sync scheduled for Fake-RPM-Terminal-Channel." text
0s
And
I wait until the channel "fake-rpm-terminal-channel" has been synced
0s
@pxeboot_minion
@uyuni
@scc_credentials
Scenario: Verify state of Fake-RPM-Terminal-Channel custom channel
Then
"orion-dummy-1.1-1.1.x86_64.rpm" package should have been stored
0s
And
solver file for "fake-rpm-terminal-channel" should reference "orion-dummy-1.1-1.1.x86_64.rpm"
0s
When
I follow the left menu "Admin > Task Schedules"
00:00:01.109
And
I follow "errata-cache-default"
00:00:00.326
And
I follow "errata-cache-bunch"
00:00:00.343
And
I click on "Single Run Schedule"
00:00:00.327
Then
I should see a "bunch was scheduled" text
00:00:00.012
And
I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
00:00:00.499
When
I follow the left menu "Admin > Task Schedules"
00:00:01.073
And
I follow "channel-repodata-default"
00:00:00.383
And
I follow "channel-repodata-bunch"
00:00:00.331
And
I click on "Single Run Schedule"
00:00:00.329
Then
I should see a "bunch was scheduled" text
00:00:00.042
And
I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
00:00:00.465