Skip to content

Commit

Permalink
[Tests] Update huge fields test
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kavilla committed Apr 24, 2021
1 parent af6ceca commit 9163622
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/common/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down
6 changes: 5 additions & 1 deletion test/functional/apps/management/_test_huge_fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

Expand Down
Binary file not shown.

0 comments on commit 9163622

Please sign in to comment.