foreman_salt 10.3.0 → 10.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8110eafc908fb62e5c4829f2e66f98018d60e4f390ec5cae8208fb80cc8742e3
4
- data.tar.gz: 7b8227edde0477bcf230b007c87c0f5b4526fc1199e4aab8b9573670efba7a4c
3
+ metadata.gz: ac88c976fbe0257ffcbdc2b960359a59948fe4035345b04adf81d9ba3d2e2cc1
4
+ data.tar.gz: '086fbe02ad064f3070d62f388e6a10ed3cbb5e6f6b7efc1b42b93e69f8a02129'
5
5
  SHA512:
6
- metadata.gz: da0cd3d31cf6f2c0946e946eb3d946aa8cd31741adeae8759bbfa0de340cbf822fde9a91553981c2ca1fd9ca177637629d76773024f3959b11fe35c0dfad99c8
7
- data.tar.gz: 97ef78a107cc2ed1510ffb5861213d8b1f3a95bd7bec421bde267bcb2c33962419c3f9d59f392a57f3d615fb0cc8860d8a86646ed000ce483a9e2b411b584afa
6
+ metadata.gz: dbb3d6bf6e6e8e9ad63c4933098be1937d41b16b6a34b41bc9c33507694a214c8b825f9c7cbf397801fe36acaa24a0756de948ef825b5c338d57cb0b4525982b
7
+ data.tar.gz: dd9ee2e2ef2ef0aa08a460d298f97bcc9e76ac477a088e0ab9967e9797fbc982b77b4e8d8073a2cfd519919c4c26a20f355ccd09484640d37ae99f93a7479b3b
@@ -13,6 +13,7 @@ module ForemanSalt
13
13
  report = importer.report
14
14
  report.origin = 'Salt'
15
15
  report.save!
16
+ report
16
17
  end
17
18
  end
18
19
 
@@ -1,3 +1,3 @@
1
1
  module ForemanSalt
2
- VERSION = '10.3.0'
2
+ VERSION = '10.3.1'
3
3
  end
@@ -47,5 +47,13 @@ module ForemanSalt
47
47
  assert_equal 'file_|-/etc/motd_|-/etc/motd_|-managed', report.logs.first.source.value
48
48
  assert_equal status['pending'], 1
49
49
  end
50
+
51
+ test 'import returns Array of reports including host and its name' do
52
+ reports = ForemanSalt::ReportImporter.import(@report)
53
+ assert_kind_of Array, reports
54
+ first = reports.first
55
+ assert_equal 'Salt', first.origin
56
+ assert_equal @host, first.host.name
57
+ end
50
58
  end
51
59
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_salt
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.3.0
4
+ version: 10.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Benjamin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-05 00:00:00.000000000 Z
11
+ date: 2019-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface