Sha256: 4f042990b925d102cbaef953c74fbd25cc8b07b647c535ac2b66c9d66f3fe3a7
Contents?: true
Size: 724 Bytes
Versions: 40
Compression:
Stored size: 724 Bytes
Contents
# frozen_string_literal: true require 'test_plugin_helper' # Tests for the behavior of Host with roles, checks inheritance, etc class ConfigReportExtensionsTest < ActiveSupport::TestCase let(:example_reports) do JSON.parse(File.read(ansible_fixture_file('report.json'))) end let(:example_report1) { example_reports.first } describe '.import' do it 'sets an origin for Ansible reports' do report = ConfigReport.import(example_report1) assert_equal 'Ansible', report.origin end it 'sets no origin for other reports' do report = ConfigReport.import( 'host' => 'io.local', 'reported_at' => Time.now.utc.to_s ) assert_nil report.origin end end end
Version data entries
40 entries across 40 versions & 1 rubygems