beaker 4.12.0 → 4.13.0

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
  SHA1:
3
- metadata.gz: da415d6c193adaf6c37b48cb3f9b960c67aaf963
4
- data.tar.gz: 39f8b272d0a97590934533259b31a3a5a9b6219f
3
+ metadata.gz: 7be862faf13757c406675863d317c3c57ffc7f77
4
+ data.tar.gz: 22e7dff771131c9fa77e52d208d48e1092f446c0
5
5
  SHA512:
6
- metadata.gz: 1dd3223ab325509d56de25a94d77047ecb8d9516b37e227bacd7697f04a65d9955e38614956aece4fff4b4c4797a9f1be0e38a732a360e82108e9091f524bf5b
7
- data.tar.gz: a22c426766116b2ac27a188b220d5f714ed2674ee66b246a8646b368b680b386d41f77890b815d8375b3a27f8046e24a6e8960ca5eade84950eb2db5f3713453
6
+ metadata.gz: cd02ed4bef38f307b74d6228e40afe873a2ddb5ba8648257db05cf88e5c7e15aecb7c10d651e00193cddc1df72276f698f9a52a50ff63249cad70bb7003af890
7
+ data.tar.gz: ff91928468617d0635546b972185de2cda0589c4ea25af6e81f59eade6c2d26b03859d71d8cbbe1044dddcd6cc95b09baa53ccc949386fda14548c785dc09936
@@ -11,7 +11,13 @@ Tracking in this Changelog began for this project in version 3.25.0.
11
11
  If you're looking for changes from before this, refer to the project's
12
12
  git logs & PR history.
13
13
 
14
- # [Unreleased](https://github.com/puppetlabs/beaker/compare/4.12.0...master)
14
+ # [Unreleased](https://github.com/puppetlabs/beaker/compare/4.13.0...master)
15
+
16
+ # [4.13.0](https://github.com/puppetlabs/beaker/compare/4.12.0...4.13.0) - 2019-09-16
17
+
18
+ ### Added
19
+
20
+ - Host `enable_remote_rsyslog` method (QENG-7466)
15
21
 
16
22
  # [4.12.0](https://github.com/puppetlabs/beaker/compare/4.11.1...4.12.0) - 2019-08-14
17
23
 
@@ -0,0 +1 @@
1
+ * @puppetlabs/beaker
@@ -327,4 +327,19 @@ module Unix::Exec
327
327
  exec(Beaker::Command.new("sudo selinuxenabled"), :accept_all_exit_codes => true).exit_code == 0
328
328
  end
329
329
 
330
+ def enable_remote_rsyslog(server = 'rsyslog.ops.puppetlabs.net', port = 514)
331
+ if self['platform'] !~ /ubuntu/
332
+ @logger.warn "Enabling rsyslog is only implemented for ubuntu hosts"
333
+ return
334
+ end
335
+ commands = [
336
+ "echo '*.* @#{server}:#{port}' >> /etc/rsyslog.d/51-sendrsyslogs.conf",
337
+ 'systemctl restart rsyslog'
338
+ ]
339
+ commands.each do |command|
340
+ exec(Beaker::Command.new(command))
341
+ end
342
+ true
343
+ end
344
+
330
345
  end
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '4.12.0'
3
+ STRING = '4.13.0'
4
4
  end
5
5
  end
@@ -173,5 +173,16 @@ module Beaker
173
173
  expect{ instance.reboot }.to raise_error(Beaker::Host::RebootFailure, /Unexpected exception in reboot: .*/)
174
174
  end
175
175
  end
176
+
177
+ describe '#enable_remote_rsyslog' do
178
+ it 'always calls restart' do
179
+ opts['platform'] = 'ubuntu-18-x86_64'
180
+ allow(Beaker::Command).to receive(:new).with(anything)
181
+ allow(instance).to receive(:exec)
182
+ expect(Beaker::Command).to receive(:new).with("systemctl restart rsyslog")
183
+ instance.enable_remote_rsyslog
184
+ end
185
+
186
+ end
176
187
  end
177
188
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.12.0
4
+ version: 4.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-14 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -365,6 +365,7 @@ files:
365
365
  - ".simplecov"
366
366
  - ".travis.yml"
367
367
  - CHANGELOG.md
368
+ - CODEOWNERS
368
369
  - CONTRIBUTING.md
369
370
  - DOCUMENTING.md
370
371
  - Gemfile