@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.187
And
I follow "Clone Channel"
00:00:00.660
And
I select "Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.051
And
I click on "Clone Channel"
00:00:00.427
Then
I should see a "Create Software Channel" text
00:00:00.081
And
I should see a "Current state of the channel" text
00:00:00.081
When
I click on "Clone Channel"
00:00:00.815
Then
I should see a "Clone of Fake-RPM-SUSE-Channel" text
00:00:00.083
@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.076
And
I follow "Clone Channel"
00:00:00.371
And
I select "Clone of Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.062
And
I click on "Clone Channel"
00:00:00.048
Then
I should see a "Create Software Channel" text
00:00:00.496
And
I should see a "Current state of the channel" text
00:00:00.079
When
I click on "Clone Channel"
00:00:00.866
Then
I should see a "Clone of Clone of Fake-RPM-SUSE-Channel" text
00:00:00.076
When
I delete these channels with spacewalk-remove-channel:
00:00:02.788
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.939
And
I list channels with spacewalk-remove-channel
00:00:02.980
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