From fd30b3d4972180b6e91d0180b140f32622c48b1d Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 3 Apr 2017 12:49:54 +0200 Subject: Ensure root container repository when visiting registry Root container repository is a images repository that had been created before 9.1, before we introduced multi-level images support. --- spec/factories/container_repositories.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/factories/container_repositories.rb') diff --git a/spec/factories/container_repositories.rb b/spec/factories/container_repositories.rb index 4919a03cdf2..3fcad9fd4b3 100644 --- a/spec/factories/container_repositories.rb +++ b/spec/factories/container_repositories.rb @@ -7,6 +7,10 @@ FactoryGirl.define do tags [] end + trait :root do + name '' + end + after(:build) do |repository, evaluator| next if evaluator.tags.to_a.none? -- cgit v1.2.1