@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.204
And
I follow "Clone Channel"
00:00:00.374
And
I select "Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.055
And
I click on "Clone Channel"
00:00:00.052
Then
I should see a "Create Software Channel" text
00:00:00.445
And
I should see a "Current state of the channel" text
00:00:00.074
When
I click on "Clone Channel"
00:00:00.705
Then
I should see a "Clone of Fake-RPM-SUSE-Channel" text
00:00:00.079
@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.077
And
I follow "Clone Channel"
00:00:00.380
And
I select "Clone of Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.065
And
I click on "Clone Channel"
00:00:00.387
Then
I should see a "Create Software Channel" text
00:00:00.083
And
I should see a "Current state of the channel" text
00:00:00.078
When
I click on "Clone Channel"
00:00:00.680
Then
I should see a "Clone of Clone of Fake-RPM-SUSE-Channel" text
00:00:00.078
When
I delete these channels with spacewalk-remove-channel:
00:00:02.811
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:04.399
And
I list channels with spacewalk-remove-channel
00:00:02.834
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