dependency_proxy.rb 772 Bytes
Newer Older
1
# frozen_string_literal: true
2

3
FactoryBot.define do
Ryan Cobb's avatar
Ryan Cobb committed
4
  factory :dependency_proxy_blob, class: 'DependencyProxy::Blob' do
5
    group
6
    size { 1234 }
7
    file { fixture_file_upload('spec/fixtures/dependency_proxy/a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4.gz') }
8
    file_name { 'a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4.gz' }
9
  end
10 11 12

  factory :dependency_proxy_manifest, class: 'DependencyProxy::Manifest' do
    group
13
    size { 1234 }
14
    file { fixture_file_upload('spec/fixtures/dependency_proxy/manifest') }
15
    digest { 'sha256:d0710affa17fad5f466a70159cc458227bd25d4afb39514ef662ead3e6c99515' }
16
    file_name { 'alpine:latest.json' }
17
    content_type { 'application/vnd.docker.distribution.manifest.v2+json' }
18
  end
19
end