diff --git a/tests/p_httpd/httpd_centos_brand_server_tokens.sh b/tests/p_httpd/httpd_centos_brand_server_tokens.sh new file mode 100755 index 0000000..9c3e0ce --- /dev/null +++ b/tests/p_httpd/httpd_centos_brand_server_tokens.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - httpd centos branding / Server tokens value test." + +curl -sI http://localhost/ | grep "Server:\ Apache.*\ (CentOS)" > /dev/null 2>&1 + +t_CheckExitStatus $? diff --git a/tests/p_httpd/httpd_centos_brand_welcome.sh b/tests/p_httpd/httpd_centos_brand_welcome.sh new file mode 100755 index 0000000..5fc43c8 --- /dev/null +++ b/tests/p_httpd/httpd_centos_brand_welcome.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - httpd centos branding / the default welcome page test." + +curl -s http://localhost/ | grep 'CentOS' > /dev/null 2>&1 + +t_CheckExitStatus $? diff --git a/tests/p_kernel/kernel_centos_keyring.sh b/tests/p_kernel/kernel_centos_keyring.sh new file mode 100755 index 0000000..2591e42 --- /dev/null +++ b/tests/p_kernel/kernel_centos_keyring.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - check CentOS' Kernel Module GPG key." + +grep 'User ID: CentOS (Kernel Module GPG key)' /var/log/dmesg > /dev/null 2>&1 + +t_CheckExitStatus $?