public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/corosync-qdevice] rawhide: Fix smoke test
@ 2026-09-04 10:55 Jan Friesse
  0 siblings, 0 replies; 2+ messages 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 : rawhide
            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=rawhide

            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] 2+ messages in thread
* [rpms/corosync-qdevice] rawhide: Fix smoke test
@ 2026-08-05  7:50 Jan Friesse
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Friesse @ 2026-08-05  7:50 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/corosync-qdevice
            Branch : rawhide
            Commit : bbc2c90fd5f1994a892b9ad0bc375cb0aae95b3a
            Author : Jan Friesse <jfriesse@redhat.com>
            Date   : 2026-08-05T09:50:15+02:00
            Stats  : +2/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/corosync-qdevice/c/bbc2c90fd5f1994a892b9ad0bc375cb0aae95b3a?branch=rawhide

            Log:
            Fix smoke test

Replace which by type -P.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

---
diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh
index efdb5dc..b3d4ad2 100755
--- a/tests/smoke/runtest.sh
+++ b/tests/smoke/runtest.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-# This file was autogenerated at 2019-05-13T13:43:38+02:00 from 90bd97ada89befa1a63133335a419ad7311c3d75
+# This file was autogenerated at 2026-08-05T09:47:04+02:00 from 9c61d98aafda92e884ffb4f7100908760a36ad9e
 
 # Copyright (c) 2019, Red Hat, Inc.
 #
@@ -77,7 +77,7 @@ generate_corosync_conf() {
         token="$2"
     fi
     qdevice="$3"
-    true_command=`which true`
+    true_command=`type -P true`
 
 cat << _EOF_
     totem {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-04 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 10:55 [rpms/corosync-qdevice] rawhide: Fix smoke test Jan Friesse
  -- strict thread matches above, loose matches on Subject: below --
2026-08-05  7:50 Jan Friesse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox