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