From 64a5a4d08223fb0fdcf5f3019fb2207ffe6fa637 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Thu, 25 Aug 2016 14:22:15 +0200 Subject: [PATCH] switch from os-hardening to ssh-hardening profile --- .../dependencies/inheritance/controls/example.rb | 12 +++--------- .../profiles/dependencies/inheritance/inspec.yml | 4 ++-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/test/unit/mock/profiles/dependencies/inheritance/controls/example.rb b/test/unit/mock/profiles/dependencies/inheritance/controls/example.rb index b33fd1bdb..6dac076b0 100644 --- a/test/unit/mock/profiles/dependencies/inheritance/controls/example.rb +++ b/test/unit/mock/profiles/dependencies/inheritance/controls/example.rb @@ -2,14 +2,8 @@ include_controls 'profile_a' include_controls 'profile_b' -include_controls 'os-hardening' do - skip_control 'os-01' - - 1.upto(5) do |i| - skip_control "package-%02d" % i - end - - 1.upto(33) do |i| - skip_control "sysctl-%02d" % i +include_controls 'ssh-hardening' do + 12.upto(12) do |i| + skip_control "ssh-%02d" % i end end diff --git a/test/unit/mock/profiles/dependencies/inheritance/inspec.yml b/test/unit/mock/profiles/dependencies/inheritance/inspec.yml index 1299403ae..4ff455cac 100644 --- a/test/unit/mock/profiles/dependencies/inheritance/inspec.yml +++ b/test/unit/mock/profiles/dependencies/inheritance/inspec.yml @@ -10,5 +10,5 @@ depends: path: ../profile_a - name: profile_b path: ../profile_b - - name: os-hardening - url: https://github.com/dev-sec/tests-os-hardening/archive/master.tar.gz + - name: ssh-hardening + url: https://github.com/dev-sec/tests-ssh-hardening/archive/master.tar.gz