public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/corosync-qdevice] f45: Fix smoke test
@ 2026-09-04 10:55 Jan Friesse
0 siblings, 0 replies; only message in thread
From: Jan Friesse @ 2026-09-04 10:55 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/corosync-qdevice
Branch : f45
Commit : a6245f56476647f23cd1e27ba330509aed7d57f8
Author : Jan Friesse <jfriesse@redhat.com>
Date : 2026-09-04T12:55:15+02:00
Stats : +17/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/corosync-qdevice/c/a6245f56476647f23cd1e27ba330509aed7d57f8?branch=f45
Log:
Fix smoke test
Corosync now enforces encryption so fix test to cope with this change.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
---
diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh
index b3d4ad2..0401175 100755
--- a/tests/smoke/runtest.sh
+++ b/tests/smoke/runtest.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# This file was autogenerated at 2026-08-05T09:47:04+02:00 from 9c61d98aafda92e884ffb4f7100908760a36ad9e
+# This file was autogenerated at 2026-09-04T12:48:50+02:00 from 4a8906be01ce1558e78c6ffb775871a96a09ebaa
# Copyright (c) 2019, Red Hat, Inc.
#
@@ -36,6 +36,7 @@ COROSYNC_SYSCONFD="${PREFIX}etc/corosync"
COROSYNC_CONF="${COROSYNC_SYSCONFD}/corosync.conf"
COROSYNC_AUTHKEY="${COROSYNC_SYSCONFD}/authkey"
COROSYNC_CLUSTER_NAME="smoketestcluster"
+COROSYNC_ENFORCE_ENCRYPTION=true
TOKEN_TIMEOUT=1000
MAX_REPEATS=60
@@ -209,7 +210,7 @@ test_qdevice_start() {
}
test_corosync_start() {
- generate_corosync_conf "off" "" "on" > "$COROSYNC_CONF"
+ generate_corosync_conf "on" "" "on" > "$COROSYNC_CONF"
cat "$COROSYNC_CONF"
service_start "corosync"
@@ -317,6 +318,18 @@ test_qdevice_qnetd_man_pages() {
done
}
+test_corosync_keygen() {
+ rm -f "$COROSYNC_AUTHKEY"
+ corosync-keygen
+
+ # File exists
+ [ -f "$COROSYNC_AUTHKEY" ]
+
+ # ... and is not empty (wc format is "SIZE FILENAME" - remove FILENAME part)
+ wc_res=$(wc -c "$COROSYNC_AUTHKEY")
+ [ "${wc_res%% *}" -gt 0 ]
+}
+
########
# main #
########
@@ -332,6 +345,8 @@ test_qdevice_qnetd_man_pages
test_crt_creation
+test_corosync_keygen
+
test_qnetd_start
test_corosync_start
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-04 10:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 10:55 [rpms/corosync-qdevice] f45: Fix smoke test Jan Friesse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox