Sha256: 3b498d6f62de44f4589f4e5dff065be505dfdd82c1f5a5c9d6ced9037f15bc46

Contents?: true

Size: 594 Bytes

Versions: 129

Compression:

Stored size: 594 Bytes

Contents

shared_examples_for "a StoreConfigs terminus" do
  before :each do
    Puppet[:storeconfigs] = true
    Puppet[:storeconfigs_backend] = "store_configs_testing"
  end

  api = [:find, :search, :save, :destroy, :head]

  api.each do |name|
    it { should respond_to name }
  end

  it "should fail if an invalid backend is configured" do
    Puppet[:storeconfigs_backend] = "synergy"
    expect { subject }.to raise_error ArgumentError, /could not find terminus synergy/i
  end

  it "should wrap the declared backend" do
    subject.target.class.name.should == :store_configs_testing
  end
end

Version data entries

129 entries across 129 versions & 3 rubygems

Version Path
puppet-3.8.7 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.7-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.7-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.6 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.6-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.6-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.5 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.5-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.5-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.4 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.4-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.4-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.3 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.3-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.3-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.2 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.2-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.2-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.1 spec/shared_behaviours/store_configs_terminus.rb
puppet-3.8.1-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb