test: lowercase index name

Original commit: elastic/x-pack-elasticsearch@3e037eca8a
This commit is contained in:
jaymode 2016-06-01 10:02:51 -04:00
parent 11908868c5
commit d5e64a0524
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,8 @@ import org.elasticsearch.shield.authc.support.SecuredString;
import org.elasticsearch.shield.authc.support.UsernamePasswordToken;
import org.elasticsearch.test.ShieldIntegTestCase;
import java.util.Locale;
import static java.util.Collections.singletonMap;
import static org.hamcrest.Matchers.arrayContaining;
import static org.hamcrest.Matchers.equalTo;
@ -166,7 +168,7 @@ public class KibanaUserRoleIntegTests extends ShieldIntegTestCase {
}
public void testCreateIndexDeleteInKibanaIndex() throws Exception {
final String index = randomBoolean()? ".kibana" : ".kibana-" + randomAsciiOfLengthBetween(1, 10);
final String index = randomBoolean()? ".kibana" : ".kibana-" + randomAsciiOfLengthBetween(1, 10).toLowerCase(Locale.ENGLISH);
if (randomBoolean()) {
CreateIndexResponse createIndexResponse = client().filterWithHeader(singletonMap("Authorization",