@skip_if_github_validation
@build_host
@scope_building_container_images
@auth_registry
@scc_credentials
Feature: 0116 - Build image with authenticated registry
File name: buildhost_docker_auth_registry.feature
Relative path: secondary/buildhost_docker_auth_registry.feature
@skip_if_github_validation
@build_host
@scope_building_container_images
@auth_registry
Scenario: Create an authenticated image store as Docker admin
When
I follow the left menu "Images > Stores"
00:00:00.140
And
I follow "Create"
00:00:00.289
And
I enter "auth_registry" as "label"
00:00:00.105
And
I check "useCredentials"
00:00:00.114
AUTH_REGISTRY_CREDENTIALS: cucutest|cucusecret
And
I click on "create-btn"
00:00:00.064
Then
I wait until I see "registry" text
00:00:00.057
@skip_if_github_validation
@build_host
@scope_building_container_images
@auth_registry
@scc_credentials
Scenario: Create a profile for the authenticated image store as Docker admin
When
I follow the left menu "Images > Profiles"
00:00:00.331
And
I follow "Create"
00:00:00.355
And
I enter "auth_registry_profile" as "label"
00:00:00.178
And
I select "auth_registry" from "imageStore"
00:00:01.143
And
I select "1-SUSE-KEY-x86_64" from "activationKey"
00:00:01.131
GITPROFILES: https://github.com/uyuni-project/uyuni.git#:testsuite/features/profiles/temporary
And
I click on "create-btn"
00:00:00.064
Then
I wait until I see "auth_registry_profile" text
00:00:00.411
@skip_if_github_validation
@build_host
@scope_building_container_images
@auth_registry
@scc_credentials
Scenario: Build an image in the authenticated image store
When
I follow the left menu "Images > Build"
00:00:00.070
And
I select "auth_registry_profile" from "profileId"
00:00:01.145
And
I enter "latest" as "version"
00:00:00.155
And
I select the hostname of "build_host" from "buildHostId"
00:00:01.129
And
I click on "submit-btn"
00:00:00.067
Then
I wait until I see "auth_registry_profile" text
00:00:00.075
When
I wait at most 900 seconds until image "auth_registry_profile" with version "latest" is built successfully via API
00:00:23.992
+ Show Error
+ Show Info
+ Screenshot
unknown error - image build failed. (SystemCallError) ./features/step_definitions/docker_steps.rb:55:in `block (2 levels) in (top (required))' ./features/support/commonlib.rb:100:in `block in repeat_until_timeout' ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/docker_steps.rb:41:in `/^I wait at most (\d+) seconds until image "([^"]*)" with version "([^"]*)" is built successfully via API$/' features/secondary/buildhost_docker_auth_registry.feature:45:in `I wait at most 900 seconds until image "auth_registry_profile" with version "latest" is built successfully via API'
List of images: [{"external"=>false, "name"=>"auth_registry_profile", "checksum"=>"", "obsolete"=>false, "id"=>10, "arch"=>"x86_64-redhat-linux", "type"=>"dockerfile", "version"=>"latest", "storeLabel"=>"auth_registry", "revision"=>0}]
Image Details: {"outdatedPackages"=>0, "buildServerId"=>1000010004, "obsolete"=>false, "bugErrata"=>0, "installedPackages"=>0, "type"=>"dockerfile", "version"=>"latest", "storeLabel"=>"auth_registry", "revision"=>0, "securityErrata"=>0, "buildStatus"=>"picked up", "external"=>false, "profileLabel"=>"auth_registry_profile", "name"=>"auth_registry_profile", "checksum"=>"", "files"=>[], "id"=>10, "arch"=>"x86_64", "enhancementErrata"=>0}
Image Details: {"outdatedPackages"=>0, "buildServerId"=>1000010004, "obsolete"=>false, "bugErrata"=>0, "installedPackages"=>0, "type"=>"dockerfile", "version"=>"latest", "storeLabel"=>"auth_registry", "revision"=>0, "securityErrata"=>0, "buildStatus"=>"picked up", "external"=>false, "profileLabel"=>"auth_registry_profile", "name"=>"auth_registry_profile", "checksum"=>"", "files"=>[], "id"=>10, "arch"=>"x86_64", "enhancementErrata"=>0}
Image Details: {"outdatedPackages"=>0, "buildServerId"=>1000010004, "obsolete"=>false, "bugErrata"=>0, "installedPackages"=>0, "type"=>"dockerfile", "version"=>"latest", "storeLabel"=>"auth_registry", "revision"=>0, "securityErrata"=>0, "buildStatus"=>"picked up", "external"=>false, "profileLabel"=>"auth_registry_profile", "name"=>"auth_registry_profile", "checksum"=>"", "files"=>[], "id"=>10, "arch"=>"x86_64", "enhancementErrata"=>0}
Image Details: {"outdatedPackages"=>0, "buildServerId"=>1000010004, "obsolete"=>false, "bugErrata"=>0, "installedPackages"=>0, "type"=>"dockerfile", "version"=>"latest", "storeLabel"=>"auth_registry", "revision"=>0, "securityErrata"=>0, "buildStatus"=>"failed", "external"=>false, "profileLabel"=>"auth_registry_profile", "name"=>"auth_registry_profile", "checksum"=>"", "files"=>[], "id"=>10, "arch"=>"x86_64", "enhancementErrata"=>0}
And
I wait at most 300 seconds until image "auth_registry_profile" with version "latest" is inspected successfully via API
0s
And
I wait until no Salt job is running on "build_host"
0s
And
I refresh the page
0s
Then
table row for "auth_registry_profile" should contain "1"
0s
@skip_if_github_validation
@build_host
@scope_building_container_images
@auth_registry
@skip_if_github_validation
Scenario: Check the list of packages is not empty
And
the list of packages of image "auth_registry_profile" with version "latest" is not empty
00:00:01.557
+ Show Error
+ Show Info
+ Screenshot
the list of image packages is empty (ScriptError) ./features/step_definitions/docker_steps.rb:143:in `/^the list of packages of image "([^"]*)" with version "([^"]*)" is not empty$/' features/secondary/buildhost_docker_auth_registry.feature:53:in `the list of packages of image "auth_registry_profile" with version "latest" is not empty'
List of images: [{"external"=>false, "name"=>"auth_registry_profile", "checksum"=>"", "obsolete"=>false, "id"=>10, "arch"=>"x86_64-redhat-linux", "type"=>"dockerfile", "version"=>"latest", "storeLabel"=>"auth_registry", "revision"=>0}]
Image Details: {"outdatedPackages"=>0, "buildServerId"=>1000010004, "obsolete"=>false, "bugErrata"=>0, "installedPackages"=>0, "type"=>"dockerfile", "version"=>"latest", "storeLabel"=>"auth_registry", "revision"=>0, "securityErrata"=>0, "buildStatus"=>"failed", "external"=>false, "profileLabel"=>"auth_registry_profile", "name"=>"auth_registry_profile", "checksum"=>"", "files"=>[], "id"=>10, "arch"=>"x86_64", "enhancementErrata"=>0}
@skip_if_github_validation
@build_host
@scope_building_container_images
@auth_registry
@scc_credentials
Scenario: Cleanup: remove Docker profile for the authenticated image store
When
I follow the left menu "Images > Profiles"
00:00:00.085
And
I check the row with the "auth_registry_profile" text
00:00:00.125
And
I click on "Delete"
00:00:00.081
And
I click on the red confirmation button
00:00:00.070
And
I should see a "Image profile has been deleted." text
00:00:00.162
And
I wait until no Salt job is running on "build_host"
00:00:02.002
@skip_if_github_validation
@build_host
@scope_building_container_images
@auth_registry
Scenario: Cleanup: remove authenticated image store
When
I follow the left menu "Images > Stores"
00:00:00.071
And
I check the row with the "auth_registry" text
00:00:00.158
And
I click on "Delete"
00:00:00.070
And
I click on the red confirmation button
00:00:00.065
And
I should see a "Image store has been deleted." text
00:00:00.168