Sha256: 4c47f9f27a9e63646af55e3cee81ec53457d7fa17651a7340a79cf81ebaf41d6
Contents?: true
Size: 671 Bytes
Versions: 69
Compression:
Stored size: 671 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_report) do JSON.parse(File.read(ansible_fixture_file('report.json'))) end describe '.import' do it 'sets an origin for Ansible reports' do report = ConfigReport.import(example_report) 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
69 entries across 69 versions & 1 rubygems