From 0c1321c87f0b3200b2de59ca9251bcd2eeddb069 Mon Sep 17 00:00:00 2001 From: Eric Veiras Galisson Date: Thu, 14 Oct 2021 12:11:58 +0200 Subject: [PATCH] test: add dhparam file tests --- test/integration/default/controls/config_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/default/controls/config_spec.rb b/test/integration/default/controls/config_spec.rb index 68bb8a2..c47ec34 100644 --- a/test/integration/default/controls/config_spec.rb +++ b/test/integration/default/controls/config_spec.rb @@ -43,5 +43,11 @@ it { should be_grouped_into group } its('mode') { should cmp '0640' } end + + describe file("#{conf_dir}/server/dh512.pem") do + it { should be_owned_by user } + it { should be_grouped_into 'root' } + its('mode') { should cmp '0644' } + end end end