summaryrefslogtreecommitdiff
path: root/test/test_e2e.py
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2023-11-25 15:49:09 +0900
committerRyo Nakamura <upa@haeena.net>2023-11-25 15:49:09 +0900
commit2b71c4bf8c8c072661dbe0c1a0e7bfe1539cb439 (patch)
treee590df8d5bdcdaa1cc77aa881dd2184aad1c6ea1 /test/test_e2e.py
parent0cf3acee20f9b3f5c5961e754ab33c59b8dd4bb9 (diff)
add -P, equivalent to -p for just compatibility
and add a test case for -p and -P
Diffstat (limited to 'test/test_e2e.py')
-rw-r--r--test/test_e2e.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_e2e.py b/test/test_e2e.py
index f01b55d..4332f6c 100644
--- a/test/test_e2e.py
+++ b/test/test_e2e.py
@@ -301,6 +301,14 @@ def test_dont_truncate_dst(mscp, src_prefix, dst_prefix):
f.cleanup()
@pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix)
+@pytest.mark.parametrize("src, dst", param_single_copy)
+def test_set_port(mscp, src_prefix, dst_prefix, src, dst):
+ src.make()
+ run2ng([mscp, "-H", "-vvv", "-p", 21, src_prefix + src.path, dst_prefix + dst.path])
+ run2ng([mscp, "-H", "-vvv", "-P", 21, src_prefix + src.path, dst_prefix + dst.path])
+ src.cleanup()
+
+@pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix)
def test_set_conn_interval(mscp, src_prefix, dst_prefix):
srcs = []
dsts = []