mirror of
https://github.com/chatmail/relay.git
synced 2026-05-22 13:58:07 +00:00
CI: wait with VRFY test until echobot is logged in
This commit is contained in:
2
.github/workflows/test-and-deploy.yaml
vendored
2
.github/workflows/test-and-deploy.yaml
vendored
@@ -79,7 +79,7 @@ jobs:
|
|||||||
ssh root@ns.testrun.org systemctl reload nsd
|
ssh root@ns.testrun.org systemctl reload nsd
|
||||||
|
|
||||||
- name: cmdeploy test
|
- name: cmdeploy test
|
||||||
run: sleep 60; CHATMAIL_DOMAIN2=nine.testrun.org cmdeploy test --slow
|
run: CHATMAIL_DOMAIN2=nine.testrun.org cmdeploy test --slow
|
||||||
|
|
||||||
- name: cmdeploy dns (try 3 times)
|
- name: cmdeploy dns (try 3 times)
|
||||||
run: cmdeploy dns || cmdeploy dns || cmdeploy dns
|
run: cmdeploy dns || cmdeploy dns || cmdeploy dns
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import pytest
|
|||||||
import threading
|
import threading
|
||||||
import queue
|
import queue
|
||||||
import socket
|
import socket
|
||||||
|
import time
|
||||||
|
|
||||||
from chatmaild.config import read_config
|
from chatmaild.config import read_config
|
||||||
from cmdeploy.cmdeploy import main
|
from cmdeploy.cmdeploy import main
|
||||||
@@ -81,7 +82,14 @@ def test_concurrent_logins_same_account(
|
|||||||
assert login_results.get()
|
assert login_results.get()
|
||||||
|
|
||||||
|
|
||||||
def test_no_vrfy(chatmail_config):
|
def test_no_vrfy(chatmail_config, remote):
|
||||||
|
found = False
|
||||||
|
while not found:
|
||||||
|
for line in remote.iter_output(logcmd="journalctl -u echobot"):
|
||||||
|
print(line)
|
||||||
|
if "successfully logged into imap server" in line:
|
||||||
|
found = True
|
||||||
|
break
|
||||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
sock.connect((chatmail_config.mail_domain, 25))
|
sock.connect((chatmail_config.mail_domain, 25))
|
||||||
banner = sock.recv(1024)
|
banner = sock.recv(1024)
|
||||||
|
|||||||
Reference in New Issue
Block a user