X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fkeystone%2Fspec%2Funit%2Ftype%2Fkeystone_tenant_spec.rb;fp=3rdparty%2Fmodules%2Fkeystone%2Fspec%2Funit%2Ftype%2Fkeystone_tenant_spec.rb;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=978fa2292a5a7e8c3628cfabdf47b88a22e16b99;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/keystone/spec/unit/type/keystone_tenant_spec.rb b/3rdparty/modules/keystone/spec/unit/type/keystone_tenant_spec.rb deleted file mode 100644 index 978fa2292..000000000 --- a/3rdparty/modules/keystone/spec/unit/type/keystone_tenant_spec.rb +++ /dev/null @@ -1,25 +0,0 @@ -require 'spec_helper' -require 'puppet' -require 'puppet/type/keystone_tenant' - -describe Puppet::Type.type(:keystone_tenant) do - - before :each do - @project = Puppet::Type.type(:keystone_tenant).new( - :name => 'foo', - :domain => 'foo-domain', - ) - - @domain = @project.parameter('domain') - end - - it 'should not be in sync for domain changes' do - expect { @domain.insync?('not-the-domain') }.to raise_error(Puppet::Error, /The domain cannot be changed from/) - expect { @domain.insync?(nil) }.to raise_error(Puppet::Error, /The domain cannot be changed from/) - end - - it 'should be in sync if domain is the same' do - expect(@domain.insync?('foo-domain')).to be true - end - -end