- it 'contains the apt::key' do
- should contain_apt__key(title).with({
- :key => title,
- :ensure => 'present',
- :key_server => 'pgp.mit.edu',
- })
- end
- it 'contains the apt_key' do
- should contain_apt_key(title).with({
- :id => title,
- :ensure => 'present',
- :source => nil,
- :server => params[:key_server],
- :content => nil,
- :keyserver_options => nil,
- })
- end
- it 'contains the apt_key present anchor' do
- should contain_anchor("apt_key #{title} present")
- end
- end
+ context "domain begin with dot" do
+ let(:params) do{
+ :server => '.pgp.mit.edu',
+ } end
+ it 'fails' do
+ expect { subject.call } .to raise_error(/does not match/)
+ end
+ end