@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.154
And
I follow "Create"
00:00:00.328
And
I enter "auth_registry" as "label"
00:00:00.115
Checkbox useCredentials not checked. (ScriptError) ./features/step_definitions/navigation_steps.rb:179:in `/^I check "([^"]*)"$/' features/secondary/buildhost_docker_auth_registry.feature:20:in `I check "useCredentials"'
And
I enter URI, username and password for registry
0s
And
I click on "create-btn"
0s
Then
I wait until I see "registry" text
0s
@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.083
And
I follow "Create"
00:00:00.331
And
I enter "auth_registry_profile" as "label"
00:00:00.202
Unable to find xpath ".//*[contains(@class, 'data-testid-imageStore-child__option') and contains(., 'auth_registry')]" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:212:in `/^I select "([^"]*)" from "([^"]*)"$/' features/secondary/buildhost_docker_auth_registry.feature:30:in `I select "auth_registry" from "imageStore"'
And
I select "1-SUSE-KEY-x86_64" from "activationKey"
0s
And
I enter "Docker/authprofile" relative to profiles as "path"
0s
And
I click on "create-btn"
0s
Then
I wait until I see "auth_registry_profile" text
0s
@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.089
Unable to find xpath ".//*[contains(@class, 'data-testid-profileId-child__option') and contains(., 'auth_registry_profile')]" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:212:in `/^I select "([^"]*)" from "([^"]*)"$/' features/secondary/buildhost_docker_auth_registry.feature:39:in `I select "auth_registry_profile" from "profileId"'
And
I enter "latest" as "version"
0s
And
I select the hostname of "build_host" from "buildHostId"
0s
And
I click on "submit-btn"
0s
Then
I wait until I see "auth_registry_profile" text
0s
When
I wait at most 900 seconds until image "auth_registry_profile" with version "latest" is built successfully via API
0s
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:00.777
+ Show Error
+ Show Info
+ Screenshot
unable to find the image id (ScriptError) ./features/step_definitions/docker_steps.rb:139: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: []
@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.087
Unable to find xpath "//table/tbody/tr[.//td[contains(.,'auth_registry_profile')]]//input[@type='checkbox']" (Capybara::ElementNotFound) ./features/support/navigation_step_helper.rb:32:in `toggle_checkbox_in_list' ./features/step_definitions/navigation_steps.rb:911:in `/^I check the row with the "([^"]*)" text$/' features/secondary/buildhost_docker_auth_registry.feature:58:in `I check the row with the "auth_registry_profile" text'
And
I click on "Delete"
0s
And
I click on the red confirmation button
0s
And
I should see a "Image profile has been deleted." text
0s
And
I wait until no Salt job is running on "build_host"
0s
@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.078
Unable to find xpath "//table/tbody/tr[.//td[contains(.,'auth_registry')]]//input[@type='checkbox']" (Capybara::ElementNotFound) ./features/support/navigation_step_helper.rb:32:in `toggle_checkbox_in_list' ./features/step_definitions/navigation_steps.rb:911:in `/^I check the row with the "([^"]*)" text$/' features/secondary/buildhost_docker_auth_registry.feature:66:in `I check the row with the "auth_registry" text'
And
I click on "Delete"
0s
And
I click on the red confirmation button
0s
And
I should see a "Image store has been deleted." text
0s
@skip_if_github_validation
@build_host
@scope_building_container_images
@auth_registry
Scenario: Cleanup: delete registry image
When
I delete the image "auth_registry_profile" with version "latest" via API calls
00:00:00.785
+ Show Info
Image auth_registry_profile with version latest does not exist, skipping