Skip to content

Commit 2d14a4c

Browse files
committed
testsuite: set system test certificate name
Problem: system instance tests do not set the certificate name, but this will be the recommended practice. Change flux-sharness.sh to set a certificate name of "testcert", then check that it appears in the "overlay auth" log messages in one of the system tests.
1 parent 26dd195 commit 2d14a4c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

t/sharness.d/flux-sharness.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ make_bootstrap_config() {
9999

100100
mkdir $workdir/conf.d
101101
mkdir $workdir/state
102-
flux keygen $workdir/cert
102+
flux keygen --name testcert $workdir/cert
103103
cat >$workdir/conf.d/bootstrap.toml <<-EOT
104104
[bootstrap]
105105
curve_cert = "$workdir/cert"

t/t3300-system-basic.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ test_expect_success 'startctl status works' '
3131
test_expect_success HAVE_JQ 'broker overlay shows 2 connected children' '
3232
test $(overlay_connected_children) -eq 2
3333
'
34+
test_expect_success 'testcert was used to authenticate' '
35+
flux dmesg |grep "overlay auth" >auth.log &&
36+
grep testcert auth.log
37+
'
3438

3539
test_expect_success 'overlay status is full' '
3640
test "$(flux overlay status --timeout=0 --summary)" = "full"

0 commit comments

Comments
 (0)