aboutsummaryrefslogtreecommitdiffstats
path: root/application-preprocessor
diff options
context:
space:
mode:
authorHarald Musum <musum@yahoo-inc.com>2017-04-20 11:11:00 +0200
committerHarald Musum <musum@yahoo-inc.com>2017-04-20 11:11:00 +0200
commitde9a90e041144cedfe9c1ac45a90d46693c7ae17 (patch)
tree9ed9cb1ae4a852f3bde8f7d11ec0b145cc35b7cc /application-preprocessor
parent8b4fadca9ab7911dfba3433dd73686d5aab9a22b (diff)
Add test app
Diffstat (limited to 'application-preprocessor')
-rw-r--r--application-preprocessor/src/test/resources/simple/hosts.xml6
-rw-r--r--application-preprocessor/src/test/resources/simple/searchdefinitions/music.sd8
-rw-r--r--application-preprocessor/src/test/resources/simple/services.xml18
3 files changed, 32 insertions, 0 deletions
diff --git a/application-preprocessor/src/test/resources/simple/hosts.xml b/application-preprocessor/src/test/resources/simple/hosts.xml
new file mode 100644
index 00000000000..700f55414fe
--- /dev/null
+++ b/application-preprocessor/src/test/resources/simple/hosts.xml
@@ -0,0 +1,6 @@
+<!-- Copyright 2017 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<hosts xmlns:deploy="vespa" xmlns:preprocess="properties">
+ <host name="localhost">
+ <alias>node1</alias>
+ </host>
+</hosts>
diff --git a/application-preprocessor/src/test/resources/simple/searchdefinitions/music.sd b/application-preprocessor/src/test/resources/simple/searchdefinitions/music.sd
new file mode 100644
index 00000000000..bb399edb86c
--- /dev/null
+++ b/application-preprocessor/src/test/resources/simple/searchdefinitions/music.sd
@@ -0,0 +1,8 @@
+# Copyright 2017 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search music {
+ document music {
+ field f type string {
+ indexing: index | summary
+ }
+ }
+}
diff --git a/application-preprocessor/src/test/resources/simple/services.xml b/application-preprocessor/src/test/resources/simple/services.xml
new file mode 100644
index 00000000000..d910fc46304
--- /dev/null
+++ b/application-preprocessor/src/test/resources/simple/services.xml
@@ -0,0 +1,18 @@
+<!-- Copyright 2017 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<services version='1.0' xmlns:deploy="vespa" xmlns:preprocess="properties">
+ <preprocess:properties>
+ <qrs.port>4099</qrs.port>
+ <qrs.port>5000</qrs.port>
+ </preprocess:properties>
+
+ <preprocess:properties deploy:environment='prod'>
+ <qrs.port deploy:region='us-west'>5001</qrs.port>
+ <qrs.port deploy:region='us-east'>5002</qrs.port>
+ </preprocess:properties>
+ <admin version='2.0'>
+ <adminserver hostalias='node0'/>
+ </admin>
+ <admin version='2.0' deploy:environment='prod'>
+ <adminserver hostalias='node1'/>
+ </admin>
+</services>