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
f245d982
Commit
f245d982
authored
Oct 21, 2021
by
Tiffany Rea
Committed by
Sofia Vistas
Oct 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change test blob count from 2 to 1
parent
28faf53b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
qa/qa/specs/features/browser_ui/5_package/dependency_proxy_spec.rb
...cs/features/browser_ui/5_package/dependency_proxy_spec.rb
+5
-4
No files found.
qa/qa/specs/features/browser_ui/5_package/dependency_proxy_spec.rb
View file @
f245d982
...
...
@@ -22,6 +22,7 @@ module QA
let
(
:uri
)
{
URI
.
parse
(
Runtime
::
Scenario
.
gitlab_address
)
}
let
(
:gitlab_host_with_port
)
{
"
#{
uri
.
host
}
:
#{
uri
.
port
}
"
}
let
(
:dependency_proxy_url
)
{
"
#{
gitlab_host_with_port
}
/
#{
project
.
group
.
full_path
}
/dependency_proxy/containers"
}
let
(
:image_sha
)
{
'alpine@sha256:c3d45491770c51da4ef58318e3714da686bc7165338b7ab5ac758e75c7455efb'
}
before
do
Flow
::
Login
.
sign_in
...
...
@@ -63,15 +64,15 @@ module QA
apk add --no-cache openssl
true | openssl s_client -showcerts -connect gitlab.test:5050 > /usr/local/share/ca-certificates/gitlab.test.crt
update-ca-certificates
dockerd-entrypoint.sh || exit
dockerd-entrypoint.sh || exit
before_script:
- apk add curl jq grep
- docker login -u "$CI_DEPENDENCY_PROXY_USER" -p "$CI_DEPENDENCY_PROXY_PASSWORD" "$CI_DEPENDENCY_PROXY_SERVER"
script:
- docker pull
#{
dependency_proxy_url
}
/
alpine:latest
- docker pull
#{
dependency_proxy_url
}
/
#{
image_sha
}
- TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq --raw-output .token)
- 'curl --head --header "Authorization: Bearer $TOKEN" "https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest" 2>&1'
- docker pull
#{
dependency_proxy_url
}
/
alpine:latest
- docker pull
#{
dependency_proxy_url
}
/
#{
image_sha
}
- 'curl --head --header "Authorization: Bearer $TOKEN" "https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest" 2>&1'
tags:
- "runner-for-
#{
project
.
name
}
"
...
...
@@ -95,7 +96,7 @@ module QA
Page
::
Group
::
Menu
.
perform
(
&
:go_to_dependency_proxy
)
Page
::
Group
::
DependencyProxy
.
perform
do
|
index
|
expect
(
index
).
to
have_blob_count
(
"Contains
2
blobs of images"
)
expect
(
index
).
to
have_blob_count
(
"Contains
1
blobs of images"
)
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