Skip to content

Commit

Permalink
Add better error mesage to ctrl_cert_change test
Browse files Browse the repository at this point in the history
Fix error message when server signing certificate
does not match the uploaded one

Signed-off-by: Paul Gaiduk <[email protected]>
  • Loading branch information
europaul authored and uncleDecart committed Oct 31, 2024
1 parent f81d991 commit 21d0178
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/eclient/testdata/ctrl_cert_change.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,8 @@ test:
EDEN={{EdenConfig "eden.root"}}/{{EdenConfig "eden.bin-dist"}}/{{EdenConfig "eden.eden-bin"}}
$EDEN eve ssh cat /persist/certs/server-signing-cert.pem > /tmp/server-signing-cert.pem
diff -Z /tmp/signing-new.pem /tmp/server-signing-cert.pem
status=$?
if [ $status -ne 0 ]; then
echo "Error: Current server signing certificate does not match the uploaded one." >&2
fi
exit $status

0 comments on commit 21d0178

Please sign in to comment.