Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2017-11-16 12:35:27 +0300
committerTiago <tiagonbotelho@hotmail.com>2017-11-16 13:23:27 +0300
commit088cbcbbd02bdc532a11bcd3f07c3638fd70906d (patch)
tree2d6009b4e91a12997f0354478a956213c6ff36ac /spec
parent62f3f9ef368e15e14a509dbd7612910c249bae80 (diff)
Merge branch 'fix/gb/update-registry-path-reference-regexp' into 'master'
Update container repository path reference Closes #40199 See merge request gitlab-org/gitlab-ce!15417 (cherry picked from commit e07b0bd2954d1c95499d3303289bef0a17296667) f4df4f9e Update container repository path reference 3e3c84a7 Add changelog for container repository path update
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/container_registry/path_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/lib/container_registry/path_spec.rb b/spec/lib/container_registry/path_spec.rb
index 84cacdd3f0d..010deae822c 100644
--- a/spec/lib/container_registry/path_spec.rb
+++ b/spec/lib/container_registry/path_spec.rb
@@ -86,6 +86,24 @@ describe ContainerRegistry::Path do
it { is_expected.to be_valid }
end
+
+ context 'when path contains double underscore' do
+ let(:path) { 'my/repository__name' }
+
+ it { is_expected.to be_valid }
+ end
+
+ context 'when path contains invalid separator with dot' do
+ let(:path) { 'some/registry-.name' }
+
+ it { is_expected.not_to be_valid }
+ end
+
+ context 'when path contains invalid separator with underscore' do
+ let(:path) { 'some/registry._name' }
+
+ it { is_expected.not_to be_valid }
+ end
end
describe '#has_repository?' do