Merge lp:~zorba-coders/zorba/fix-tutorial-schema into lp:zorba

Proposed by Chris Hillery
Status: Merged
Approved by: Markos Zaharioudakis
Approved revision: 11530
Merged at revision: 11530
Proposed branch: lp:~zorba-coders/zorba/fix-tutorial-schema
Merge into: lp:zorba
Diff against target: 88 lines (+8/-7)
6 files modified
doc/cxx/examples/uri_resolvers.cpp (+1/-1)
doc/zorba/uriresolvers.dox (+1/-1)
test/api/import-hello.xsd (+1/-1)
test/api/userdefined_uri_resolution.cpp (+3/-3)
test/api/validate.cpp (+1/-1)
test/http-test-data/docroot/tutorial/helloworld.xsd (+1/-0)
To merge this branch: bzr merge lp:~zorba-coders/zorba/fix-tutorial-schema
Reviewer Review Type Date Requested Status
Markos Zaharioudakis Approve
Chris Hillery Approve
Review via email: mp+170582@code.launchpad.net

Commit message

Moved "tutorial" schema into same pool as http-test-data; updated URIs.

Description of the change

This fixes tests on the RQ broken by the http://www.zorba-xquery.com/ upgrade.

To post a comment you must log in.
Revision history for this message
Chris Hillery (ceejatec) :
review: Approve
Revision history for this message
Markos Zaharioudakis (markos-za) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job fix-tutorial-schema-2013-06-20T11-10-47.267Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/cxx/examples/uri_resolvers.cpp'
2--- doc/cxx/examples/uri_resolvers.cpp 2013-05-28 00:58:27 +0000
3+++ doc/cxx/examples/uri_resolvers.cpp 2013-06-20 11:10:32 +0000
4@@ -41,7 +41,7 @@
5 return;
6 }
7 if(aUri == "http://www.zorba-xquery.com/helloworld") {
8- oUris.push_back("http://www.zorba-xquery.com/tutorials/helloworld.xsd");
9+ oUris.push_back("http://zorbatest.lambda.nu:8080/tutorial/helloworld.xsd");
10 }
11 }
12 };
13
14=== modified file 'doc/zorba/uriresolvers.dox'
15--- doc/zorba/uriresolvers.dox 2013-02-07 17:24:36 +0000
16+++ doc/zorba/uriresolvers.dox 2013-06-20 11:10:32 +0000
17@@ -377,7 +377,7 @@
18 return;
19 }
20 if(aUri == "http://www.example.com/helloworld") {
21- oUris.push_back("http://examples.com/schemas/helloworld.xsd");
22+ oUris.push_back("http://example.com/schemas/helloworld.xsd");
23 }
24 }
25 };
26
27=== modified file 'test/api/import-hello.xsd'
28--- test/api/import-hello.xsd 2012-04-24 10:17:48 +0000
29+++ test/api/import-hello.xsd 2013-06-20 11:10:32 +0000
30@@ -2,6 +2,6 @@
31 xmlns="http://www.zorba-xquery.com/import-hello"
32 targetNamespace="http://www.zorba-xquery.com/import-hello"
33 elementFormDefault="qualified">
34- <xs:import schemaLocation="http://www.zorba-xquery.com/tutorials/helloworld.xsd"/>
35+ <xs:import schemaLocation="http://zorbatest.lambda.nu:8080/tutorial/helloworld.xsd"/>
36 </xs:schema>
37
38
39=== modified file 'test/api/userdefined_uri_resolution.cpp'
40--- test/api/userdefined_uri_resolution.cpp 2013-02-07 17:24:36 +0000
41+++ test/api/userdefined_uri_resolution.cpp 2013-06-20 11:10:32 +0000
42@@ -46,7 +46,7 @@
43 return;
44 }
45 if(aUri == "http://www.zorba-xquery.com/helloworld") {
46- oUris.push_back("http://www.zorba-xquery.com/tutorials/helloworld.xsd");
47+ oUris.push_back("http://zorbatest.lambda.nu:8080/tutorial/helloworld.xsd");
48 }
49 }
50 };
51@@ -84,7 +84,7 @@
52 std::vector<zorba::String>& oUris) throw ()
53 {
54 // Deny access to an URI that would otherwise work
55- if(aUri == "http://www.zorba-xquery.com/tutorials/helloworld.xsd" ||
56+ if(aUri == "http://zorbatest.lambda.nu:8080/tutorial/helloworld.xsd" ||
57 aUri == "http://www.zorba-xquery.com/modules/fetch" ||
58 aUri == "http://expath.org/ns/file") {
59 oUris.push_back(URIMapper::DENY_ACCESS);
60@@ -324,7 +324,7 @@
61 try {
62 XQuery_t lQuery = aZorba->compileQuery
63 ("import schema namespace lm="
64- "'http://www.zorba-xquery.com/tutorials/helloworld.xsd'; "
65+ "'http://zorbatest.lambda.nu:8080/tutorial/helloworld.xsd'; "
66 "validate{ <p>Hello World!</p> }", lContext);
67 std::cout << lQuery << std::endl;
68 } catch (ZorbaException& e) {
69
70=== modified file 'test/api/validate.cpp'
71--- test/api/validate.cpp 2013-02-07 17:24:36 +0000
72+++ test/api/validate.cpp 2013-06-20 11:10:32 +0000
73@@ -41,7 +41,7 @@
74 return;
75 }
76 if(aUri == "http://www.zorba-xquery.com/helloworld") {
77- oUris.push_back("http://www.zorba-xquery.com/tutorials/helloworld.xsd");
78+ oUris.push_back("http://zorbatest.lambda.nu:8080/tutorial/helloworld.xsd");
79 }
80 }
81 };
82
83=== added directory 'test/http-test-data/docroot/tutorial'
84=== added file 'test/http-test-data/docroot/tutorial/helloworld.xsd'
85--- test/http-test-data/docroot/tutorial/helloworld.xsd 1970-01-01 00:00:00 +0000
86+++ test/http-test-data/docroot/tutorial/helloworld.xsd 2013-06-20 11:10:32 +0000
87@@ -0,0 +1,1 @@
88+<?xml version='1.0'?><xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'><xsd:element name='p' type='xsd:string'/></xsd:schema>

Subscribers

People subscribed via source and target branches