Sha256: 4b4857d92d141f7f3b3b8599694c89c13e55576f7003a4e6df6c08558b27b928
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 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 = FactoryBot.create :smart_proxy, :with_salt_feature Resolv.any_instance.stubs(:getnames).returns([proxy.to_s]) host = FactoryBot.create :host get :node, params: { :id => host, :format => 'yml' } assert_response :success end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_salt-10.1.0 | test/functional/minions_controller_test.rb |
foreman_salt-10.0.0 | test/functional/minions_controller_test.rb |