commit 1f011542bba73f3c01b674a1630e9a2df9bc5b31a41bd620b39ee4f410fe715e from: Stefan Sperling date: Sat Apr 11 08:36:05 2026 UTC add a test case for UTF-8 repository owner names in gotsys.conf test and review/ok Kyle Ackerman commit - 38593aa7708aaf3555b8769576a06d7b98bd16f2e794700a37920a9cf375b9c1 commit + 1f011542bba73f3c01b674a1630e9a2df9bc5b31a41bd620b39ee4f410fe715e blob - ac9d41d902211b9e797bf592c6ec88d9431f8af89d40d06876a58af6be0a25c4 blob + b6bf90d0f30abc3ab290ba8c0f79c10d0ede37d3c61b14c2dd9e98e53ff43df3 --- regress/gotsysd/test_gotwebd.sh +++ regress/gotsysd/test_gotwebd.sh @@ -1104,8 +1104,242 @@ EOF test_done "$testroot" "$ret" } +test_utf8_site_owner() { + local testroot=`test_init utf8_site_owner 1` + + GOTSYS_ECDSA_HOST_FP=$(ssh -i ${GOTSYSD_SSH_KEY} \ + ${GOTSYSD_TEST_USER}@${VMIP} \ + ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub | \ + cut -d' ' -f2) + GOTSYS_ED25519_HOST_FP=$(ssh -i ${GOTSYSD_SSH_KEY} \ + ${GOTSYSD_TEST_USER}@${VMIP} \ + ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | \ + cut -d' ' -f2) + GOTSYS_RSA_HOST_FP=$(ssh -i ${GOTSYSD_SSH_KEY} \ + ${GOTSYSD_TEST_USER}@${VMIP} \ + ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub | \ + cut -d' ' -f2) + + got checkout -q $testroot/${GOTSYS_REPO} $testroot/wt >/dev/null + ret=$? + if [ $ret -ne 0 ]; then + echo "got checkout failed unexpectedly" >&2 + test_done "$testroot" 1 + return 1 + fi + + crypted_vm_pw=`echo ${GOTSYSD_VM_PASSWORD} | encrypt | tr -d '\n'` + crypted_pw=`echo ${GOTSYSD_DEV_PASSWORD} | encrypt | tr -d '\n'` + sshkey=`cat ${GOTSYSD_SSH_PUBKEY}` + cat > ${testroot}/wt/gotsys.conf <