Sha256: 8d2446b0f046bdee3bb4d8f94f3ee62d39172ec812e6e759a43dd62a1f7750db

Contents?: true

Size: 719 Bytes

Versions: 340

Compression:

Stored size: 719 Bytes

Contents

require 'spec_helper'

require 'puppet/node'
require 'puppet/indirector/node/msgpack'

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

  it "should have documentation" do
    expect(Puppet::Node::Msgpack.doc).not_to be_nil
  end

  it "should be registered with the configuration store indirection" do
    indirection = Puppet::Indirector::Indirection.instance(:node)
    expect(Puppet::Node::Msgpack.indirection).to equal(indirection)
  end

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

Version data entries

340 entries across 340 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/unit/indirector/node/msgpack_spec.rb
puppet-8.3.0-x86-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-8.3.0-x64-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-8.3.0-universal-darwin spec/unit/indirector/node/msgpack_spec.rb
puppet-8.4.0 spec/unit/indirector/node/msgpack_spec.rb
puppet-8.4.0-x86-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-8.4.0-x64-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-8.4.0-universal-darwin spec/unit/indirector/node/msgpack_spec.rb
puppet-7.28.0 spec/unit/indirector/node/msgpack_spec.rb
puppet-7.28.0-x86-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-7.28.0-x64-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-7.28.0-universal-darwin spec/unit/indirector/node/msgpack_spec.rb
puppet-8.3.1 spec/unit/indirector/node/msgpack_spec.rb
puppet-8.3.1-x86-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-8.3.1-x64-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-8.3.1-universal-darwin spec/unit/indirector/node/msgpack_spec.rb
puppet-7.27.0 spec/unit/indirector/node/msgpack_spec.rb
puppet-7.27.0-x86-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-7.27.0-x64-mingw32 spec/unit/indirector/node/msgpack_spec.rb
puppet-7.27.0-universal-darwin spec/unit/indirector/node/msgpack_spec.rb