@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.214
And
I follow "Clone Channel"
00:00:00.470
And
I select "Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.054
And
I click on "Clone Channel"
00:00:00.393
Then
I should see a "Create Software Channel" text
00:00:00.193
And
I should see a "Current state of the channel" text
00:00:00.184
When
I click on "Clone Channel"
00:00:00.714
Then
I should see a "Clone of Fake-RPM-SUSE-Channel" text
00:00:00.189
@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.072
And
I follow "Clone Channel"
00:00:00.375
And
I select "Clone of Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.064
And
I click on "Clone Channel"
00:00:00.405
Then
I should see a "Create Software Channel" text
00:00:00.189
And
I should see a "Current state of the channel" text
00:00:00.184
When
I click on "Clone Channel"
00:00:00.984
Then
I should see a "Clone of Clone of Fake-RPM-SUSE-Channel" text
00:00:00.181
When
I delete these channels with spacewalk-remove-channel:
00:00:04.583
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:03.103
And
I list channels with spacewalk-remove-channel
00:00:03.017
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