Sha256: b51b7669c5a8f0e0323edaa3c6ba563104959e32824f9818c4a0fd9457669cd9

Contents?: true

Size: 465 Bytes

Versions: 74

Compression:

Stored size: 465 Bytes

Contents

require 'test_plugin_helper'

class CockpitControllerTest < ActionController::TestCase
  def setup
    as_admin do
      @host = FactoryBot.create(:host)
    end
  end

  test "should get host_ssh_params" do
    get :host_ssh_params, params: { id: @host.id }, session: set_session_user
    assert_response :success
    response = ActiveSupport::JSON.decode(@response.body)
    assert response.key?('ssh_user'), 'ssh_params response must include ssh_user'
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
foreman_remote_execution-13.2.8 test/functional/cockpit_controller_test.rb
foreman_remote_execution-15.0.2 test/functional/cockpit_controller_test.rb
foreman_remote_execution-15.0.1 test/functional/cockpit_controller_test.rb
foreman_remote_execution-13.2.7 test/functional/cockpit_controller_test.rb
foreman_remote_execution-15.0.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-14.1.4 test/functional/cockpit_controller_test.rb
foreman_remote_execution-14.1.3 test/functional/cockpit_controller_test.rb
foreman_remote_execution-14.1.2 test/functional/cockpit_controller_test.rb
foreman_remote_execution-14.1.1 test/functional/cockpit_controller_test.rb
foreman_remote_execution-14.0.2 test/functional/cockpit_controller_test.rb
foreman_remote_execution-14.0.1 test/functional/cockpit_controller_test.rb
foreman_remote_execution-13.2.6 test/functional/cockpit_controller_test.rb
foreman_remote_execution-14.0.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-13.2.5 test/functional/cockpit_controller_test.rb
foreman_remote_execution-13.2.4 test/functional/cockpit_controller_test.rb
foreman_remote_execution-13.2.3 test/functional/cockpit_controller_test.rb
foreman_remote_execution-13.2.2 test/functional/cockpit_controller_test.rb
foreman_remote_execution-12.0.7 test/functional/cockpit_controller_test.rb
foreman_remote_execution-13.2.1 test/functional/cockpit_controller_test.rb
foreman_remote_execution-13.2.0 test/functional/cockpit_controller_test.rb