Skip to content

Commit 2c42ee7

Browse files
committed
[fix] fjx
1 parent 03685d0 commit 2c42ee7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_addresses.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
basic tests for address handling of DeployThreads
55
"""
66

7+
import socket
78
import pytest
89

910
from opsideployclientagent.common import DeployThread
1011

1112
BACKEND = None
13+
SUFFIX = ".".join(socket.getfqdn().split(".")[1:])
1214

1315

1416
@pytest.mark.parametrize(
@@ -37,8 +39,8 @@ def test_detect_deployment_method(host, method, result_method):
3739
"host, result_host",
3840
(
3941
("localhost.domain.local", "localhost.domain.local"),
40-
("127.0.0.1", "localhost.domain.local"),
41-
("localhost", "localhost.domain.local"),
42+
("127.0.0.1", f"localhost.{SUFFIX}"),
43+
("localhost", f"localhost.{SUFFIX}"),
4244
),
4345
)
4446
def test_set_host_id(host, result_host):

0 commit comments

Comments
 (0)