Sha256: 9155cf8cde150b5abf0d6722e025e6d339f0807e84ec12f6ac462e93dcc61d0e

Contents?: true

Size: 789 Bytes

Versions: 23

Compression:

Stored size: 789 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'
require 'puppet/network/authorization'

describe Puppet::Network::Authorization do
  class AuthTest
    include Puppet::Network::Authorization
  end

  subject { AuthTest.new }

  describe "when creating an authconfig object" do
    it "creates default ACL entries if no file has been read" do
      # Other tests may have created an authconfig, so we have to undo that.
      Puppet::Network::AuthConfigLoader.instance_variable_set(:@auth_config, nil)
      Puppet::Network::AuthConfigLoader.instance_variable_set(:@auth_config_file, nil)

      Puppet::Network::AuthConfigParser.expects(:new_from_file).raises Errno::ENOENT
      Puppet::Network::AuthConfig.any_instance.expects(:insert_default_acl)

      subject.authconfig
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
puppet-3.4.3 spec/unit/network/authorization_spec.rb
puppet-3.4.2 spec/unit/network/authorization_spec.rb
puppet-3.4.1 spec/unit/network/authorization_spec.rb
puppet-3.4.0 spec/unit/network/authorization_spec.rb
puppet-3.4.0.rc2 spec/unit/network/authorization_spec.rb
puppet-3.4.0.rc1 spec/unit/network/authorization_spec.rb
puppet-3.3.2 spec/unit/network/authorization_spec.rb
puppet-3.3.1 spec/unit/network/authorization_spec.rb
puppet-3.3.1.rc3 spec/unit/network/authorization_spec.rb
puppet-3.3.1.rc2 spec/unit/network/authorization_spec.rb
puppet-3.3.1.rc1 spec/unit/network/authorization_spec.rb
puppet-3.3.0 spec/unit/network/authorization_spec.rb
puppet-3.3.0.rc3 spec/unit/network/authorization_spec.rb
puppet-3.3.0.rc2 spec/unit/network/authorization_spec.rb
puppet-3.2.4 spec/unit/network/authorization_spec.rb
puppet-3.2.3 spec/unit/network/authorization_spec.rb
puppet-3.2.3.rc1 spec/unit/network/authorization_spec.rb
puppet-3.2.2 spec/unit/network/authorization_spec.rb
puppet-3.2.1 spec/unit/network/authorization_spec.rb
puppet-3.2.1.rc1 spec/unit/network/authorization_spec.rb