Sha256: 06e8f8f0298c15127ac3518ed8346fdee3f2aafeb7c8afdcde99839f7b65c0a5

Contents?: true

Size: 508 Bytes

Versions: 51

Compression:

Stored size: 508 Bytes

Contents

require 'test_plugin_helper'

class CockpitControllerTest < ActionController::TestCase
  def setup
    Setting::RemoteExecution.load_defaults
    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

51 entries across 51 versions & 1 rubygems

Version Path
foreman_remote_execution-4.8.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.5.6 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.5.5 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.5.4 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.7.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.5.3 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.5.2 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.5.1 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.6.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.5.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.4.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.3.1 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.3.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.2.3 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.2.2 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.2.1 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.2.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.1.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-3.3.7 test/functional/cockpit_controller_test.rb
foreman_remote_execution-4.0.0 test/functional/cockpit_controller_test.rb