summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-13 09:18:46 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-13 09:18:46 +0200
commit37ab389139a21a8ab10ddbbddec1b61f720b27ab (patch)
tree0f0694c56278f855c5d77e092e32974f7b0ce58e
parent22726942fe0b6c11c20de070cc9784de12ca2ce6 (diff)
downloadgitlab-ce-37ab389139a21a8ab10ddbbddec1b61f720b27ab.tar.gz
Revert "Fix registry for projects with uppercases in path"
This reverts commit 22726942fe0b6c11c20de070cc9784de12ca2ce6.
-rw-r--r--lib/container_registry/path.rb2
-rw-r--r--spec/lib/container_registry/path_spec.rb22
2 files changed, 4 insertions, 20 deletions
diff --git a/lib/container_registry/path.rb b/lib/container_registry/path.rb
index 30828bb6565..a4b5f2aba6c 100644
--- a/lib/container_registry/path.rb
+++ b/lib/container_registry/path.rb
@@ -15,7 +15,7 @@ module ContainerRegistry
LEVELS_SUPPORTED = 3
def initialize(path)
- @path = path.downcase
+ @path = path
end
def valid?
diff --git a/spec/lib/container_registry/path_spec.rb b/spec/lib/container_registry/path_spec.rb
index f3b3a9a715f..b9c4572c269 100644
--- a/spec/lib/container_registry/path_spec.rb
+++ b/spec/lib/container_registry/path_spec.rb
@@ -33,20 +33,10 @@ describe ContainerRegistry::Path do
end
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
- expect(subject.to_s).to eq 'some/image'
- 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
+ it 'return a string with a repository path' do
+ expect(subject.to_s).to eq path
end
end
@@ -80,12 +70,6 @@ describe ContainerRegistry::Path do
it { is_expected.to be_valid }
end
-
- context 'when path contains uppercase letters' do
- let(:path) { 'Some/Registry' }
-
- it { is_expected.to be_valid }
- end
end
describe '#has_repository?' do