@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.217
And
I follow "Clone Channel"
00:00:00.359
And
I select "Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.056
And
I click on "Clone Channel"
00:00:00.405
Then
I should see a "Create Software Channel" text
00:00:00.079
And
I should see a "Current state of the channel" text
00:00:00.076
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.077
@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.551
And
I select "Clone of Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.070
And
I click on "Clone Channel"
00:00:00.434
Then
I should see a "Create Software Channel" text
00:00:00.078
And
I should see a "Current state of the channel" text
00:00:00.074
When
I click on "Clone Channel"
00:00:00.714
Then
I should see a "Clone of Clone of Fake-RPM-SUSE-Channel" text
00:00:00.079
When
I delete these channels with spacewalk-remove-channel:
00:00:04.531
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.907
And
I list channels with spacewalk-remove-channel
00:00:02.841
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