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