Testsuite: generate WireGuard default keypair

Now all the loaded configs will support WireGuard interfaces, too. They now cat
refer to the default-keypair to secure the link.
This commit is contained in:
Christian Poessinger 2021-01-30 15:57:34 +01:00
parent 2801efd101
commit 1bc9b8dda5

View File

@ -350,7 +350,11 @@ try:
# else, run configtest suite
else:
log.info("Executing load config tests")
log.info('Generating a WireGuard default keypair')
c.sendline('generate wireguard default-keypair')
c.expect(r'vyos@vyos:~\$')
log.info('Executing load config tests')
c.sendline('/usr/bin/vyos-configtest')
i = c.expect(['\n +Invalid command:', 'No such file or directory',
r'\n\S+@\S+[$#]'], timeout=3600)