Sha256: 6b661c2e8e2526d5c26416318f0e0982067d91a201334db23e845d067f534a33

Contents?: true

Size: 568 Bytes

Versions: 24

Compression:

Stored size: 568 Bytes

Contents

require 'test_plugin_helper'

module ForemanSalt
  class MinionsControllerTest < ActionController::TestCase
    test 'salt smart proxy should get salt external node' do
      User.current = nil
      Setting[:restrict_registered_smart_proxies] = true
      Setting[:require_ssl_smart_proxies] = false

      proxy = FactoryGirl.create :smart_proxy, :with_salt_feature
      Resolv.any_instance.stubs(:getnames).returns([proxy.to_s])

      host = FactoryGirl.create :host
      get :node, :id => host, :format => 'yml'
      assert_response :success
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
foreman_salt-8.0.4 test/functional/minions_controller_test.rb
foreman_salt-9.0.1 test/functional/minions_controller_test.rb
foreman_salt-9.0.0 test/functional/minions_controller_test.rb
foreman_salt-8.0.3 test/functional/minions_controller_test.rb
foreman_salt-8.0.2 test/functional/minions_controller_test.rb
foreman_salt-8.0.1 test/functional/minions_controller_test.rb
foreman_salt-7.0.3 test/functional/minions_controller_test.rb
foreman_salt-8.0.0 test/functional/minions_controller_test.rb
foreman_salt-7.0.2 test/functional/minions_controller_test.rb
foreman_salt-6.0.1 test/functional/minions_controller_test.rb
foreman_salt-7.0.1 test/functional/minions_controller_test.rb
foreman_salt-7.0.0 test/functional/minions_controller_test.rb
foreman_salt-6.0.0 test/functional/minions_controller_test.rb
foreman_salt-5.0.1 test/functional/minions_controller_test.rb
foreman_salt-5.0.0 test/functional/minions_controller_test.rb
foreman_salt-4.0.1 test/functional/minions_controller_test.rb
foreman_salt-4.0.0 test/functional/minions_controller_test.rb
foreman_salt-3.0.2 test/functional/minions_controller_test.rb
foreman_salt-3.0.1 test/functional/minions_controller_test.rb
foreman_salt-3.0.0 test/functional/minions_controller_test.rb