File: container_registry

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (36 lines) | stat: -rw-r--r-- 2,369 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$ sudo -u gitlab -E -H bundle exec rspec spec/lib/container_registry/
Error deleting useless .secret file: Permission denied @ unlink_internal - /usr/share/gitlab/.secret
DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.
Please register a mime type using `register_mime_type` then
use `register_compressor` or `register_transformer`.
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
 (called from block (2 levels) in <class:Railtie> at /usr/lib/ruby/vendor_ruby/sass/rails/railtie.rb:57)
DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.
Please register a mime type using `register_mime_type` then
use `register_compressor` or `register_transformer`.
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
 (called from block (2 levels) in <class:Railtie> at /usr/lib/ruby/vendor_ruby/sass/rails/railtie.rb:58)
...........F...............................

Failures:

  1) ContainerRegistry::Blob#data when externally stored for invalid file should raise ArgumentError with "invalid address"
     Failure/Error: it { expect{ subject }.to raise_error(ArgumentError, 'invalid address') }

       expected ArgumentError with "invalid address", got #<NoMethodError: undefined method `request_uri' for #<URI::Generic file:/etc/passwd>> with backtrace:
         # ./lib/container_registry/client.rb:79:in `redirect_response'
         # ./lib/container_registry/client.rb:69:in `response_body'
         # ./lib/container_registry/client.rb:37:in `blob'
         # ./lib/container_registry/blob.rb:45:in `data'
         # ./spec/lib/container_registry/blob_spec.rb:66:in `block (3 levels) in <top (required)>'
         # ./spec/lib/container_registry/blob_spec.rb:107:in `block (6 levels) in <top (required)>'
         # ./spec/lib/container_registry/blob_spec.rb:107:in `block (5 levels) in <top (required)>'
     # ./spec/lib/container_registry/blob_spec.rb:107:in `block (5 levels) in <top (required)>'

Finished in 20.94 seconds (files took 8.65 seconds to load)
43 examples, 1 failure

Failed examples:

rspec ./spec/lib/container_registry/blob_spec.rb:107 # ContainerRegistry::Blob#data when externally stored for invalid file should raise ArgumentError with "invalid address"