← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~zorba-coders/zorba/test-bug-1070551 into lp:zorba/security-module

 

Matthias Brantner has proposed merging lp:~zorba-coders/zorba/test-bug-1070551 into lp:zorba/security-module.

Commit message:
test to cover bug 1070551 (zerr:ZOSE0003 stream read failure)

Requested reviews:
  Matthias Brantner (matthias-brantner)
  David Graf (davidagraf)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/test-bug-1070551/+merge/131101

test to cover bug 1070551 (zerr:ZOSE0003 stream read failure)
-- 
https://code.launchpad.net/~zorba-coders/zorba/test-bug-1070551/+merge/131101
Your team Zorba Coders is subscribed to branch lp:zorba/security-module.
=== added file 'test/ExpQueryResults/security/hash-binary2.xml.res'
--- test/ExpQueryResults/security/hash-binary2.xml.res	1970-01-01 00:00:00 +0000
+++ test/ExpQueryResults/security/hash-binary2.xml.res	2012-10-23 21:18:19 +0000
@@ -0,0 +1,1 @@
+true

=== added file 'test/Queries/security/hash-binary2.xq'
--- test/Queries/security/hash-binary2.xq	1970-01-01 00:00:00 +0000
+++ test/Queries/security/hash-binary2.xq	2012-10-23 21:18:19 +0000
@@ -0,0 +1,8 @@
+import module namespace f = "http://expath.org/ns/file";;
+import module namespace hash = "http://www.zorba-xquery.com/modules/cryptography/hash";;
+
+variable $f := f:read-binary(resolve-uri("ls"));
+
+variable $h := hash:sha1-binary($f);
+
+starts-with(<a attr="{$h || $f}"/>/@attr, "CT6WCSr3")


Follow ups