X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Faliases%2Fhttpurl_spec.rb;fp=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Faliases%2Fhttpurl_spec.rb;h=0000000000000000000000000000000000000000;hb=131e09855e065be940e104d9ab0f18940cc76257;hp=fd49a47ce30ec99ad8e6ac9a569c99805f86106c;hpb=407d322498f4fde815abf381007fbecfe5c10b2b;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/aliases/httpurl_spec.rb b/3rdparty/modules/stdlib/spec/aliases/httpurl_spec.rb deleted file mode 100644 index fd49a47ce..000000000 --- a/3rdparty/modules/stdlib/spec/aliases/httpurl_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -require 'spec_helper' - -if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0 - describe 'test::httpurl', type: :class do - describe 'valid handling' do - %w{ - https://hello.com - https://notcreative.org - https://canstillaccepthttps.co.uk - http://anhttp.com - http://runningoutofideas.gov - http:// - http://graphemica.com/❤ - http://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", - "hts://graphemica.com/❤", - "https: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::HTTPUrl/) } - end - end - end - - end - end -end