From 91636225991cb50d132aa580777da742965f1abe Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Fri, 23 Apr 2021 23:20:05 +0000 Subject: [PATCH] [Tests] Update huge fields test Updated because it never navigated to site it depended on previous tests to place it in the correct location. Also, needed to update the max payload size because we went to changing everything to `opensearch` or `opensearch dashboards` so payload sizes got larger. Signed-off-by: Kawika Avilla --- test/common/config.js | 2 +- .../apps/management/_test_huge_fields.js | 6 +++++- .../large_fields/data.json.gz | Bin 49825 -> 49825 bytes 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/common/config.js b/test/common/config.js index 104ec8f09b05..a122a78094d6 100644 --- a/test/common/config.js +++ b/test/common/config.js @@ -69,7 +69,7 @@ export default function () { // These are *very* important to have them pointing to staging // '--telemetry.url=https://telemetry-staging.opensearch.org/xpack/v2/send', // '--telemetry.optInStatusUrl=https://telemetry-staging.opensearch.org/opt_in_status/v2/send', - `--server.maxPayloadBytes=1679958`, + `--server.maxPayloadBytes=1759977`, // newsfeed mock service // `--plugin-path=${path.join(__dirname, 'fixtures', 'plugins', 'newsfeed')}`, // `--newsfeed.service.urlRoot=${servers.opensearchDashboards.protocol}://${servers.opensearchDashboards.hostname}:${servers.opensearchDashboards.port}`, diff --git a/test/functional/apps/management/_test_huge_fields.js b/test/functional/apps/management/_test_huge_fields.js index b2f8ed82404f..97b1471f8ef4 100644 --- a/test/functional/apps/management/_test_huge_fields.js +++ b/test/functional/apps/management/_test_huge_fields.js @@ -42,8 +42,12 @@ export default function ({ getService, getPageObjects }) { const EXPECTED_FIELD_COUNT = '10006'; before(async function () { - await security.testUser.setRoles(['opensearch_dashboards_admin', 'test_testhuge_reader']); + await security.testUser.setRoles( + ['opensearch_dashboards_admin', 'test_testhuge_reader'], + false + ); await opensearchArchiver.loadIfNeeded('large_fields'); + await PageObjects.settings.navigateTo(); await PageObjects.settings.createIndexPattern('testhuge', 'date'); }); diff --git a/test/functional/fixtures/opensearch_archiver/large_fields/data.json.gz b/test/functional/fixtures/opensearch_archiver/large_fields/data.json.gz index c5bd041c72bb0e013a6fa8e685ece7a3fee5b37d..4d357342b3029f232d91b83969281c0ad3e28492 100644 GIT binary patch delta 282 zcmV+#0p^Z)<= delta 282 zcmV+#0pyRDm?tx{-Xs}GMm$MIjO+jSKm9lV&42o@|NH;z zzx=2F{=fN8|M`FVAOF*T`|lV2xBub){=feFmH*>E{^vjb_kTbC5C8R__v2qb^WXja z>%aR~|DS*AzyH_2{^P%Y{{BDyz2{Krc_e_s0cpZ)y( gyMOVjUw*Iqjj{eXwE;h~H@0F72