summaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/files/tests-add-no-validate-when-using-download-template.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/lxc/files/tests-add-no-validate-when-using-download-template.patch')
-rw-r--r--recipes-containers/lxc/files/tests-add-no-validate-when-using-download-template.patch87
1 files changed, 87 insertions, 0 deletions
diff --git a/recipes-containers/lxc/files/tests-add-no-validate-when-using-download-template.patch b/recipes-containers/lxc/files/tests-add-no-validate-when-using-download-template.patch
new file mode 100644
index 00000000..81fd15d6
--- /dev/null
+++ b/recipes-containers/lxc/files/tests-add-no-validate-when-using-download-template.patch
@@ -0,0 +1,87 @@
1From 0dad69a3bd306cc701c8bd4df4ea47f0ec5f9150 Mon Sep 17 00:00:00 2001
2From: Mark Asselstine <mark.asselstine@windriver.com>
3Date: Thu, 31 May 2018 15:14:26 -0400
4Subject: [PATCH] tests: add '--no-validate' when using download template
5
6We are usually running the ptests with core-image-minimal which has no
7mechanism to validate the downloads. Validation isn't really of
8interest to this test at any rate so simply add '--no-validate' to
9avoid failing due to no GPG validation.
10
11Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
12---
13 src/tests/lxc-test-apparmor-mount | 2 +-
14 src/tests/lxc-test-autostart | 2 +-
15 src/tests/lxc-test-no-new-privs | 2 +-
16 src/tests/lxc-test-unpriv | 2 +-
17 src/tests/lxc-test-usernic.in | 2 +-
18 5 files changed, 5 insertions(+), 5 deletions(-)
19
20diff --git a/src/tests/lxc-test-apparmor-mount b/src/tests/lxc-test-apparmor-mount
21index ddcee8a..d3d2c49 100755
22--- a/src/tests/lxc-test-apparmor-mount
23+++ b/src/tests/lxc-test-apparmor-mount
24@@ -157,7 +157,7 @@ if [ -f /etc/lsb-release ]; then
25 done
26 fi
27
28-run_cmd lxc-create -t download -n $cname -- -d ubuntu -r $release -a $ARCH
29+run_cmd lxc-create -t download -n $cname -- --no-validate -d ubuntu -r $release -a $ARCH
30
31 echo "test default confined container"
32 run_cmd lxc-start -n $cname -d
33diff --git a/src/tests/lxc-test-autostart b/src/tests/lxc-test-autostart
34index e5b651b..d15b79b 100755
35--- a/src/tests/lxc-test-autostart
36+++ b/src/tests/lxc-test-autostart
37@@ -55,7 +55,7 @@ if [ -f /etc/lsb-release ]; then
38 done
39 fi
40
41-lxc-create -t download -n $CONTAINER_NAME -B dir -- -d ubuntu -r $release -a $ARCH
42+lxc-create -t download -n $CONTAINER_NAME -B dir -- --no-validate -d ubuntu -r $release -a $ARCH
43 CONTAINER_PATH=$(dirname $(lxc-info -n $CONTAINER_NAME -c lxc.rootfs.path -H) | sed -e 's/dir://')
44 cp $CONTAINER_PATH/config $CONTAINER_PATH/config.bak
45
46diff --git a/src/tests/lxc-test-no-new-privs b/src/tests/lxc-test-no-new-privs
47index 8642992..e72bdf0 100755
48--- a/src/tests/lxc-test-no-new-privs
49+++ b/src/tests/lxc-test-no-new-privs
50@@ -47,7 +47,7 @@ if type dpkg >/dev/null 2>&1; then
51 ARCH=$(dpkg --print-architecture)
52 fi
53
54-lxc-create -t download -n c1 -- -d ubuntu -r xenial -a $ARCH
55+lxc-create -t download -n c1 -- --no-validate -d ubuntu -r xenial -a $ARCH
56 echo "lxc.no_new_privs = 1" >> /var/lib/lxc/c1/config
57
58 lxc-start -n c1
59diff --git a/src/tests/lxc-test-unpriv b/src/tests/lxc-test-unpriv
60index 16ff12d..0958d48 100755
61--- a/src/tests/lxc-test-unpriv
62+++ b/src/tests/lxc-test-unpriv
63@@ -173,7 +173,7 @@ run_cmd mkdir -p $HDIR/.cache/lxc
64 cp -R /var/cache/lxc/download $HDIR/.cache/lxc && \
65 chown -R $TUSER: $HDIR/.cache/lxc
66
67-run_cmd lxc-create -t download -n c1 -- -d ubuntu -r $release -a $ARCH
68+run_cmd lxc-create -t download -n c1 -- --no-validate -d ubuntu -r $release -a $ARCH
69
70 # Make sure we can start it - twice
71
72diff --git a/src/tests/lxc-test-usernic.in b/src/tests/lxc-test-usernic.in
73index 3e35008..f489286 100755
74--- a/src/tests/lxc-test-usernic.in
75+++ b/src/tests/lxc-test-usernic.in
76@@ -146,7 +146,7 @@ if [ -f /etc/lsb-release ]; then
77 fi
78
79 # Create three containers
80-run_cmd "lxc-create -t download -n b1 -- -d ubuntu -r $release -a $ARCH"
81+run_cmd "lxc-create -t download -n b1 -- --no-validate -d ubuntu -r $release -a $ARCH"
82 run_cmd "lxc-start -n b1 -d"
83 p1=$(run_cmd "lxc-info -n b1 -p -H")
84
85--
862.7.4
87