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-2.0.5 test/functional/cockpit_controller_test.rb
foreman_remote_execution-2.0.4 test/functional/cockpit_controller_test.rb
foreman_remote_execution-2.0.3 test/functional/cockpit_controller_test.rb
foreman_remote_execution-2.0.2 test/functional/cockpit_controller_test.rb
foreman_remote_execution-2.0.1 test/functional/cockpit_controller_test.rb
foreman_remote_execution-2.0.0 test/functional/cockpit_controller_test.rb
foreman_remote_execution-1.8.4 test/functional/cockpit_controller_test.rb
foreman_remote_execution-1.8.3 test/functional/cockpit_controller_test.rb
foreman_remote_execution-1.8.2 test/functional/cockpit_controller_test.rb
foreman_remote_execution-1.8.1 test/functional/cockpit_controller_test.rb
foreman_remote_execution-1.8.0 test/functional/cockpit_controller_test.rb