From 98be88da4f063419795dab2c5b070521daa74a93 Mon Sep 17 00:00:00 2001 From: Miguel Negron Date: Tue, 12 Dec 2023 10:28:58 +0000 Subject: [PATCH 1/3] add journald tests --- spec/services/systemd_journald_spec.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 spec/services/systemd_journald_spec.rb diff --git a/spec/services/systemd_journald_spec.rb b/spec/services/systemd_journald_spec.rb new file mode 100644 index 0000000..cc8d06e --- /dev/null +++ b/spec/services/systemd_journald_spec.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +require 'spec_helper' +set :os, family: 'redhat', release: '9', arch: 'x86_64' + + +describe 'Checking systemd-journald' do + describe service('systemd-journald') do + it { should be_enabled } + it { should be_running } + end + + describe 'Configuration' do + describe file('/etc/systemd/journald.conf') do + it { should exist } + it { should contain 'Storage=volatile' } + end + end +end From 31414a985f0a10e525e31dabd338b583f29bf06b Mon Sep 17 00:00:00 2001 From: Miguel Negron Date: Tue, 12 Dec 2023 10:36:05 +0000 Subject: [PATCH 2/3] Fix rubocop --- spec/services/systemd_journald_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/services/systemd_journald_spec.rb b/spec/services/systemd_journald_spec.rb index cc8d06e..f919d06 100644 --- a/spec/services/systemd_journald_spec.rb +++ b/spec/services/systemd_journald_spec.rb @@ -3,7 +3,6 @@ require 'spec_helper' set :os, family: 'redhat', release: '9', arch: 'x86_64' - describe 'Checking systemd-journald' do describe service('systemd-journald') do it { should be_enabled } From 822b4e2777d7cc9edaa623ba1640877608b54b6b Mon Sep 17 00:00:00 2001 From: Miguel Negron Date: Wed, 17 Jan 2024 15:50:40 +0000 Subject: [PATCH 3/3] Storage keeps as default value --- spec/services/systemd_journald_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/services/systemd_journald_spec.rb b/spec/services/systemd_journald_spec.rb index f919d06..c8a42d6 100644 --- a/spec/services/systemd_journald_spec.rb +++ b/spec/services/systemd_journald_spec.rb @@ -12,7 +12,6 @@ describe 'Configuration' do describe file('/etc/systemd/journald.conf') do it { should exist } - it { should contain 'Storage=volatile' } end end end