From d81b21e46f325d0c12df3054fe08aa29bb1061f3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 18 Apr 2017 12:16:10 +0300 Subject: Add support for task manifest trust value --- tests/manifest/task.test | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests/manifest/task.test') diff --git a/tests/manifest/task.test b/tests/manifest/task.test index 09777b1..cbb4598 100644 --- a/tests/manifest/task.test +++ b/tests/manifest/task.test @@ -16,6 +16,8 @@ test.options += -t name: libfoo version: 1.0 repository: http://pkg.example.org/1/math + trust: AB:0D:3F:C1:B0:13:E4:0E:AD:4A:08:06:AE:F3:85:DB:E2:27:5F:83:11:47:A2:7\ + 8:64:3C:73:60:F8:66:3A:A4 machine: windows_10-msvc_14 target: x86_64-microsoft-win32-msvc14.0 config: config.cc.coptions=/Z7 config.cc.loptions=/DEBUG @@ -68,6 +70,19 @@ test.options += -t config: abc='a "b '"d\e x y=" EOF } + + : trust-yes + : + $* <>EOF + : 1 + name: libfoo + version: 1.0 + repository: http://pkg.example.org/1/math + trust: yes + machine: windows_10-msvc_14 + target: x86_64-microsoft-win32-msvc14.0 + config: config.cc.coptions=/Z7 config.cc.loptions=/DEBUG + EOF } : redefinition @@ -210,6 +225,13 @@ test.options += -t EOI } } + + : trust + : + $* <'stdin:2:8: error: invalid repository certificate fingerprint' == 1 + : 1 + trust: abc + EOI } : unknown-name -- cgit v1.1