3 require 'puppet/type/keystone_tenant'
5 describe Puppet::Type.type(:keystone_tenant) do
8 @project = Puppet::Type.type(:keystone_tenant).new(
10 :domain => 'foo-domain',
13 @domain = @project.parameter('domain')
16 it 'should not be in sync for domain changes' do
17 expect { @domain.insync?('not-the-domain') }.to raise_error(Puppet::Error, /The domain cannot be changed from/)
18 expect { @domain.insync?(nil) }.to raise_error(Puppet::Error, /The domain cannot be changed from/)
21 it 'should be in sync if domain is the same' do
22 expect(@domain.insync?('foo-domain')).to be true