aboutsummaryrefslogtreecommitdiffstats
path: root/spec/classes
diff options
context:
space:
mode:
authorJiri Stransky <jistr@redhat.com>2017-08-10 18:16:46 +0200
committerJiri Stransky <jistr@redhat.com>2017-08-17 16:55:50 +0200
commit8c39646bc2822181bd2f60aa9ae5fffef496698e (patch)
tree98123072276d3d0db756007d76b804f7a5ec2133 /spec/classes
parent4600841dbcc0ee970256a6e2f35056c3e624bf98 (diff)
Allow configuring multiple insecure registries
If we're using local registries, we may want to use different registries e.g. for Ceph and for OpenStack. We allow multiple registries in general for this purpose, and we should also allow it in the insecure registry configuration. Change-Id: I5cddd20a123a85516577bde1b793a30d43171285 Related-Bug: #1709310
Diffstat (limited to 'spec/classes')
-rw-r--r--spec/classes/tripleo_profile_base_docker_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/classes/tripleo_profile_base_docker_spec.rb b/spec/classes/tripleo_profile_base_docker_spec.rb
index 2a15362..146d784 100644
--- a/spec/classes/tripleo_profile_base_docker_spec.rb
+++ b/spec/classes/tripleo_profile_base_docker_spec.rb
@@ -50,6 +50,19 @@ describe 'tripleo::profile::base::docker' do
}
end
+ context 'with step 1 and insecure_registries configured' do
+ let(:params) { {
+ :insecure_registries => ['foo:8787', 'bar'],
+ :step => 1,
+ } }
+
+ it {
+ is_expected.to contain_augeas('docker-sysconfig-registry').with_changes([
+ "set INSECURE_REGISTRY '\"--insecure-registry foo:8787 --insecure-registry bar\"'",
+ ])
+ }
+ end
+
context 'with step 1 and insecure_registry configured but no docker_namespace' do
let(:params) { {
:insecure_registry => true,