Sha256: db207e5d0728b790a1f2485268ffafcf1799452af2a5f345d3d3a17eae2a55d1
Contents?: true
Size: 595 Bytes
Versions: 7
Compression:
Stored size: 595 Bytes
Contents
require 'test_plugin_helper' module ForemanSalt class MinionsControllerTest < ActionController::TestCase test 'salt smart proxy should get salt external node' do User.current = User.anonymous_admin 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
7 entries across 7 versions & 1 rubygems