Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix functional tests #313

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is required because this value was generated prior to us changing to opensearch-dashboards. So in large payloads tests, the size got even larger so this value was generated getting the value of the payload size and setting it as the limit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

`--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.
Binary file not shown.
Loading