@scope_configuration_channels
Feature: 0034 - Deleting channels with children or clones is not allowed
Description: Using the tool spacewalk-remove-channel, we cannot delete a channel if it has a child
or a clone created from it
File name: srv_delete_channel_with_tool.feature
Relative path: secondary/srv_delete_channel_with_tool.feature
@scope_configuration_channels
Scenario: Clone the first channel before deletion from tool test
When
I follow the left menu "Software > Manage > Channels"
00:00:00.216
And
I follow "Clone Channel"
00:00:00.393
And
I select "Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.061
And
I click on "Clone Channel"
00:00:00.394
Then
I should see a "Create Software Channel" text
00:00:00.082
And
I should see a "Current state of the channel" text
00:00:00.084
When
I click on "Clone Channel"
00:00:00.737
Then
I should see a "Clone of Fake-RPM-SUSE-Channel" text
00:00:00.082
@scope_configuration_channels
Scenario: Clone a second channel using first channel as base
When
I follow the left menu "Software > Manage > Channels"
00:00:00.082
And
I follow "Clone Channel"
00:00:00.404
And
I select "Clone of Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.072
And
I click on "Clone Channel"
00:00:00.397
Then
I should see a "Create Software Channel" text
00:00:00.082
And
I should see a "Current state of the channel" text
00:00:00.078
When
I click on "Clone Channel"
00:00:00.748
Then
I should see a "Clone of Clone of Fake-RPM-SUSE-Channel" text
00:00:00.082
When
I delete these channels with spacewalk-remove-channel:
00:00:03.506
Then
I should get "Error: cannot remove channel"
00:00:00.000
And
I should get "clone channel(s) exist"
00:00:00.000
And
I should get "clone-fake-rpm-suse-channel"
00:00:00.000
And
I should get "clone-clone-fake-rpm-suse-channel"
00:00:00.000
When
I delete these channels with spacewalk-remove-channel:
00:00:02.855
And
I list channels with spacewalk-remove-channel
00:00:02.796
Then
I shouldn't get "clone-fake-rpm-suse-channel"
00:00:00.000
And
I shouldn't get "clone-clone-fake-rpm-suse-channel"
00:00:00.000