Created
April 13, 2018 16:40
-
-
Save bparafina/fe0d41f0d0a53537c9ed1875dedee6b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_netdata_is_listening(Socket): | |
socket = Socket("tcp://0.0.0.0:19999") | |
assert socket.is_listening | |
def test_netdata_service_is_running(Service): | |
service = Service("netdata") | |
assert service.is_running | |
assert service.is_enabled | |
def test_netdata_conf_file(File): | |
netdata_conf = File("/etc/netdata/netdata.conf") | |
assert netdata_conf.contains("[backend]") | |
assert netdata_conf.contains("[registry]") | |
def test_netdata_web_log_file(File): | |
web_log_conf = File("/etc/netdata/python.d/web_log.conf") | |
assert web_log_conf.contains("/var/log/nginx/access.log") | |
assert web_log_conf.contains("nginx_test") | |
assert web_log_conf.contains("go: '^/bullshit'") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment