mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-29 22:27:03 +01:00
test: update duplicate client error message check
This commit is contained in:
@@ -203,7 +203,7 @@ if [ "$DUPLICATE_EXIT_CODE" -ne 1 ]; then
|
|||||||
cat "$DUPLICATE_OUTPUT"
|
cat "$DUPLICATE_OUTPUT"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if grep -q "The specified client CN was already found in easy-rsa" "$DUPLICATE_OUTPUT"; then
|
if grep -q "The specified client CN was already found" "$DUPLICATE_OUTPUT"; then
|
||||||
echo "PASS: Duplicate client name correctly rejected with exit code 1"
|
echo "PASS: Duplicate client name correctly rejected with exit code 1"
|
||||||
else
|
else
|
||||||
echo "FAIL: Expected error message for duplicate client name not found"
|
echo "FAIL: Expected error message for duplicate client name not found"
|
||||||
|
|||||||
Reference in New Issue
Block a user