Sha256: 179c5d09e521debfb6f5f1c21e840a2c67d73b4d8950fd362c0494662646c3a1

Contents?: true

Size: 759 Bytes

Versions: 5

Compression:

Stored size: 759 Bytes

Contents

ENV['TEST_API_VERSION'] = '1.15'
FOREMAN_OPENSCAP_VERSION = Gem::Version.new(ENV['TEST_API_VERSION'])

require 'minitest/autorun'
require 'minitest/spec'
require "minitest-spec-context"
require "mocha/minitest"
require 'hammer_cli'

if HammerCLI.context[:api_connection]
  HammerCLI.context[:api_connection].create('foreman') do
    HammerCLI::Apipie::ApiConnection.new(
      :apidoc_cache_dir => 'test/data/' + FOREMAN_OPENSCAP_VERSION.to_s,
      :apidoc_cache_name => 'foreman_api',
      :dry_run => true
    )
  end
else
  HammerCLIForeman.stubs(:resource_config).returns(
    :apidoc_cache_dir => 'test/data/' + FOREMAN_OPENSCAP_VERSION.to_s,
    :apidoc_cache_name => 'foreman_api',
    :dry_run => true
  )
end

require 'hammer_cli_foreman_openscap'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hammer_cli_foreman_openscap-0.1.13 test/test_helper.rb
hammer_cli_foreman_openscap-0.1.12 test/test_helper.rb
hammer_cli_foreman_openscap-0.1.11 test/test_helper.rb
hammer_cli_foreman_openscap-0.1.10 test/test_helper.rb
hammer_cli_foreman_openscap-0.1.9 test/test_helper.rb