Sha256: fd0a3f23499b13b14bcdbef71d3651366dbfb1e029b74da76008ae82fc3aa4df

Contents?: true

Size: 1 KB

Versions: 19

Compression:

Stored size: 1 KB

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../../../spec_helper'

require 'puppet/indirector/report/rest'

describe Puppet::Transaction::Report::Rest do
  it "should be a subclass of Puppet::Indirector::REST" do
    Puppet::Transaction::Report::Rest.superclass.should equal(Puppet::Indirector::REST)
  end

  it "should use the :report_server setting in preference to :reportserver" do
    Puppet.settings[:reportserver] = "reportserver"
    Puppet.settings[:report_server] = "report_server"
    Puppet::Transaction::Report::Rest.server.should == "report_server"
  end

  it "should use the :report_server setting in preference to :server" do
    Puppet.settings[:server] = "server"
    Puppet.settings[:report_server] = "report_server"
    Puppet::Transaction::Report::Rest.server.should == "report_server"
  end

  it "should have a value for report_server and report_port" do
    Puppet::Transaction::Report::Rest.server.should_not be_nil
    Puppet::Transaction::Report::Rest.port.should_not be_nil
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
puppet-2.6.18 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.17 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.16 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.15 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.14 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.13 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.12 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.11 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.10 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.9 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.8 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.7 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.6 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.5 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.4 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.3 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.2 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.1 spec/unit/indirector/report/rest_spec.rb
puppet-2.6.0 spec/unit/indirector/report/rest_spec.rb