diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-08-19 03:06:46 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-08-19 03:06:46 +0000 |
commit | d03ccb088b49af4736b542f35383a3e698fd1c64 (patch) | |
tree | 5f45756a263b7e707a589c7a0f1b48104b7d0761 /spec | |
parent | c34163c79b14eee8b67fb1fbfb4eadd820b45166 (diff) | |
parent | 8c39646bc2822181bd2f60aa9ae5fffef496698e (diff) |
Merge "Allow configuring multiple insecure registries"
Diffstat (limited to 'spec')
-rw-r--r-- | spec/classes/tripleo_profile_base_docker_spec.rb | 13 |
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, |