From 98ff7b34289cfa5f5e5b5fe9e4f0cfcb1b985389 Mon Sep 17 00:00:00 2001 From: missytake Date: Fri, 12 Dec 2025 10:30:55 +0100 Subject: [PATCH] ci: try without test_status_cmd --- .../src/cmdeploy/tests/online/test_1_basic.py | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/cmdeploy/src/cmdeploy/tests/online/test_1_basic.py b/cmdeploy/src/cmdeploy/tests/online/test_1_basic.py index 2b55f6bf..5c744c72 100644 --- a/cmdeploy/src/cmdeploy/tests/online/test_1_basic.py +++ b/cmdeploy/src/cmdeploy/tests/online/test_1_basic.py @@ -1,5 +1,5 @@ import datetime -import os +#import os import smtplib import socket import subprocess @@ -8,7 +8,7 @@ import time import pytest from cmdeploy import remote -from cmdeploy.cmdeploy import main +#from cmdeploy.cmdeploy import main from cmdeploy.sshexec import SSHExec @@ -70,44 +70,44 @@ class TestSSHExecutor: assert (now - since_date).total_seconds() < 60 * 60 * 51 -def test_status_cmd(chatmail_config, capsys, request): - os.chdir(request.config.invocation_params.dir) - assert main(["status"]) == 0 - status_out = capsys.readouterr() - print(status_out.out) - - services = [ - "acmetool-redirector", - "chatmail-metadata", - "doveauth", - "dovecot", - "fcgiwrap", - "filtermail-incoming", - "filtermail", - "lastlogin", - "nginx", - "opendkim", - "postfix@-", - "systemd-journald", - "turnserver", - "unbound", - ] - not_running = [] - for service in services: - active = False - for line in status_out: - if service in line: - active = True - if not "loaded" in line: - active = False - if not "active" in line: - active = False - if not "running" in line: - active = False - break - if not active: - not_running.append(service) - assert not_running == [] +#def test_status_cmd(chatmail_config, capsys, request): +# os.chdir(request.config.invocation_params.dir) +# assert main(["status"]) == 0 +# status_out = capsys.readouterr() +# print(status_out.out) +# +# services = [ +# "acmetool-redirector", +# "chatmail-metadata", +# "doveauth", +# "dovecot", +# "fcgiwrap", +# "filtermail-incoming", +# "filtermail", +# "lastlogin", +# "nginx", +# "opendkim", +# "postfix@-", +# "systemd-journald", +# "turnserver", +# "unbound", +# ] +# not_running = [] +# for service in services: +# active = False +# for line in status_out: +# if service in line: +# active = True +# if not "loaded" in line: +# active = False +# if not "active" in line: +# active = False +# if not "running" in line: +# active = False +# break +# if not active: +# not_running.append(service) +# assert not_running == [] def test_timezone_env(remote):