File: hiera_spec.rb

package info (click to toggle)
puppet-agent 7.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,092 kB
  • sloc: ruby: 245,074; sh: 456; makefile: 38; xml: 33
file content (19 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'spec_helper'
require 'puppet/indirector/data_binding/hiera'

describe Puppet::DataBinding::Hiera do
  it "should have documentation" do
    expect(Puppet::DataBinding::Hiera.doc).not_to be_nil
  end

  it "should be registered with the data_binding indirection" do
    indirection = Puppet::Indirector::Indirection.instance(:data_binding)
    expect(Puppet::DataBinding::Hiera.indirection).to equal(indirection)
  end

  it "should have its name set to :hiera" do
    expect(Puppet::DataBinding::Hiera.name).to eq(:hiera)
  end

  it_should_behave_like "Hiera indirection", Puppet::DataBinding::Hiera, my_fixture_dir
end