Sha256: c2f69c8b22c1f683b199aae1e9d71eaaaaddc606960719845b877b4df30f3917

Contents?: true

Size: 381 Bytes

Versions: 96

Compression:

Stored size: 381 Bytes

Contents

require 'test_plugin_helper'

class UiAnsibleRolesControllerTest < ActionController::TestCase
  setup do
    @role = FactoryBot.create(:ansible_role)
  end

  test 'should respond with roles' do
    get :index, :params => {}, :session => set_session_user
    assert_response :success
    res = JSON.parse @response.body
    assert_equal res['total'], res['results'].size
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
foreman_ansible-14.2.2 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-14.2.1 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-13.0.7 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-14.2.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-14.1.1 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-14.1.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-13.0.5 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-14.0.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-13.0.4 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-13.0.3 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-13.0.2 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-13.0.1 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-13.0.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-12.0.7 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-10.4.4 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-7.1.8 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-12.0.6 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-12.0.5 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-10.4.3 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-12.0.4 test/functional/ui_ansible_roles_controller_test.rb