Sha256: c7ab8fe10de582347fc183c8408459642f296145cd6daa00c9f9e48713eb346d

Contents?: true

Size: 614 Bytes

Versions: 40

Compression:

Stored size: 614 Bytes

Contents

require 'test_plugin_helper'

class Api::V2::Compliance::ScapContentProfilesControllerTest < ActionController::TestCase
  test "should get index" do
    2.times do
      FactoryBot.create(:scap_content_profile)
    end
    FactoryBot.create(:scap_content, :scap_content_profiles => [ForemanOpenscap::ScapContentProfile.first])
    FactoryBot.create(:tailoring_file, :scap_content_profiles => [ForemanOpenscap::ScapContentProfile.last])
    get :index, :session => set_session_user
    response = ActiveSupport::JSON.decode(@response.body)
    assert response['results'].any?
    assert_response :success
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
foreman_openscap-10.1.0 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-10.0.3 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-10.0.2 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-10.0.1 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-10.0.0 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-9.0.4 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-9.0.3 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-9.0.2 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-9.0.1 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-9.0.0 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-8.0.0 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-7.1.1 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-7.1.0 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-7.0.0 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-6.0.0 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-5.2.3 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-5.2.2 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-5.1.1 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-5.2.1 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
foreman_openscap-5.2.0 test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb