Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6a96f130
Commit
6a96f130
authored
Nov 26, 2021
by
Sofia Vistas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 3 latest docker versions on Container Registry test
parent
9d172d15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
66 deletions
+69
-66
qa/qa/specs/features/browser_ui/5_package/container_registry/container_registry_omnibus_spec.rb
...age/container_registry/container_registry_omnibus_spec.rb
+69
-66
No files found.
qa/qa/specs/features/browser_ui/5_package/container_registry/container_registry_omnibus_spec.rb
View file @
6a96f130
...
...
@@ -48,6 +48,7 @@ module QA
project
.
remove_via_api!
end
context
"when tls is disabled"
do
where
(
:authentication_token_type
,
:token_name
)
do
:personal_access_token
|
'Personal Access Token'
:project_deploy_token
|
'Deploy Token'
...
...
@@ -77,8 +78,12 @@ module QA
end
end
context
"when tls is disabled"
do
it
"using a
#{
params
[
:token_name
]
}
, pushes image and deletes tag"
,
:registry
do
where
(
:docker_client_version
)
do
%w[docker:18.09.9 docker:19.03.12 docker:20.10]
end
with_them
do
it
"pushes image and deletes tag"
,
:registry
do
Support
::
Retrier
.
retry_on_exception
(
max_attempts:
3
,
sleep_interval:
2
)
do
Resource
::
Repository
::
Commit
.
fabricate_via_api!
do
|
commit
|
commit
.
project
=
project
...
...
@@ -88,10 +93,10 @@ module QA
content:
<<~
YAML
build:
image: docker:19.03.12
image: "
#{
docker_client_version
}
"
stage: build
services:
- name: docker:19.03.12-dind
- name: "
#{
docker_client_version
}
-dind"
command: ["--insecure-registry=gitlab.test:5050"]
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
...
...
@@ -123,9 +128,7 @@ module QA
registry
.
click_on_image
(
project
.
path_with_namespace
)
expect
(
registry
).
to
have_tag
(
'master'
)
registry
.
click_delete
expect
(
registry
).
not_to
have_tag
(
'master'
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment