Sha256: 3fdd15e64e019bdf576ffa2deb690b5b2d428e58a18427c8dba57f383fbc208e

Contents?: true

Size: 609 Bytes

Versions: 618

Compression:

Stored size: 609 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 { is_expected.to 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
    expect(subject.target.class.name).to eq(:store_configs_testing)
  end
end

Version data entries

618 entries across 618 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/shared_behaviours/store_configs_terminus.rb
puppet-8.3.0-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-8.3.0-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-8.3.0-universal-darwin spec/shared_behaviours/store_configs_terminus.rb
puppet-8.4.0 spec/shared_behaviours/store_configs_terminus.rb
puppet-8.4.0-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-8.4.0-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-8.4.0-universal-darwin spec/shared_behaviours/store_configs_terminus.rb
puppet-7.28.0 spec/shared_behaviours/store_configs_terminus.rb
puppet-7.28.0-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-7.28.0-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-7.28.0-universal-darwin spec/shared_behaviours/store_configs_terminus.rb
puppet-8.3.1 spec/shared_behaviours/store_configs_terminus.rb
puppet-8.3.1-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-8.3.1-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-8.3.1-universal-darwin spec/shared_behaviours/store_configs_terminus.rb
puppet-7.27.0 spec/shared_behaviours/store_configs_terminus.rb
puppet-7.27.0-x86-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-7.27.0-x64-mingw32 spec/shared_behaviours/store_configs_terminus.rb
puppet-7.27.0-universal-darwin spec/shared_behaviours/store_configs_terminus.rb