Sha256: 6d5d839549ca40eefb9d591552d2d4ee0d2d435b13849c3b650520c0f7a675ba
Contents?: true
Size: 543 Bytes
Versions: 3
Compression:
Stored size: 543 Bytes
Contents
require 'test_plugin_helper' class HostsControllerTest < ActionController::TestCase test 'salt smart proxy should get salt external node' do User.current = nil Setting[:restrict_registered_puppetmasters] = true Setting[:require_ssl_puppetmasters] = false proxy = FactoryGirl.create :smart_proxy, :with_salt_feature Resolv.any_instance.stubs(:getnames).returns([proxy.to_s]) host = FactoryGirl.create :host get :salt_external_node, {:name => host.name, :format => "yml"} assert_response :success end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
foreman_salt-0.0.4 | test/functional/hosts_controller_test.rb |
foreman_salt-0.0.3 | test/functional/hosts_controller_test.rb |
foreman_salt-0.0.2 | test/functional/hosts_controller_test.rb |