[Monitoring] Fix HttpExporterIT (elastic/x-pack-elasticsearch#2702)
Uses the appropriate overload of `generateRandomStringArray` to disallow empty arrays from being returned. Original commit: elastic/x-pack-elasticsearch@2596653ca1
This commit is contained in:
parent
f73d0c7a07
commit
22c804ed24
|
@ -139,7 +139,7 @@ public class HttpExporterIT extends MonitoringIntegTestCase {
|
||||||
|
|
||||||
public void testExportWithHeaders() throws Exception {
|
public void testExportWithHeaders() throws Exception {
|
||||||
final String headerValue = randomAlphaOfLengthBetween(3, 9);
|
final String headerValue = randomAlphaOfLengthBetween(3, 9);
|
||||||
final String[] array = generateRandomStringArray(2, 4, false);
|
final String[] array = generateRandomStringArray(2, 4, false, false);
|
||||||
|
|
||||||
final Map<String, String[]> headers = new HashMap<>();
|
final Map<String, String[]> headers = new HashMap<>();
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ public class HttpExporterIT extends MonitoringIntegTestCase {
|
||||||
final boolean useHeaders = randomBoolean();
|
final boolean useHeaders = randomBoolean();
|
||||||
|
|
||||||
final String headerValue = randomAlphaOfLengthBetween(3, 9);
|
final String headerValue = randomAlphaOfLengthBetween(3, 9);
|
||||||
final String[] array = generateRandomStringArray(2, 4, false);
|
final String[] array = generateRandomStringArray(2, 4, false, false);
|
||||||
|
|
||||||
final Map<String, String[]> headers = new HashMap<>();
|
final Map<String, String[]> headers = new HashMap<>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue