changeset 1887:30fd047f6ebf

Fix pytest incorrect skip "reason" string No change to functionality
author Matt Johnston <matt@ucc.asn.au>
date Wed, 16 Mar 2022 17:32:43 +0800
parents e128d6bc3d8f
children a7b66ea18632
files test/test_svrauth.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_svrauth.py	Wed Mar 16 17:25:03 2022 +0800
+++ b/test/test_svrauth.py	Wed Mar 16 17:32:43 2022 +0800
@@ -8,21 +8,21 @@
 # Tests for server side authentication
 
 # Requires keyfile and authorized_keys set up in github action build.yml
[email protected]('DBTEST_IN_ACTION' not in os.environ, reason="DBTEST_PUBKEYINFO not set")
[email protected]('DBTEST_IN_ACTION' not in os.environ, reason="DBTEST_IN_ACTION not set")
 def test_pubkeyinfo(request, dropbear):
 	kf = str(Path.home() / ".ssh/id_dropbear_key2")
 	r = dbclient(request, "-i", kf, "echo -n $SSH_PUBKEYINFO", capture_output=True)
 	# stop at first space
 	assert r.stdout.decode() == "key2"
 
[email protected]('DBTEST_IN_ACTION' not in os.environ, reason="DBTEST_PUBKEYINFO not set")
[email protected]('DBTEST_IN_ACTION' not in os.environ, reason="DBTEST_IN_ACTION not set")
 def test_pubkeyinfo_special(request, dropbear):
 	kf = str(Path.home() / ".ssh/id_dropbear_key3")
 	r = dbclient(request, "-i", kf, "echo -n $SSH_PUBKEYINFO", capture_output=True)
 	# comment contains special characters so the SSH_PUBKEYINFO should not be set
 	assert r.stdout.decode() == ""
 
[email protected]('DBTEST_IN_ACTION' not in os.environ, reason="DBTEST_PUBKEYINFO not set")
[email protected]('DBTEST_IN_ACTION' not in os.environ, reason="DBTEST_IN_ACTION not set")
 def test_pubkeyinfo_okchar(request, dropbear):
 	kf = str(Path.home() / ".ssh/id_dropbear_key4")
 	r = dbclient(request, "-i", kf, "echo -n $SSH_PUBKEYINFO", capture_output=True)