Project

General

Profile

Revision 9ea40591

Added by Daniel Lobato Garcia over 6 years ago

Fixes #14181 - Validate registry URL and attempt login

In order to avoid users trying to create containers in an external
registry that doesn't exist, we should provide some preventative
measures.

View differences:

test/factories/docker_registry.rb
6 6
    sequence(:password) { |n| "password#{n}" }
7 7
  end
8 8

  
9
  after(:build) do |registry|
10
    registry.stubs(:attempt_login)
11
  end
12

  
9 13
  trait :with_location do
10 14
    locations { [FactoryGirl.build(:location)] }
11 15
  end

Also available in: Unified diff