From 9234c32dabeb27a3097bf2d00481d446f49e772d Mon Sep 17 00:00:00 2001 From: mickael e Date: Thu, 22 Nov 2018 08:18:37 -0500 Subject: [PATCH] Use test_vars kernel version for DRY-ness --- molecule/testinfra/staging/common/test_grsecurity.py | 2 +- molecule/testinfra/staging/vars/staging.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/molecule/testinfra/staging/common/test_grsecurity.py b/molecule/testinfra/staging/common/test_grsecurity.py index fb9a0332ac..2ea8729e4c 100644 --- a/molecule/testinfra/staging/common/test_grsecurity.py +++ b/molecule/testinfra/staging/common/test_grsecurity.py @@ -3,7 +3,7 @@ import re -KERNEL_VERSION = "4.4.162" +KERNEL_VERSION = pytest.securedrop_test_vars.grsec_version def test_ssh_motd_disabled(File): diff --git a/molecule/testinfra/staging/vars/staging.yml b/molecule/testinfra/staging/vars/staging.yml index 259b6f7c26..665a40c635 100644 --- a/molecule/testinfra/staging/vars/staging.yml +++ b/molecule/testinfra/staging/vars/staging.yml @@ -169,3 +169,4 @@ log_events_with_ossec_alerts: rule_id: "400503" fpf_apt_repo_url: "https://apt-test.freedom.press" +grsec_version: "4.4.162"