Sha256: babb1b2956c28ccef73f80fa6ea4859a54f997d3a2f25a0c8448a2f4d7cf5c92

Contents?: true

Size: 879 Bytes

Versions: 148

Compression:

Stored size: 879 Bytes

Contents

require 'spec_helper'

require 'puppet/transaction/report'
require 'puppet/indirector/report/yaml'

describe Puppet::Transaction::Report::Yaml do
  it "should be a subclass of the Yaml terminus" do
    expect(Puppet::Transaction::Report::Yaml.superclass).to equal(Puppet::Indirector::Yaml)
  end

  it "should have documentation" do
    expect(Puppet::Transaction::Report::Yaml.doc).not_to be_nil
  end

  it "should be registered with the report indirection" do
    indirection = Puppet::Indirector::Indirection.instance(:report)
    expect(Puppet::Transaction::Report::Yaml.indirection).to equal(indirection)
  end

  it "should have its name set to :yaml" do
    expect(Puppet::Transaction::Report::Yaml.name).to eq(:yaml)
  end

  it "should unconditionally save/load from the --lastrunreport setting" do
    expect(subject.path(:me)).to eq(Puppet[:lastrunreport])
  end
end

Version data entries

148 entries across 148 versions & 1 rubygems

Version Path
puppet-6.19.1 spec/unit/indirector/report/yaml_spec.rb
puppet-6.19.1-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-6.19.1-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-6.19.1-universal-darwin spec/unit/indirector/report/yaml_spec.rb
puppet-5.5.22 spec/unit/indirector/report/yaml_spec.rb
puppet-5.5.22-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-5.5.22-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-5.5.22-universal-darwin spec/unit/indirector/report/yaml_spec.rb
puppet-6.19.0 spec/unit/indirector/report/yaml_spec.rb
puppet-6.19.0-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-6.19.0-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-6.19.0-universal-darwin spec/unit/indirector/report/yaml_spec.rb
puppet-6.18.0 spec/unit/indirector/report/yaml_spec.rb
puppet-6.18.0-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-6.18.0-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-6.18.0-universal-darwin spec/unit/indirector/report/yaml_spec.rb
puppet-6.17.0 spec/unit/indirector/report/yaml_spec.rb
puppet-6.17.0-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-6.17.0-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-6.17.0-universal-darwin spec/unit/indirector/report/yaml_spec.rb