kola/tests: ensure Afterburn SSH key tests didn't set keys via Ignition
fcos.ignition.misc.empty and fcos.ignition.v3.noop assume that SSH keys
are not being passed via Ignition, but weren't actually verifying that.
Have them check that Ignition has not written any SSH keys to the node.
@@ -45,5 +45,9 @@ func init() {
})
}
-func empty(_ cluster.TestCluster) {
+func empty(c cluster.TestCluster) {
+ m := c.Machines()[0]
+ // check that the test harness correctly skipped passing SSH keys
+ // via Ignition
+ c.MustSSH(m, "[ ! -e ~/.ssh/authorized_keys.d/ignition ]")
}
