@skip_if_github_validation
@skip_if_cloud
@build_host
@scope_retail
@scope_building_container_images
@scc_credentials
Feature: 0040 - Build OS images
File name: buildhost_osimage_build_image.feature
Relative path: secondary/buildhost_osimage_build_image.feature
@skip_if_github_validation
@skip_if_cloud
@build_host
@scope_retail
@scope_building_container_images
@scc_credentials
Scenario: Create an OS image profile with activation key
When
I follow the left menu "Images > Profiles"
0s
And
I follow "Create"
0s
And
I enter "suse_os_image" as "label"
0s
And
I select "Kiwi" from "imageType"
0s
And
I select "1-TERMINAL-KEY-x86_64" from "activationKey"
0s
And
I enter the image filename for "pxeboot_minion" relative to profiles as "path"
0s
And
I click on "create-btn"
0s
And
I wait until no Salt job is running on "build_host"
0s
@skip_if_github_validation
@skip_if_cloud
@build_host
@scope_retail
@scope_building_container_images
@scc_credentials
Scenario: Login as Kiwi image administrator and build an image
Given
I am authorized for the "Images" section
0s
When
I follow the left menu "Images > Build"
0s
And
I select "suse_os_image" from "profileId"
0s
And
I select the hostname of "build_host" from "buildHostId"
0s
And
I click on "submit-btn"
0s
@skip_if_github_validation
@skip_if_cloud
@build_host
@scope_retail
@scope_building_container_images
@scc_credentials
Scenario: Wait for the built OS image
Given
I am on the Systems overview page of this "build_host"
0s
Then
I should see a "[OS Image Build Host]" text
0s
When
I wait until the image build "suse_os_image" is completed
0s
And
I wait until the image inspection for "pxeboot_minion" is completed
0s
And
I wait until no Salt job is running on "build_host"
0s
And
I follow the left menu "Images > Image List"
0s
Then
I should see the image for "pxeboot_minion" is built
0s
@skip_if_github_validation
@skip_if_cloud
@build_host
@scope_retail
@scope_building_container_images
@scc_credentials
Scenario: Check the built OS image
When
I open the details page of the image for "pxeboot_minion"
0s
Then
I should see a link to download the image for "pxeboot_minion"
0s
@skip_if_github_validation
@skip_if_cloud
@build_host
@scope_retail
@scope_building_container_images
@scc_credentials
Scenario: Cleanup: remove OS image profile
When
I follow the left menu "Images > Profiles"
0s
And
I check "suse_os_image" in the list
0s
And
I click on "Delete"
0s
And
I should see a "Are you sure you want to delete the selected profile?" text
0s
And
I click on the red confirmation button
0s
And
I wait until I see "Image profile has been deleted" text
0s