aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/test/apps/app-with-multiple-clusters
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-01-14 20:54:02 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-01-14 20:54:02 +0100
commit1e57b906a0ed44a8d745030842a482f2347fe1b5 (patch)
treebbf967c9dec65b44bf63312806867de8ee3ca25d /configserver/src/test/apps/app-with-multiple-clusters
parentb0b1736459aedca891d0ddb355e922d5e5c2c299 (diff)
Let all ApplicationReindexing users config-aware
This allows checking for valid clusters and document types when manipulating status. This commit also updates responses in the application/v2/ API to reflect this
Diffstat (limited to 'configserver/src/test/apps/app-with-multiple-clusters')
-rw-r--r--configserver/src/test/apps/app-with-multiple-clusters/hosts.xml7
-rw-r--r--configserver/src/test/apps/app-with-multiple-clusters/schemas/bar.sd14
-rw-r--r--configserver/src/test/apps/app-with-multiple-clusters/schemas/bax.sd10
-rw-r--r--configserver/src/test/apps/app-with-multiple-clusters/schemas/baz.sd10
-rw-r--r--configserver/src/test/apps/app-with-multiple-clusters/services.xml33
5 files changed, 74 insertions, 0 deletions
diff --git a/configserver/src/test/apps/app-with-multiple-clusters/hosts.xml b/configserver/src/test/apps/app-with-multiple-clusters/hosts.xml
new file mode 100644
index 00000000000..f4256c9fc81
--- /dev/null
+++ b/configserver/src/test/apps/app-with-multiple-clusters/hosts.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<hosts>
+ <host name="mytesthost">
+ <alias>node1</alias>
+ </host>
+</hosts>
diff --git a/configserver/src/test/apps/app-with-multiple-clusters/schemas/bar.sd b/configserver/src/test/apps/app-with-multiple-clusters/schemas/bar.sd
new file mode 100644
index 00000000000..b66695b17df
--- /dev/null
+++ b/configserver/src/test/apps/app-with-multiple-clusters/schemas/bar.sd
@@ -0,0 +1,14 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search bar {
+
+ field zoo type string {
+ indexing: input moo | index | summary
+ }
+
+ document bar {
+ field moo type string {
+ indexing: summary | attribute
+ }
+ }
+
+} \ No newline at end of file
diff --git a/configserver/src/test/apps/app-with-multiple-clusters/schemas/bax.sd b/configserver/src/test/apps/app-with-multiple-clusters/schemas/bax.sd
new file mode 100644
index 00000000000..f9f6aba766e
--- /dev/null
+++ b/configserver/src/test/apps/app-with-multiple-clusters/schemas/bax.sd
@@ -0,0 +1,10 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search bax {
+
+ document bax {
+ field moo type string {
+ indexing: summary | attribute
+ }
+ }
+
+} \ No newline at end of file
diff --git a/configserver/src/test/apps/app-with-multiple-clusters/schemas/baz.sd b/configserver/src/test/apps/app-with-multiple-clusters/schemas/baz.sd
new file mode 100644
index 00000000000..58f0aa16fd0
--- /dev/null
+++ b/configserver/src/test/apps/app-with-multiple-clusters/schemas/baz.sd
@@ -0,0 +1,10 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search baz {
+
+ document baz {
+ field moo type string {
+ indexing: summary | attribute
+ }
+ }
+
+} \ No newline at end of file
diff --git a/configserver/src/test/apps/app-with-multiple-clusters/services.xml b/configserver/src/test/apps/app-with-multiple-clusters/services.xml
new file mode 100644
index 00000000000..735bd04b2f9
--- /dev/null
+++ b/configserver/src/test/apps/app-with-multiple-clusters/services.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2020 Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<services version="1.0">
+
+ <content id="foo" version="1.0">
+ <redundancy>2</redundancy>
+ <documents>
+ <document type="bar" mode="index"/>
+ <document type="baz" mode="streaming"/>
+ <document type="bax" mode="index"/>
+ </documents>
+ <nodes>
+ <node hostalias="node1" distribution-key="0"/>
+ </nodes>
+ </content>
+
+ <content id="boo" version="1.0">
+ <redundancy>2</redundancy>
+ <documents>
+ <document type="bar" mode="store-only"/>
+ </documents>
+ <nodes>
+ <node hostalias="node1" distribution-key="1"/>
+ </nodes>
+ </content>
+
+ <container version="1.0">
+ <nodes>
+ <node hostalias="node1" />
+ </nodes>
+ </container>
+
+</services>