Commit 7ec3c2dc authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add method that returns location of registry image

parent 046f4086
......@@ -29,6 +29,10 @@ module ContainerRegistry
"#{repository.path}:#{name}"
end
def location
"#{repository.location}:#{name}"
end
def [](key)
return unless manifest
......
......@@ -50,6 +50,13 @@ describe ContainerRegistry::Tag do
end
end
describe '#location' do
it 'returns a full location of the tag' do
expect(tag.location)
.to eq 'registry.gitlab/group/test:tag'
end
end
context 'manifest processing' do
context 'schema v1' do
before do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment