aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/schema-test-files/services.xml
blob: 880d49fa4600b0e82d963b9515e0be702623e4e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?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. -->
<services version="1.0">

  <config name="foo">
    <intVal>1</intVal>
  </config>

  <admin version="2.0">
    <adminserver hostalias="adminserver" />
    <logserver hostalias="logserver" />
    <slobroks>
      <slobrok hostalias="configserver" />
      <slobrok hostalias="qrserver" />
      <slobrok hostalias="rtc-1" />
    </slobroks>
    <metrics>
      <consumer id="my-consumer">
        <metric-set id="my-set" />
        <metric id="my-metric"/>
        <metric id="my-metric2" display-name="my-metric3"/>
        <metric display-name="my-metric4" id="my-metric4.avg"/>
      </consumer>
      <consumer id="my-consumer2">
        <metric-set id="my-set2" />
      </consumer>
    </metrics>
    <logforwarding>
      <splunk deployment-server="foo:8989" client-name="foobar" splunk-home="/opt/splunk"/>
    </logforwarding>
  </admin>

  <config name="bar">
    <intVal>1</intVal>
  </config>

  <jdisc id='qrsCluster_1' version='1.0'>
    <secret-store type="oath-ckms">
      <!-- NOTE: when removing (or adding) an environment, the rnc schema must also be updated! -->
      <group name="foo" environment="alpha" />
      <group name="foo" environment="corp" />
      <group name="foo" environment="prod" />
      <group name="foo" environment="aws" />
      <group name="foo" environment="aws_stage" />
    </secret-store>

    <rest-api path="jersey1">
      <components bundle="my-bundle" />
      <components bundle="other-bundle">
        <package>com.yahoo.foo</package>
        <package>com.yahoo.bar</package>
      </components>

    </rest-api>
    <rest-api path="jersey/2">
      <components bundle="my-bundle" />
    </rest-api>

    <servlet id="my-servlet" class="com.yahoo.MyServlet" bundle="my-bundle">
      <path>p/a/t/h</path>
    </servlet>

    <servlet id="my-servlet" class="com.yahoo.MyServlet" bundle="my-bundle">
      <path>Apps/app_1.3-4/*</path>
      <config name="foo">
        <intVal>0</intVal>
      </config>
      <servlet-config>
        <foo>bar</foo>
      </servlet-config>
    </servlet>

    <http>
      <filtering>
        <access-control domain="my.athens-domain" read="true">
          <exclude>
            <binding>http//*/foo/*</binding>
            <binding>https://*/foo/*</binding>
          </exclude>
          <application>my-app</application>
          <vespa-domain>vespa.vespa.cd</vespa-domain>
        </access-control>

        <filter id="com.yahoo.YcaFilter" bundle="mybundle">
          <filter-config>
            <foo>bar</foo>
            <feature.enabled>true</feature.enabled>
          </filter-config>
        </filter>

        <response-chain id="BaseChain">
          <filter id="com.yahoo.Filter1" />
          <filter id="com.yahoo.Filter2">
            <filter-config />
          </filter>
          <binding>http://*/path1/*</binding>
          <binding>http://*/path2/*</binding>
        </response-chain>

        <request-chain id="DerivedChain" inherits="BaseChain" excludes="com.yahoo.Filter1">
          <filter id="com.yahoo.Filter3">
            <config name="container.core.http.http-filter">
              <param>
                <item>
                  <name>yca.appid.allow</name>
                  <value>yahoo.vespa_factory.yca_test</value>
                </item>
              </param>
            </config>
          </filter>
          <binding>http://*/path/*</binding>
        </request-chain>
      </filtering>

      <server port="4080" id="myServer"/>
      <server port="4081" id="anotherServer"/>
      <server port="4082" id="defaultSsl">
        <ssl>
          <private-key-file>/foo/key</private-key-file>
          <certificate-file>/foo/cert</certificate-file>
          <ca-certificates-file>/foo/cacerts</ca-certificates-file>
          <client-authentication>want</client-authentication>
        </ssl>
      </server>
      <server port="4083" id="sslProvider">
        <ssl-provider class="com.yahoo.MySslProvider" bundle="mybundle"/>
      </server>
    </http>

    <accesslog type='json'
           fileNamePattern='logs/vespa/qrs/access-json.%Y%m%d%H%M%S' />
    <accesslog type='vespa'
           fileNamePattern='logs/vespa/qrs/access-vespa.%Y%m%d%H%M%S' />

    <document-api>
      <binding>http://*/document-api/</binding>
      <binding>https://*/document-api/</binding>
      <abortondocumenterror>false</abortondocumenterror>
      <retryenabled>false</retryenabled>
      <timeout>5.55</timeout>
      <route>default</route>
      <maxpendingdocs>100</maxpendingdocs>
    </document-api>

    <search>
      <searcher id='outer-searcher' />
      <chain id='common'>
        <searcher id='outer-searcher' />
        <searcher id='inner-searcher' />
      </chain>

      <provider id='yca-provider' type='vespa' yca-application-id='my-app'>
        <yca-proxy host='myhost' port='80'/>
        <nodes>
          <node host='sourcehost' port='12'/>
        </nodes>
      </provider>

      <chain id="parentchain" searchers="one two">
        <searcher id="three" />
        <inherits>
          <chain id="trope"/>
          <chain id="kanoo"/>
          <exclude id="notneededsearcher"/>
        </inherits>
      </chain>

      <chain id="achain" searchers="asearcher anothersearcher" inherits="wonkaparentchain" excludes="notneededsearcher"/>
    </search>

    <processing>
      <processor id='processor1' class='com.yahoo.test.Processor1' />
      <chain id='default'>
        <processor idref='processor1'/>
        <processor id='processor2' class='com.yahoo.test.Processor2'/>
      </chain>
    </processing>

    <handler id="bla" class="foo" bundle="bar" />
    <handler id="bla2" class="foo$innerclass" bundle="bar" />
    <handler id="bla2$innerclass" bundle="bar" />
    <config name="foo">
      <intVal>0</intVal>
      <basicstruct>
        <bsInt>1</bsInt>
        <bsString>Hello</bsString>
      </basicstruct>
    </config>

    <handler id="jdisc-handler">
      <binding>http://*:*/HelloWorld</binding>
      <binding>http://*:*/Status</binding>
      <clientBinding>http://*:*/foo</clientBinding>
      <clientBinding>http://*:*/bar</clientBinding>
    </handler>

    <client id="client-provider">
      <binding>http://*:*/HelloWorld</binding>
      <binding>http://*:*/Status</binding>
      <serverBinding>http://*:*/foo</serverBinding>
      <serverBinding>http://*:*/bar</serverBinding>
    </client>

    <server id="server-provider">

    </server>

    <nodes jvm-options="-XX:+PrintGCDetails -XX:+PrintGCTimeStamps">
      <node hostalias="host1" />
      <node hostalias="host1">
        <server-port id="myServer" port="4090" />
      </node>
    </nodes>
  </jdisc>

</services>