[lxc-devel] [lxd/master] Make sure a client certificate is generated

freeekanayaka on Github lxc-bot at linuxcontainers.org
Mon Apr 24 09:58:47 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 510 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170424/dcfaf9a2/attachment.bin>
-------------- next part --------------
From 5bcee9c618247abbb584a2dc74175d1c4797b606 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanayaka at gmail.com>
Date: Mon, 24 Apr 2017 11:55:35 +0200
Subject: [PATCH] Make sure a client certificate is generated

The serverconfig.sh relies on client.crt being generated, running
`lxc remote add` (via ensure_has_localhost_remote) does the trick.

With this branch "sudo -E ./main.sh server_config" will no longer
fail.
---
 test/suites/serverconfig.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/suites/serverconfig.sh b/test/suites/serverconfig.sh
index 8a75e78..7b2a100 100644
--- a/test/suites/serverconfig.sh
+++ b/test/suites/serverconfig.sh
@@ -4,6 +4,7 @@ test_server_config() {
   LXD_SERVERCONFIG_DIR=$(mktemp -d -p "${TEST_DIR}" XXX)
   spawn_lxd "${LXD_SERVERCONFIG_DIR}" true
 
+  ensure_has_localhost_remote "${LXD_ADDR}"
   lxc config set core.trust_password 123456
 
   config=$(lxc config show)


More information about the lxc-devel mailing list