diff options
author | Harald Musum <musum@oath.com> | 2018-07-03 20:43:49 +0200 |
---|---|---|
committer | Harald Musum <musum@oath.com> | 2018-07-03 20:43:49 +0200 |
commit | 5bde892243a2868ccab0afd718fa54b2e7010e11 (patch) | |
tree | 7ddb40748b6bfe490cc7c418c15fe80eb39e1d64 /configserver/src/test/apps/hosted-no-write-access-control | |
parent | 610112d4be0016793c9bd3b79e73625e018afcff (diff) |
Add test for issue with AccessControlValidator not working when loading minimal set of config model versions
Test works, since loading minimal set of config model versions has been disabled
Diffstat (limited to 'configserver/src/test/apps/hosted-no-write-access-control')
-rw-r--r-- | configserver/src/test/apps/hosted-no-write-access-control/searchdefinitions/music.sd | 10 | ||||
-rw-r--r-- | configserver/src/test/apps/hosted-no-write-access-control/services.xml | 25 |
2 files changed, 35 insertions, 0 deletions
diff --git a/configserver/src/test/apps/hosted-no-write-access-control/searchdefinitions/music.sd b/configserver/src/test/apps/hosted-no-write-access-control/searchdefinitions/music.sd new file mode 100644 index 00000000000..78d58b27d4a --- /dev/null +++ b/configserver/src/test/apps/hosted-no-write-access-control/searchdefinitions/music.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 music { + document music { + field title type string { + indexing: index | summary + # index-to: default + } + } +} + diff --git a/configserver/src/test/apps/hosted-no-write-access-control/services.xml b/configserver/src/test/apps/hosted-no-write-access-control/services.xml new file mode 100644 index 00000000000..c2257ab34f7 --- /dev/null +++ b/configserver/src/test/apps/hosted-no-write-access-control/services.xml @@ -0,0 +1,25 @@ +<?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"> + + <admin version="3.0"> + <nodes count='1'/> + </admin> + + <jdisc version="1.0"> + <http> + <server id="foo" port="4080" /> + </http> + <search/> + <nodes count='1'/> + </jdisc> + + <content id="music" version="1.0"> + <redundancy>1</redundancy> + <documents> + <document type="music" mode="index" /> + </documents> + <nodes count="2" groups="2"/> + </content> + +</services> |