X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Faliases%2Fhttpsurl_spec.rb;fp=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Faliases%2Fhttpsurl_spec.rb;h=0000000000000000000000000000000000000000;hb=131e09855e065be940e104d9ab0f18940cc76257;hp=3e51118ca67326405b87d4400dba00a9f789a889;hpb=407d322498f4fde815abf381007fbecfe5c10b2b;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/aliases/httpsurl_spec.rb b/3rdparty/modules/stdlib/spec/aliases/httpsurl_spec.rb deleted file mode 100644 index 3e51118ca..000000000 --- a/3rdparty/modules/stdlib/spec/aliases/httpsurl_spec.rb +++ /dev/null @@ -1,44 +0,0 @@ -require 'spec_helper' - -if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0 - describe 'test::httpsurl', type: :class do - describe 'valid handling' do - %w{ - https://hello.com - https://notcreative.org - https://notexciting.co.uk - https://graphemica.com/❤ - https://graphemica.com/緩 - }.each do |value| - describe value.inspect do - let(:params) {{ value: value }} - it { is_expected.to compile } - end - end - end - - describe 'invalid path handling' do - context 'garbage inputs' do - [ - nil, - [ nil ], - [ nil, nil ], - { 'foo' => 'bar' }, - { }, - '', - "httds://notquiteright.org", - "hptts:/nah", - "https;//notrightbutclose.org", - "http://graphemica.com/❤", - "http://graphemica.com/緩" - ].each do |value| - describe value.inspect do - let(:params) {{ value: value }} - it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::HTTPSUrl/) } - end - end - end - - end - end -end