Skip to content

Instantly share code, notes, and snippets.

@garrettr
Created June 2, 2017 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garrettr/2461c60f3a2699790a7ca09d63929b41 to your computer and use it in GitHub Desktop.
Save garrettr/2461c60f3a2699790a7ca09d63929b41 to your computer and use it in GitHub Desktop.
./testinfra/test.py app-staging
(securedrop) securedrop ~> ./testinfra/test.py app-staging
Running Testinfra suite against 'app-staging'...
Target roles:
- testinfra/app
- testinfra/app-code
- testinfra/common
- testinfra/development/test_xvfb.py
==================================================================== test session starts =====================================================================
platform darwin -- Python 2.7.13, pytest-3.0.7, py-1.4.33, pluggy-0.4.0 -- /Users/garrett/.virtualenvs/securedrop/bin/python2.7
cachedir: .cache
rootdir: /Users/garrett/code/freedomofpress/securedrop, inifile: setup.cfg
plugins: testinfra-1.6.0, xdist-1.15.0
[gw0] darwin Python 2.7.13 cwd: /Users/garrett/code/freedomofpress/securedrop
[gw1] darwin Python 2.7.13 cwd: /Users/garrett/code/freedomofpress/securedrop
[gw2] darwin Python 2.7.13 cwd: /Users/garrett/code/freedomofpress/securedrop
[gw3] darwin Python 2.7.13 cwd: /Users/garrett/code/freedomofpress/securedrop
[gw0] Python 2.7.13 (default, Dec 18 2016, 07:03:34) -- [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]
[gw2] Python 2.7.13 (default, Dec 18 2016, 07:03:34) -- [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]
[gw1] Python 2.7.13 (default, Dec 18 2016, 07:03:34) -- [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]
[gw3] Python 2.7.13 (default, Dec 18 2016, 07:03:34) -- [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]
gw0 [281] / gw1 [281] / gw2 [281] / gw3 [281]
scheduling tests via LoadScheduling
testinfra/app/test_apparmor.py::test_apparmor_enabled[ansible://app-staging]
testinfra/app/test_apparmor.py::test_apparmor_apache_capabilities[ansible://app-staging-kill]
testinfra/app/test_apparmor.py::test_apparmor_tor_capabilities[ansible://app-staging-setgid]
testinfra/app/test_apparmor.py::test_apparmor_pkg[ansible://app-staging-apparmor]
[gw2] PASSED testinfra/app/test_apparmor.py::test_apparmor_tor_capabilities[ansible://app-staging-setgid]
testinfra/app/test_apparmor.py::test_app_apparmor_complain_count[ansible://app-staging]
[gw0] PASSED testinfra/app/test_apparmor.py::test_apparmor_apache_capabilities[ansible://app-staging-kill]
testinfra/app/test_apparmor.py::test_app_apparmor_complain[ansible://app-staging-complain_pkg0]
[gw0] SKIPPED testinfra/app/test_apparmor.py::test_app_apparmor_complain[ansible://app-staging-complain_pkg0]
testinfra/app/test_apparmor.py::test_aastatus_unconfined[ansible://app-staging]
[gw1] PASSED testinfra/app/test_apparmor.py::test_apparmor_enabled[ansible://app-staging]
testinfra/app/test_apparmor.py::test_apparmor_ensure_not_disabled[ansible://app-staging-ntpd]
[gw2] PASSED testinfra/app/test_apparmor.py::test_app_apparmor_complain_count[ansible://app-staging]
testinfra/app/test_apparmor.py::test_apparmor_pkg[ansible://app-staging-apparmor-utils]
[gw0] PASSED testinfra/app/test_apparmor.py::test_aastatus_unconfined[ansible://app-staging]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/lib/NetworkManager/nm-dhcp-client.action]
[gw0] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/lib/NetworkManager/nm-dhcp-client.action]
testinfra/app/test_apparmor.py::test_apparmor_ensure_not_disabled[ansible://app-staging-tor]
[gw3] PASSED testinfra/app/test_apparmor.py::test_apparmor_pkg[ansible://app-staging-apparmor]
testinfra/app/test_apparmor.py::test_apparmor_apache_exact_capabilities[ansible://app-staging]
[gw1] PASSED testinfra/app/test_apparmor.py::test_apparmor_ensure_not_disabled[ansible://app-staging-ntpd]
testinfra/app/test_apparmor.py::test_apparmor_total_profiles[ansible://app-staging]
[gw3] PASSED testinfra/app/test_apparmor.py::test_apparmor_apache_exact_capabilities[ansible://app-staging]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/sbin/dhclient]
[gw1] PASSED testinfra/app/test_apparmor.py::test_apparmor_total_profiles[ansible://app-staging]
testinfra/app/test_apparmor.py::test_apparmor_ensure_not_disabled[ansible://app-staging-apache2]
[gw2] PASSED testinfra/app/test_apparmor.py::test_apparmor_pkg[ansible://app-staging-apparmor-utils]
testinfra/app/test_apparmor.py::test_apparmor_apache_capabilities[ansible://app-staging-sys_ptrace]
[gw3] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/sbin/dhclient]
testinfra/app/test_apparmor.py::test_apparmor_apache_capabilities[ansible://app-staging-net_bind_service]
[gw1] PASSED testinfra/app/test_apparmor.py::test_apparmor_ensure_not_disabled[ansible://app-staging-apache2]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/lib/connman/scripts/dhclient-script]
[gw0] PASSED testinfra/app/test_apparmor.py::test_apparmor_ensure_not_disabled[ansible://app-staging-tor]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/apache2]
[gw2] PASSED testinfra/app/test_apparmor.py::test_apparmor_apache_capabilities[ansible://app-staging-sys_ptrace]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/ntpd]
[gw3] PASSED testinfra/app/test_apparmor.py::test_apparmor_apache_capabilities[ansible://app-staging-net_bind_service]
testinfra/app/test_apparmor.py::test_apparmor_ensure_not_disabled[ansible://app-staging-tcpdump]
[gw1] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/lib/connman/scripts/dhclient-script]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-system_tor]
[gw3] PASSED testinfra/app/test_apparmor.py::test_apparmor_ensure_not_disabled[ansible://app-staging-tcpdump]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/tcpdump]
[gw0] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/apache2]
testinfra/app/test_appenv.py::test_app_pip_deps[ansible://app-staging-exp_pip_pkg0]
[gw2] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/ntpd]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/apache2//DEFAULT_URI]
[gw1] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-system_tor]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/tor]
[gw3] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/tcpdump]
testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/apache2//HANDLING_UNTRUSTED_INPUT]
[gw2] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/apache2//DEFAULT_URI]
testinfra/app/test_appenv.py::test_app_wsgi[ansible://app-staging]
[gw0] PASSED testinfra/app/test_appenv.py::test_app_pip_deps[ansible://app-staging-exp_pip_pkg0]
testinfra/app/test_appenv.py::test_gpg_key_in_keyring[ansible://app-staging]
[gw1] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/tor]
[gw3] PASSED testinfra/app/test_apparmor.py::test_apparmor_enforced[ansible://app-staging-/usr/sbin/apache2//HANDLING_UNTRUSTED_INPUT]
testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/www/securedrop]
testinfra/app/test_appenv.py::test_app_code_pkg[ansible://app-staging]
[gw0] PASSED testinfra/app/test_appenv.py::test_gpg_key_in_keyring[ansible://app-staging]
testinfra/app/test_appenv.py::test_app_pip_deps[ansible://app-staging-exp_pip_pkg1]
[gw1] PASSED testinfra/app/test_appenv.py::test_app_code_pkg[ansible://app-staging]
testinfra/app/test_appenv.py::test_app_workerlog_dir[ansible://app-staging]
[gw0] PASSED testinfra/app/test_appenv.py::test_app_pip_deps[ansible://app-staging-exp_pip_pkg1]
testinfra/app/test_appenv.py::test_app_pip_deps[ansible://app-staging-exp_pip_pkg3]
[gw3] PASSED testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/www/securedrop]
testinfra/app/test_appenv.py::test_securedrop_tmp_clean_cron[ansible://app-staging]
[gw2] PASSED testinfra/app/test_appenv.py::test_app_wsgi[ansible://app-staging]
testinfra/app/test_appenv.py::test_ensure_logo[ansible://app-staging]
[gw3] PASSED testinfra/app/test_appenv.py::test_securedrop_tmp_clean_cron[ansible://app-staging]
testinfra/app/test_appenv.py::test_app_pip_deps[ansible://app-staging-exp_pip_pkg2]
[gw1] PASSED testinfra/app/test_appenv.py::test_app_workerlog_dir[ansible://app-staging]
testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/lib/securedrop/store]
[gw0] PASSED testinfra/app/test_appenv.py::test_app_pip_deps[ansible://app-staging-exp_pip_pkg3]
testinfra/app/test_ossec.py::test_hosts_files[ansible://app-staging]
[gw2] PASSED testinfra/app/test_appenv.py::test_ensure_logo[ansible://app-staging]
testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/lib/securedrop]
[gw3] PASSED testinfra/app/test_appenv.py::test_app_pip_deps[ansible://app-staging-exp_pip_pkg2]
testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/lib/securedrop/tmp]
[gw0] PASSED testinfra/app/test_ossec.py::test_hosts_files[ansible://app-staging]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header edit Set-Cookie ^(.*)$ $1;HttpOnly]
[gw1] PASSED testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/lib/securedrop/store]
testinfra/app/test_network.py::test_app_iptables_rules[ansible://app-staging]
[gw2] PASSED testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/lib/securedrop]
testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/lib/securedrop/keys]
[gw3] PASSED testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/lib/securedrop/tmp]
testinfra/app/test_ossec.py::test_ossec_agent_installed[ansible://app-staging]
[gw3] PASSED testinfra/app/test_ossec.py::test_ossec_agent_installed[ansible://app-staging]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_journalist_interface_vhost[ansible://app-staging]
[gw3] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_journalist_interface_vhost[ansible://app-staging]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set X-XSS-Protection: "1; mode=block"]
[gw0] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header edit Set-Cookie ^(.*)$ $1;HttpOnly]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header always append X-Frame-Options: DENY]
[gw1] PASSED testinfra/app/test_network.py::test_app_iptables_rules[ansible://app-staging]
testinfra/app/test_ossec.py::test_ossec_keyfile_present[ansible://app-staging]
[gw2] PASSED testinfra/app/test_appenv.py::test_app_directories[ansible://app-staging-/var/lib/securedrop/keys]
testinfra/app/test_ossec.py::test_hosts_duplicate[ansible://app-staging]
[gw2] PASSED testinfra/app/test_ossec.py::test_hosts_duplicate[ansible://app-staging]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-Header set Cache-Control "max-age=1800"]
[gw1] xfail testinfra/app/test_ossec.py::test_ossec_keyfile_present[ansible://app-staging]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_logging_journalist_interface[ansible://app-staging]
[gw3] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set X-XSS-Protection: "1; mode=block"]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set X-Download-Options: noopen]
[gw0] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header always append X-Frame-Options: DENY]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set X-Content-Type-Options: nosniff]
[gw1] FAILED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_logging_journalist_interface[ansible://app-staging]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-DocumentRoot /var/www/securedrop/static]
[gw2] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-Header set Cache-Control "max-age=1800"]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-<VirtualHost 0.0.0.0:8080>]
[gw3] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set X-Download-Options: noopen]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set Content-Security-Policy: "default-src 'self'"]
[gw0] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set X-Content-Type-Options: nosniff]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set X-Content-Security-Policy: "default-src 'self'"]
[gw1] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-DocumentRoot /var/www/securedrop/static]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-WSGIDaemonProcess journalist processes=2 threads=30 display-name=%{GROUP} python-path=/var/www/securedrop]
[gw2] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-<VirtualHost 0.0.0.0:8080>]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-Alias /static /var/www/securedrop/static]
[gw3] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set Content-Security-Policy: "default-src 'self'"]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-XSendFile On]
[gw0] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header set X-Content-Security-Policy: "default-src 'self'"]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header unset Etag]
[gw1] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-WSGIDaemonProcess journalist processes=2 threads=30 display-name=%{GROUP} python-path=/var/www/securedrop]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-WSGIScriptAlias / /var/www/journalist.wsgi/]
[gw2] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-Alias /static /var/www/securedrop/static]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-WSGIProcessGroup journalist]
[gw3] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-XSendFile On]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-ErrorLog /var/log/apache2/journalist-error.log]
[gw0] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_headers_journalist_interface[ansible://app-staging-Header unset Etag]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-XSendFilePath /var/lib/securedrop/store/]
[gw1] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-WSGIScriptAlias / /var/www/journalist.wsgi/]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-LimitRequestBody 524288000]
[gw2] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-WSGIProcessGroup journalist]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-AddType text/html .py]
[gw3] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-ErrorLog /var/log/apache2/journalist-error.log]
testinfra/app/apache/test_apache_service.py::test_apache_enabled_sites[ansible://app-staging-source]
[gw0] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-XSendFilePath /var/lib/securedrop/store/]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 400 /notfound]
[gw3] PASSED testinfra/app/apache/test_apache_service.py::test_apache_enabled_sites[ansible://app-staging-source]
testinfra/app/apache/test_apache_service.py::test_apache_disabled_sites[ansible://app-staging-000-default]
[gw1] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-LimitRequestBody 524288000]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-CustomLog /var/log/apache2/journalist-access.log combined]
[gw3] PASSED testinfra/app/apache/test_apache_service.py::test_apache_disabled_sites[ansible://app-staging-000-default]
testinfra/app/apache/test_apache_service.py::test_apache_service[ansible://app-staging]
[gw2] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-AddType text/html .py]
testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-XSendFilePath /var/lib/securedrop/tmp/]
[gw0] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 400 /notfound]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 401 /notfound]
[gw1] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-CustomLog /var/log/apache2/journalist-access.log combined]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-authz_core]
[gw2] PASSED testinfra/app/apache/test_apache_journalist_interface.py::test_apache_config_journalist_interface[ansible://app-staging-XSendFilePath /var/lib/securedrop/tmp/]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-mpm_event]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-authz_core]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-env]
[gw3] PASSED testinfra/app/apache/test_apache_service.py::test_apache_service[ansible://app-staging]
testinfra/app/apache/test_apache_service.py::test_apache_user[ansible://app-staging]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-mpm_event]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-LogLevel crit]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-env]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-MaxKeepAliveRequests 100]
[gw0] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 401 /notfound]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 403 /notfound]
[gw3] PASSED testinfra/app/apache/test_apache_service.py::test_apache_user[ansible://app-staging]
testinfra/app/apache/test_apache_service.py::test_apache_listening[ansible://app-staging-80]
[gw3] PASSED testinfra/app/apache/test_apache_service.py::test_apache_listening[ansible://app-staging-80]
testinfra/app/apache/test_apache_service.py::test_apache_enabled_sites[ansible://app-staging-journalist]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-LogLevel crit]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-negotiation]
[gw3] PASSED testinfra/app/apache/test_apache_service.py::test_apache_enabled_sites[ansible://app-staging-journalist]
testinfra/app/apache/test_apache_service.py::test_apache_listening[ansible://app-staging-8080]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-MaxKeepAliveRequests 100]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-authz_host]
[gw0] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 403 /notfound]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 404 /notfound]
[gw3] PASSED testinfra/app/apache/test_apache_service.py::test_apache_listening[ansible://app-staging-8080]
testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header edit Set-Cookie ^(.*)$ $1;HttpOnly]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-negotiation]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-IncludeOptional mods-enabled/*.load]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-authz_host]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-setenvif]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-setenvif]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-KeepAliveTimeout 5]
[gw0] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 404 /notfound]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 500 /notfound]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header edit Set-Cookie ^(.*)$ $1;HttpOnly]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-Header set Cache-Control "max-age=1800, must-revalidate"]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-IncludeOptional mods-enabled/*.load]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-reqtimeout]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-reqtimeout]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-IncludeOptional mods-enabled/*.conf]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-KeepAliveTimeout 5]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-authz_user]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-authz_user]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-status]
[gw0] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorDocument 500 /notfound]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorLog /var/log/apache2/source-error.log]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-Header set Cache-Control "max-age=1800, must-revalidate"]
testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header always append X-Frame-Options: DENY]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-status]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-User www-data]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-IncludeOptional mods-enabled/*.conf]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-rewrite]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-rewrite]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-Include ports.conf]
[gw0] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-ErrorLog /var/log/apache2/source-error.log]
testinfra/app/apache/test_apache_system_config.py::test_apache_apt_packages[ansible://app-staging-apache2-mpm-worker]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header always append X-Frame-Options: DENY]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-<VirtualHost 0.0.0.0:80>]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-User www-data]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-deflate]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_apt_packages[ansible://app-staging-apache2-mpm-worker]
testinfra/app/apache/test_apache_system_config.py::test_apache_security_config_deprecated[ansible://app-staging]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-deflate]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-Group www-data]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_security_config_deprecated[ansible://app-staging]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-Mutex file:${APACHE_LOCK_DIR} default]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-Include ports.conf]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-wsgi]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-wsgi]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-IncludeOptional sites-enabled/*.conf]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-<VirtualHost 0.0.0.0:80>]
testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set X-XSS-Protection: "1; mode=block"]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-Group www-data]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-filter]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-Mutex file:${APACHE_LOCK_DIR} default]
testinfra/app/apache/test_apache_system_config.py::test_apache_ports_config[ansible://app-staging-80]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-filter]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-AddDefaultCharset UTF-8]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-IncludeOptional sites-enabled/*.conf]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-xsendfile]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set X-XSS-Protection: "1; mode=block"]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-DocumentRoot /var/www/securedrop/static]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-xsendfile]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-ServerTokens Prod]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_ports_config[ansible://app-staging-80]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-access_compat]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-AddDefaultCharset UTF-8]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-dir]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-access_compat]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-auth_basic]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-dir]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-DefaultType None]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-auth_basic]
testinfra/app/apache/test_apache_system_config.py::test_apache_apt_packages[ansible://app-staging-libapache2-mod-wsgi]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-DocumentRoot /var/www/securedrop/static]
testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set X-Content-Type-Options: nosniff]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-ServerTokens Prod]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-ServerSignature Off]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_apt_packages[ansible://app-staging-libapache2-mod-wsgi]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-PidFile ${APACHE_PID_FILE}]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-DefaultType None]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-headers]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set X-Content-Type-Options: nosniff]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-Alias /static /var/www/securedrop/static]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-PidFile ${APACHE_PID_FILE}]
testinfra/app/apache/test_apache_system_config.py::test_apache_ports_config[ansible://app-staging-8080]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-ServerSignature Off]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-TraceEnable Off]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-headers]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-HostnameLookups Off]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-Alias /static /var/www/securedrop/static]
testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set X-Download-Options: noopen]
[gw2] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-TraceEnable Off]
testinfra/app-code/test_haveged.py::test_haveged_config[ansible://app-staging]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_ports_config[ansible://app-staging-8080]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-authn_core]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-HostnameLookups Off]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-mime]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-authn_core]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-authn_file]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-mime]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-ErrorLog /dev/null]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-authn_file]
testinfra/app/apache/test_apache_system_config.py::test_apache_apt_packages[ansible://app-staging-libapache2-mod-xsendfile]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_apt_packages[ansible://app-staging-libapache2-mod-xsendfile]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-Timeout 60]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set X-Download-Options: noopen]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-WSGIDaemonProcess source processes=2 threads=30 display-name=%{GROUP} python-path=/var/www/securedrop]
[gw2] PASSED testinfra/app-code/test_haveged.py::test_haveged_config[ansible://app-staging]
testinfra/app-code/test_haveged.py::test_haveged_no_duplicate_lines[ansible://app-staging]
[gw2] PASSED testinfra/app-code/test_haveged.py::test_haveged_no_duplicate_lines[ansible://app-staging]
testinfra/app-code/test_haveged.py::test_haveged_is_running[ansible://app-staging]
[gw1] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-ErrorLog /dev/null]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-[program:securedrop_worker]]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-[program:securedrop_worker]]
testinfra/app-code/test_redis_worker.py::test_redis_worker_config_file[ansible://app-staging]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-Timeout 60]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-alias]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-WSGIDaemonProcess source processes=2 threads=30 display-name=%{GROUP} python-path=/var/www/securedrop]
testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set X-Content-Security-Policy: "default-src 'self'"]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_present[ansible://app-staging-alias]
testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-autoindex]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_config_file[ansible://app-staging]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-command=/usr/local/bin/rqworker]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_modules_absent[ansible://app-staging-autoindex]
testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-KeepAlive On]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-command=/usr/local/bin/rqworker]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-directory=/var/www/securedrop]
[gw2] PASSED testinfra/app-code/test_haveged.py::test_haveged_is_running[ansible://app-staging]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-gnupg2]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-directory=/var/www/securedrop]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-autostart=true]
[gw2] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-gnupg2]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-haveged]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-autostart=true]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-autorestart=true]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set X-Content-Security-Policy: "default-src 'self'"]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-WSGIProcessGroup source]
[gw2] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-haveged]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-python]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-autorestart=true]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-startretries=3]
[gw2] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-python]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-python-pip]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-startretries=3]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-stderr_logfile=/var/log/securedrop_worker/err.log]
[gw2] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-python-pip]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-redis-server]
[gw0] PASSED testinfra/app/apache/test_apache_system_config.py::test_apache_config_settings[ansible://app-staging-KeepAlive On]
testinfra/common/test_cron_apt.py::test_cron_apt_config_deprecated[ansible://app-staging]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-stderr_logfile=/var/log/securedrop_worker/err.log]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-stdout_logfile=/var/log/securedrop_worker/out.log]
[gw2] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-redis-server]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-secure-delete]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_config_deprecated[ansible://app-staging]
testinfra/common/test_cron_apt.py::test_cron_apt_cron_jobs[ansible://app-staging-cron_job0]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-stdout_logfile=/var/log/securedrop_worker/out.log]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-user=www-data]
[gw2] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-secure-delete]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-sqlite]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-user=www-data]
testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-environment=HOME="/tmp/python-gnupg"]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-WSGIProcessGroup source]
testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set Content-Security-Policy: "default-src 'self'"]
[gw2] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-sqlite]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-supervisor]
[gw1] PASSED testinfra/app-code/test_redis_worker.py::test_redis_worker_configuration[ansible://app-staging-environment=HOME="/tmp/python-gnupg"]
testinfra/app-code/test_securedrop_app_code.py::test_apache_default_docroot_is_absent[ansible://app-staging]
[gw2] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-supervisor]
testinfra/common/test_cron_apt.py::test_cron_apt_dependencies[ansible://app-staging-cron-apt]
[gw1] PASSED testinfra/app-code/test_securedrop_app_code.py::test_apache_default_docroot_is_absent[ansible://app-staging]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-apparmor-utils]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_cron_jobs[ansible://app-staging-cron_job0]
testinfra/common/test_cron_apt.py::test_cron_apt_all_packages_updated[ansible://app-staging]
[gw2] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_dependencies[ansible://app-staging-cron-apt]
testinfra/common/test_cron_apt.py::test_cron_apt_config[ansible://app-staging]
[gw1] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_apt_dependencies[ansible://app-staging-apparmor-utils]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_test_journalist_key[ansible://app-staging]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header set Content-Security-Policy: "default-src 'self'"]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-WSGIScriptAlias / /var/www/source.wsgi/]
[gw2] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_config[ansible://app-staging]
testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb http://security.ubuntu.com/ubuntu trusty-security main]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-WSGIScriptAlias / /var/www/source.wsgi/]
testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header unset Etag]
[gw2] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb http://security.ubuntu.com/ubuntu trusty-security main]
testinfra/common/test_cron_apt.py::test_cron_apt_repo_config_update[ansible://app-staging]
[gw1] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_test_journalist_key[ansible://app-staging]
testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_sqlite_db[ansible://app-staging]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_all_packages_updated[ansible://app-staging]
testinfra/common/test_cron_apt.py::test_cron_apt_dependencies[ansible://app-staging-ntp]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_headers_source_interface[ansible://app-staging-Header unset Etag]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-AddType text/html .py]
[gw2] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_repo_config_update[ansible://app-staging]
testinfra/common/test_cron_apt.py::test_cron_apt_repo_config_upgrade[ansible://app-staging]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_dependencies[ansible://app-staging-ntp]
testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb-src http://security.ubuntu.com/ubuntu trusty-security main]
[gw1] PASSED testinfra/app-code/test_securedrop_app_code.py::test_securedrop_application_sqlite_db[ansible://app-staging]
testinfra/common/test_fpf_apt_repo.py::test_fpf_apt_repo_present[ansible://app-staging]
[gw1] PASSED testinfra/common/test_fpf_apt_repo.py::test_fpf_apt_repo_present[ansible://app-staging]
testinfra/common/test_fpf_apt_repo.py::test_fpf_apt_repo_fingerprint[ansible://app-staging]
[gw1] PASSED testinfra/common/test_fpf_apt_repo.py::test_fpf_apt_repo_fingerprint[ansible://app-staging]
testinfra/common/test_grsecurity.py::test_ssh_motd_disabled[ansible://app-staging]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-AddType text/html .py]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-XSendFile Off]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb-src http://security.ubuntu.com/ubuntu trusty-security main]
testinfra/common/test_cron_apt.py::test_cron_apt_cron_jobs[ansible://app-staging-cron_job1]
[gw2] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_repo_config_upgrade[ansible://app-staging]
testinfra/common/test_grsecurity.py::test_apt_autoremove[ansible://app-staging]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_ssh_motd_disabled[ansible://app-staging]
testinfra/common/test_grsecurity.py::test_grsecurity_apt_packages[ansible://app-staging-paxctl]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_apt_packages[ansible://app-staging-paxctl]
testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-linux-signed-image-generic-lts-utopic]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-linux-signed-image-generic-lts-utopic]
testinfra/common/test_grsecurity.py::test_grsecurity_lock_file[ansible://app-staging]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_cron_jobs[ansible://app-staging-cron_job1]
testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb http://security.ubuntu.com/ubuntu trusty-security universe]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-XSendFile Off]
testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-LimitRequestBody 524288000]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_apt_autoremove[ansible://app-staging]
testinfra/common/test_grsecurity.py::test_pax_flags[ansible://app-staging-/usr/sbin/grub-probe]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_lock_file[ansible://app-staging]
testinfra/common/test_grsecurity.py::test_grsecurity_kernel_is_running[ansible://app-staging]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_kernel_is_running[ansible://app-staging]
testinfra/common/test_grsecurity.py::test_grsecurity_sysctl_options[ansible://app-staging-sysctl_opt0]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb http://security.ubuntu.com/ubuntu trusty-security universe]
testinfra/common/test_cron_apt.py::test_cron_apt_cron_jobs[ansible://app-staging-cron_job2]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_pax_flags[ansible://app-staging-/usr/sbin/grub-probe]
testinfra/common/test_grsecurity.py::test_grsecurity_apt_packages[ansible://app-staging-securedrop-grsec]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_sysctl_options[ansible://app-staging-sysctl_opt0]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable anonymous mapping]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_apt_packages[ansible://app-staging-securedrop-grsec]
testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-linux-signed-image-generic]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable anonymous mapping]
testinfra/common/test_grsecurity.py::test_grub_pc_marked_manual[ansible://app-staging]
[gw3] PASSED testinfra/app/apache/test_apache_source_interface.py::test_apache_config_source_interface[ansible://app-staging-LimitRequestBody 524288000]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable data]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-linux-signed-image-generic]
testinfra/common/test_grsecurity.py::test_grsecurity_sysctl_options[ansible://app-staging-sysctl_opt1]
[gw3] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable data]
testinfra/common/test_grsecurity.py::test_pax_flags[ansible://app-staging-/usr/bin/grub-script-check]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_sysctl_options[ansible://app-staging-sysctl_opt1]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable bss]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_cron_jobs[ansible://app-staging-cron_job2]
testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb-src http://security.ubuntu.com/ubuntu trusty-security universe]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable bss]
testinfra/common/test_grsecurity.py::test_pax_flags[ansible://app-staging-/usr/sbin/grub-mkdevicemap]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grub_pc_marked_manual[ansible://app-staging]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable shared library bss]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable shared library bss]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable shared library data]
[gw3] PASSED testinfra/common/test_grsecurity.py::test_pax_flags[ansible://app-staging-/usr/bin/grub-script-check]
testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-linux-signed-generic]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable shared library data]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable anonymous mapping (mprotect)]
[gw3] PASSED testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-linux-signed-generic]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable heap]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_pax_flags[ansible://app-staging-/usr/sbin/grub-mkdevicemap]
testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-linux-signed-generic-lts-utopic]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable anonymous mapping (mprotect)]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable bss (mprotect)]
[gw3] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable heap]
testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-^linux-image-.*generic$]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb-src http://security.ubuntu.com/ubuntu trusty-security universe]
testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb [arch=amd64] https://apt.freedom.press trusty main]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-linux-signed-generic-lts-utopic]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable shared library bss (mprotect)]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable bss (mprotect)]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable data (mprotect)]
[gw3] PASSED testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-^linux-image-.*generic$]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable stack]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable shared library bss (mprotect)]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable shared library data (mprotect)]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable data (mprotect)]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable heap (mprotect)]
[gw3] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable stack]
testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-^linux-headers-.*]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable shared library data (mprotect)]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Writable text segments]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable heap (mprotect)]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable stack (mprotect)]
[gw3] PASSED testinfra/common/test_grsecurity.py::test_generic_kernels_absent[ansible://app-staging-^linux-headers-.*]
testinfra/common/test_platform.py::test_ansible_version[ansible://app-staging]
[gw1] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Executable stack (mprotect)]
testinfra/common/test_system_hardening.py::test_swap_disabled[ansible://app-staging]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Writable text segments]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Return to function (memcpy)]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb [arch=amd64] https://apt.freedom.press trusty main]
testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb http://deb.torproject.org/torproject.org trusty main]
[gw1] PASSED testinfra/common/test_system_hardening.py::test_swap_disabled[ansible://app-staging]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt1]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Return to function (memcpy)]
testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Return to function (memcpy, PIE)]
[gw3] PASSED testinfra/common/test_platform.py::test_ansible_version[ansible://app-staging]
testinfra/common/test_platform.py::test_platform[ansible://app-staging]
[gw3] PASSED testinfra/common/test_platform.py::test_platform[ansible://app-staging]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt0]
[gw2] PASSED testinfra/common/test_grsecurity.py::test_grsecurity_paxtest[ansible://app-staging-Return to function (memcpy, PIE)]
testinfra/common/test_ip6tables.py::test_ip6tables_drop_everything[ansible://app-staging]
[gw1] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt1]
testinfra/common/test_system_hardening.py::test_blacklisted_kernel_modules[ansible://app-staging-iwlwifi]
[gw3] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt0]
testinfra/common/test_system_hardening.py::test_dns_setting[ansible://app-staging]
[gw2] PASSED testinfra/common/test_ip6tables.py::test_ip6tables_drop_everything[ansible://app-staging]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt7]
[gw2] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt7]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt8]
[gw1] PASSED testinfra/common/test_system_hardening.py::test_blacklisted_kernel_modules[ansible://app-staging-iwlwifi]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt2]
[gw0] PASSED testinfra/common/test_cron_apt.py::test_cron_apt_repo_list[ansible://app-staging-deb http://deb.torproject.org/torproject.org trusty main]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt3]
[gw2] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt8]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt9]
[gw1] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt2]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt10]
[gw0] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt3]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt4]
[gw2] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt9]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt13]
[gw1] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt10]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt11]
[gw0] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt4]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt5]
[gw1] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt11]
[gw2] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt13]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt14]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt12]
[gw3] PASSED testinfra/common/test_system_hardening.py::test_dns_setting[ansible://app-staging]
testinfra/common/test_system_hardening.py::test_blacklisted_kernel_modules[ansible://app-staging-bluetooth]
[gw0] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt5]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt6]
[gw1] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt12]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt16]
[gw2] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt14]
testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt15]
[gw0] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt6]
testinfra/common/test_tor_config.py::test_tor_torrc_options[ansible://app-staging-SocksPort 0]
[gw1] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt16]
testinfra/common/test_tor_config.py::test_tor_apt_repo[ansible://app-staging]
[gw3] PASSED testinfra/common/test_system_hardening.py::test_blacklisted_kernel_modules[ansible://app-staging-bluetooth]
testinfra/common/test_tor_config.py::test_tor_packages[ansible://app-staging-deb.torproject.org-keyring]
[gw2] PASSED testinfra/common/test_system_hardening.py::test_sysctl_options[ansible://app-staging-sysctl_opt15]
testinfra/common/test_tor_config.py::test_tor_packages[ansible://app-staging-tor]
[gw1] PASSED testinfra/common/test_tor_config.py::test_tor_apt_repo[ansible://app-staging]
testinfra/common/test_tor_config.py::test_tor_torrc_options[ansible://app-staging-SafeLogging 1]
[gw2] PASSED testinfra/common/test_tor_config.py::test_tor_packages[ansible://app-staging-tor]
[gw3] PASSED testinfra/common/test_tor_config.py::test_tor_packages[ansible://app-staging-deb.torproject.org-keyring]
testinfra/common/test_tor_config.py::test_tor_torrc_options[ansible://app-staging-RunAsDaemon 1]
testinfra/common/test_tor_config.py::test_tor_service_running[ansible://app-staging]
[gw0] PASSED testinfra/common/test_tor_config.py::test_tor_torrc_options[ansible://app-staging-SocksPort 0]
testinfra/common/test_tor_config.py::test_tor_signing_key_fingerprint[ansible://app-staging]
[gw1] PASSED testinfra/common/test_tor_config.py::test_tor_torrc_options[ansible://app-staging-SafeLogging 1]
testinfra/common/test_tor_config.py::test_tor_torrc_options[ansible://app-staging-Sandbox 1]
[gw0] PASSED testinfra/common/test_tor_config.py::test_tor_signing_key_fingerprint[ansible://app-staging]
testinfra/common/test_tor_hidden_services.py::test_tor_services_config[ansible://app-staging-tor_service0]
[gw2] PASSED testinfra/common/test_tor_config.py::test_tor_torrc_options[ansible://app-staging-RunAsDaemon 1]
testinfra/common/test_tor_hidden_services.py::test_tor_service_directories[ansible://app-staging-tor_service0]
[gw0] PASSED testinfra/common/test_tor_hidden_services.py::test_tor_services_config[ansible://app-staging-tor_service0]
testinfra/common/test_tor_hidden_services.py::test_tor_service_hostnames[ansible://app-staging-tor_service1]
[gw1] PASSED testinfra/common/test_tor_config.py::test_tor_torrc_options[ansible://app-staging-Sandbox 1]
[gw2] PASSED testinfra/common/test_tor_hidden_services.py::test_tor_service_directories[ansible://app-staging-tor_service0]
testinfra/common/test_tor_hidden_services.py::test_tor_service_directories[ansible://app-staging-tor_service1]
testinfra/common/test_tor_hidden_services.py::test_tor_services_config[ansible://app-staging-tor_service1]
[gw2] PASSED testinfra/common/test_tor_hidden_services.py::test_tor_services_config[ansible://app-staging-tor_service1]
testinfra/common/test_tor_hidden_services.py::test_tor_services_config[ansible://app-staging-tor_service2]
[gw3] PASSED testinfra/common/test_tor_config.py::test_tor_service_running[ansible://app-staging]
testinfra/common/test_tor_hidden_services.py::test_tor_service_hostnames[ansible://app-staging-tor_service0]
[gw1] PASSED testinfra/common/test_tor_hidden_services.py::test_tor_service_directories[ansible://app-staging-tor_service1]
testinfra/common/test_tor_hidden_services.py::test_tor_service_hostnames[ansible://app-staging-tor_service2]
[gw2] PASSED testinfra/common/test_tor_hidden_services.py::test_tor_services_config[ansible://app-staging-tor_service2]
testinfra/common/test_user_config.py::test_sudoers_config[ansible://app-staging]
[gw0] PASSED testinfra/common/test_tor_hidden_services.py::test_tor_service_hostnames[ansible://app-staging-tor_service1]
testinfra/common/test_tor_hidden_services.py::test_tor_service_directories[ansible://app-staging-tor_service2]
[gw3] PASSED testinfra/common/test_tor_hidden_services.py::test_tor_service_hostnames[ansible://app-staging-tor_service0]
testinfra/common/test_user_config.py::test_sudoers_tmux_env[ansible://app-staging]
[gw2] PASSED testinfra/common/test_user_config.py::test_sudoers_config[ansible://app-staging]
[gw0] PASSED testinfra/common/test_tor_hidden_services.py::test_tor_service_directories[ansible://app-staging-tor_service2]
testinfra/common/test_user_config.py::test_sudoers_tmux_env_deprecated[ansible://app-staging]
testinfra/development/test_xvfb.py::test_xvfb_apt_dependencies[ansible://app-staging-firefox]
[gw2] PASSED testinfra/common/test_user_config.py::test_sudoers_tmux_env_deprecated[ansible://app-staging]
[gw1] PASSED testinfra/common/test_tor_hidden_services.py::test_tor_service_hostnames[ansible://app-staging-tor_service2]
testinfra/development/test_xvfb.py::test_xvfb_service_enabled[ansible://app-staging]
[gw0] PASSED testinfra/development/test_xvfb.py::test_xvfb_apt_dependencies[ansible://app-staging-firefox]
testinfra/common/test_user_config.py::test_tmux_installed[ansible://app-staging]
[gw1] PASSED testinfra/common/test_user_config.py::test_tmux_installed[ansible://app-staging]
[gw2] PASSED testinfra/development/test_xvfb.py::test_xvfb_service_enabled[ansible://app-staging]
[gw3] PASSED testinfra/common/test_user_config.py::test_sudoers_tmux_env[ansible://app-staging]
testinfra/development/test_xvfb.py::test_xvfb_display_config[ansible://app-staging]
testinfra/development/test_xvfb.py::test_xvfb_service_running[ansible://app-staging]
testinfra/development/test_xvfb.py::test_xvfb_apt_dependencies[ansible://app-staging-xvfb]
testinfra/development/test_xvfb.py::test_xvfb_service_config[ansible://app-staging]
[gw1] PASSED testinfra/development/test_xvfb.py::test_xvfb_apt_dependencies[ansible://app-staging-xvfb]
[gw2] PASSED testinfra/development/test_xvfb.py::test_xvfb_service_running[ansible://app-staging]
[gw0] PASSED testinfra/development/test_xvfb.py::test_xvfb_display_config[ansible://app-staging]
[gw3] PASSED testinfra/development/test_xvfb.py::test_xvfb_service_config[ansible://app-staging]
========================================================================== FAILURES ==========================================================================
______________________________________________ test_apache_logging_journalist_interface[ansible://app-staging] _______________________________________________
[gw1] darwin -- Python 2.7.13 /Users/garrett/.virtualenvs/securedrop/bin/python2.7
File = <class 'testinfra.modules.base.GNUFile'>, Command = <command>
Sudo = <sudo>
def test_apache_logging_journalist_interface(File, Command, Sudo):
"""
Check that logging is configured correctly for the Journalist Interface.
The actions of Journalists are logged by the system, so that an Admin can
investigate incidents and track access.
Logs were broken for some period of time, logging only "combined" to the logfile,
rather than the combined LogFormat intended.
"""
# Sudo is necessary because /var/log/apache2 is mode 0750.
with Sudo():
f = File("/var/log/apache2/journalist-access.log")
assert f.is_file
if f.size == 0:
# If the file is empty, the Journalist Interface hasn't been used
# yet, so make a quick GET request local to the host so we can
# validate the log entry.
> Command.check_output("curl http://127.0.0.1:8080")
E AssertionError: Unexpected exit code 7 for CommandResult(command=u"sudo /bin/sh -c 'curl http://127.0.0.1:8080'", exit_status=7, stdout=u'', stderr=' % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused')
E assert 7 == 0
E + where 7 = CommandResult(command=u"sudo /bin/sh -c 'curl http://127.0.0.1:8080'", exit_st...- 0curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused').rc
testinfra/app/apache/test_apache_journalist_interface.py:146: AssertionError
-------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
INFO:testinfra:RUN Ansible(u'shell', u"sudo /bin/sh -c 'test -f /var/log/apache2/journalist-access.log'", {}): {'_ansible_no_log': False,
'_ansible_parsed': True,
u'changed': True,
u'cmd': u"sudo /bin/sh -c 'test -f /var/log/apache2/journalist-access.log'",
u'delta': u'0:00:00.016815',
u'end': u'2017-06-02 01:03:10.376762',
'invocation': {u'module_args': {u'_raw_params': u"sudo /bin/sh -c 'test -f /var/log/apache2/journalist-access.log'",
u'_uses_shell': True,
u'chdir': None,
u'creates': None,
u'executable': None,
u'removes': None,
u'warn': True},
'module_name': u'command'},
u'rc': 0,
u'start': u'2017-06-02 01:03:10.359947',
u'stderr': u'',
u'stdout': u'',
'stdout_lines': [],
u'warnings': [u"Consider using 'become', 'become_method', and 'become_user' rather than running sudo"]}
INFO:testinfra:RUN CommandResult(command=u"sudo /bin/sh -c 'test -f /var/log/apache2/journalist-access.log'", exit_status=0, stdout=u'', stderr=u'')
INFO:testinfra:RUN Ansible(u'shell', u"sudo /bin/sh -c 'stat -c %s /var/log/apache2/journalist-access.log'", {}): {'_ansible_no_log': False,
'_ansible_parsed': True,
u'changed': True,
u'cmd': u"sudo /bin/sh -c 'stat -c %s /var/log/apache2/journalist-access.log'",
u'delta': u'0:00:00.023115',
u'end': u'2017-06-02 01:03:11.252016',
'invocation': {u'module_args': {u'_raw_params': u"sudo /bin/sh -c 'stat -c %s /var/log/apache2/journalist-access.log'",
u'_uses_shell': True,
u'chdir': None,
u'creates': None,
u'executable': None,
u'removes': None,
u'warn': True},
'module_name': u'command'},
u'rc': 0,
u'start': u'2017-06-02 01:03:11.228901',
u'stderr': u'',
u'stdout': u'0',
'stdout_lines': [u'0'],
u'warnings': [u"Consider using 'become', 'become_method', and 'become_user' rather than running sudo"]}
INFO:testinfra:RUN CommandResult(command=u"sudo /bin/sh -c 'stat -c %s /var/log/apache2/journalist-access.log'", exit_status=0, stdout='0', stderr=u'')
INFO:testinfra:RUN Ansible(u'shell', u"sudo /bin/sh -c 'curl http://127.0.0.1:8080'", {}): {'_ansible_no_log': False,
'_ansible_parsed': True,
u'changed': True,
u'cmd': u"sudo /bin/sh -c 'curl http://127.0.0.1:8080'",
u'delta': u'0:00:00.241123',
u'end': u'2017-06-02 01:03:12.242753',
'failed': True,
'invocation': {u'module_args': {u'_raw_params': u"sudo /bin/sh -c 'curl http://127.0.0.1:8080'",
u'_uses_shell': True,
u'chdir': None,
u'creates': None,
u'executable': None,
u'removes': None,
u'warn': True},
'module_name': u'command'},
u'rc': 7,
u'start': u'2017-06-02 01:03:12.001630',
u'stderr': u' % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused',
u'stdout': u'',
'stdout_lines': [],
u'warnings': [u"Consider using 'become', 'become_method', and 'become_user' rather than running sudo"]}
INFO:testinfra:RUN CommandResult(command=u"sudo /bin/sh -c 'curl http://127.0.0.1:8080'", exit_status=7, stdout=u'', stderr=' % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused')
=================================================================== pytest-warning summary ===================================================================
WP1 None Module already imported so can not be re-written: testinfra
====================================== 1 failed, 278 passed, 1 skipped, 1 xfailed, 1 pytest-warnings in 161.45 seconds =======================================
Traceback (most recent call last):
File "./testinfra/test.py", line 134, in <module>
run_testinfra(target_host)
File "./testinfra/test.py", line 131, in run_testinfra
subprocess.check_call(testinfra_command)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['testinfra', '-vv', '-n', 'auto', '--connection', 'ansible', '--ansible-inventory', '.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory', '--hosts', 'app-staging', 'testinfra/app', 'testinfra/app-code', 'testinfra/common', 'testinfra/development/test_xvfb.py']' returned non-zero exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment