Sha256: 27caa696218bad77033b15c98713a68449bdce1f4702902eced52d92684f528d

Contents?: true

Size: 963 Bytes

Versions: 278

Compression:

Stored size: 963 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'

require 'puppet/transaction/report'
require 'puppet/indirector/report/msgpack'

describe Puppet::Transaction::Report::Msgpack, :if => Puppet.features.msgpack? do
  it "should be a subclass of the Msgpack terminus" do
    expect(Puppet::Transaction::Report::Msgpack.superclass).to equal(Puppet::Indirector::Msgpack)
  end

  it "should have documentation" do
    expect(Puppet::Transaction::Report::Msgpack.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::Msgpack.indirection).to equal(indirection)
  end

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

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

Version data entries

278 entries across 278 versions & 1 rubygems

Version Path
puppet-5.5.6 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.6-x86-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.6-x64-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.6-universal-darwin spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.3 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.3-x86-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.3-x64-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.3-universal-darwin spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.2 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.2-x86-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.2-x64-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.5.2-universal-darwin spec/unit/indirector/report/msgpack_spec.rb
puppet-5.3.7 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.3.7-x86-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.3.7-x64-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-5.3.7-universal-darwin spec/unit/indirector/report/msgpack_spec.rb
puppet-4.10.12 spec/unit/indirector/report/msgpack_spec.rb
puppet-4.10.12-x86-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-4.10.12-x64-mingw32 spec/unit/indirector/report/msgpack_spec.rb
puppet-4.10.12-universal-darwin spec/unit/indirector/report/msgpack_spec.rb