aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-26 18:01:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-26 18:19:59 +0300
commitfa00e853d17b40d9112cb856ca1f08dfe8500f20 (patch)
treeda7e677b3e33299ace4aefeda6470fd2e84e5f2c /tests/manifest
parent48fcedb09820aa8d99f1c051627a4f1335dbed6f (diff)
Store result request challenge as binary value
Diffstat (limited to 'tests/manifest')
-rw-r--r--tests/manifest/result-request.test21
1 files changed, 14 insertions, 7 deletions
diff --git a/tests/manifest/result-request.test b/tests/manifest/result-request.test
index 3e1e08c..f4845e6 100644
--- a/tests/manifest/result-request.test
+++ b/tests/manifest/result-request.test
@@ -14,7 +14,7 @@ test.options += -rq
$* <<EOF >>EOF
: 1
session: abcd
- challenge: xyz
+ challenge: YQo=
:
name: libfoo
version: 1.0
@@ -49,15 +49,15 @@ test.options += -rq
:
$* <<EOI 2>'stdin:3:1: error: result request challenge redefinition' == 1
: 1
- challenge: xyz
- challenge: xyz
+ challenge: YQo=
+ challenge: YQo=
EOI
}
-: empty
+: invalid
:
{
- : session
+ : empty-session
:
$* <<EOI 2>'stdin:2:9: error: empty result request session' == 1
: 1
@@ -66,6 +66,13 @@ test.options += -rq
: challenge
:
+ $* <<EOI 2>'stdin:2:12: error: invalid result request challenge' == 1
+ : 1
+ challenge: abc
+ EOI
+
+ : empty-challenge
+ :
$* <<EOI 2>'stdin:2:11: error: empty result request challenge' == 1
: 1
challenge:
@@ -86,7 +93,7 @@ EOI
:
$* <<EOI 2>'stdin:3:1: error: no result request session specified' == 1
: 1
- challenge: xyz
+ challenge: YQo=
EOI
: result
@@ -94,6 +101,6 @@ EOI
$* <<EOI 2>'stdin:4:1: error: result manifest expected' == 1
: 1
session: abc
- challenge: xyz
+ challenge: YQo=
EOI
}