-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will add Cobbler profile tests, specifially for testing 2 common L3s. See SUSE/spacewalk#20409 Signed-off-by: Dominik Gedon <dgedon@suse.de>
- Loading branch information
Showing
5 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (c) 2023 SUSE LLC. | ||
# Licensed under the terms of the MIT license. | ||
|
||
# TODO | ||
# Switch the second Profile over to the first Distro | ||
# Now during the cobbler sync there should be a ValueError in the Cobbler Log with the following error message: | ||
# [<task id>] <date stamp> - INFO | Exception value: Child with the name "<child name>" of parent object "<parent name>" did not exist! | ||
|
||
|
||
# To detect the second bsc correctly one needs to account that the task ID is the identical one as the one you started. | ||
# To be able to not destroy the whole sumaform deployment, it would be cool if this test has a very thorough cleanup in SUMA AND Cobbler. | ||
|
||
@scope_cobbler | ||
Feature: Cobbler parent checks | ||
Tests for occuring Cobbler issue (bsc#1207417) | ||
|
||
Scenario: Log in as testing user | ||
Given I am authorized as "testing" with password "testing" | ||
|
||
Scenario: Create Cobbler distributions via the API | ||
Given cobblerd is running | ||
And I create distro "parent_distro1" as user "testing" with password "testing" | ||
And I create distro "parent_distro2" as user "testing" with password "testing" | ||
|
||
Scenario: Create a Cobbler profile via the API | ||
Given cobblerd is running | ||
And distro "parent_distro1" exists | ||
And distro "parent_distro2" exists | ||
And I create profile "parent_profile1" for distro "parent_distro1" as user "testing" with password "testing" | ||
And I create profile "parent_profile2" for distro "parent_distro2" as user "testing" with password "testing" | ||
|
||
Scenario: Create a Cobbler system via the API | ||
Given cobblerd is running | ||
And profile "iseprofile" exists | ||
When I create system "isesystem" for profile "iseprofile" as user "testing" with password "testing" | ||
|
||
Scenario: Execute a Cobbler sync | ||
Given cobblerd is running | ||
And I run Cobbler sync without error checking |
31 changes: 31 additions & 0 deletions
31
testsuite/features/secondary/srv_cobbler_profile_ise.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2023 SUSE LLC. | ||
# Licensed under the terms of the MIT license. | ||
|
||
# TODO | ||
# Use XML-RPC SUMA API setVariables; XML-RPC should return an error here | ||
|
||
@scope_cobbler | ||
Feature: Cobbler editing profiles results in ISE | ||
Tests for occuring Cobbler issue (bsc#1207532) | ||
|
||
Scenario: Log in as testing user | ||
Given I am authorized as "testing" with password "testing" | ||
|
||
Scenario: Create a Cobbler distribution via the API | ||
Given cobblerd is running | ||
When I create distro "isedistro" as user "testing" with password "testing" | ||
|
||
Scenario: Create a Cobbler profile via the API | ||
Given cobblerd is running | ||
And distro "isedistro" exists | ||
When I create profile "iseprofile" for distro "isedistro" as user "testing" with password "testing" | ||
|
||
Scenario: Create a Cobbler system via the API | ||
Given cobblerd is running | ||
And profile "iseprofile" exists | ||
When I create system "isesystem" for profile "iseprofile" as user "testing" with password "testing" | ||
|
||
Scenario: Check Cobbler created distro and profile | ||
When I follow the left menu "Systems > Autoinstallation > Profiles" | ||
Then I should see a "iseprofile" text | ||
And I should see a "isedistro" text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters