Commit 37ab3891 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Revert "Fix registry for projects with uppercases in path"

This reverts commit 22726942.
parent 22726942
...@@ -15,7 +15,7 @@ module ContainerRegistry ...@@ -15,7 +15,7 @@ module ContainerRegistry
LEVELS_SUPPORTED = 3 LEVELS_SUPPORTED = 3
def initialize(path) def initialize(path)
@path = path.downcase @path = path
end end
def valid? def valid?
......
...@@ -33,20 +33,10 @@ describe ContainerRegistry::Path do ...@@ -33,20 +33,10 @@ describe ContainerRegistry::Path do
end end
describe '#to_s' do describe '#to_s' do
context 'when path does not have uppercase characters' do
let(:path) { 'some/image' } let(:path) { 'some/image' }
it 'return a string with a repository path' do it 'return a string with a repository path' do
expect(subject.to_s).to eq 'some/image' expect(subject.to_s).to eq path
end
end
context 'when path has uppercase characters' do
let(:path) { 'SoMe/ImAgE' }
it 'return a string with a repository path' do
expect(subject.to_s).to eq 'some/image'
end
end end
end end
...@@ -80,12 +70,6 @@ describe ContainerRegistry::Path do ...@@ -80,12 +70,6 @@ describe ContainerRegistry::Path do
it { is_expected.to be_valid } it { is_expected.to be_valid }
end end
context 'when path contains uppercase letters' do
let(:path) { 'Some/Registry' }
it { is_expected.to be_valid }
end
end end
describe '#has_repository?' do describe '#has_repository?' 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