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 c5bd041c72bb..4d357342b302 100644 Binary files a/test/functional/fixtures/opensearch_archiver/large_fields/data.json.gz and b/test/functional/fixtures/opensearch_archiver/large_fields/data.json.gz differ diff --git a/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights/data.json.gz b/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights/data.json.gz index b435d910066e..1b74dd0fcb56 100644 Binary files a/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights/data.json.gz and b/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights/data.json.gz differ diff --git a/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights/mappings.json b/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights/mappings.json index df9cc8df8f81..4252529646cf 100644 --- a/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights/mappings.json @@ -2,409 +2,95 @@ "type": "index", "value": { "aliases": { - ".opensearch_dashboards": { - } }, - "index": ".opensearch_dashboards_1", + "index": "opensearch_dashboards_sample_data_flights", "mappings": { - "_meta": { - "migrationMappingPropertyHashes": { - "application_usage_daily": "43b8830d5d0df85a6823d290885fc9fd", - "application_usage_totals": "3d1b76c39bfb2cc8296b024d73854724", - "application_usage_transactional": "3d1b76c39bfb2cc8296b024d73854724", - "config": "c63748b75f39d0c54de12d12c1ccbc20", - "dashboard": "1ca04b5b225a4f82ce7a95022b4878d2", - "dql-telemetry": "d12a98a6f19a2d273696597547e064ee", - "index-pattern": "45915a1ad866812242df474eb0479052", - "migrationVersion": "4a1746014a75ade3a714e1db5763276f", - "namespace": "2f4316de49999235636386fe51dc06c1", - "namespaces": "2f4316de49999235636386fe51dc06c1", - "originId": "2f4316de49999235636386fe51dc06c1", - "query": "11aaeb7f5f7fa5bb43f25e18ce26e7d9", - "references": "7997cf5a56cc02bdc9c93361bde732b0", - "sample-data-telemetry": "7d3cfeb915303c9641c59681967ffeb4", - "search": "13fbeb9f14daaf74513983d587178c9e", - "search-telemetry": "3d1b76c39bfb2cc8296b024d73854724", - "timeline-sheet": "4d044870a975ad8dfe28919134ec3240", - "tsvb-validation-telemetry": "3a37ef6c8700ae6fc97d5c7da00e9215", - "type": "2f4316de49999235636386fe51dc06c1", - "ui-metric": "0d409297dc5ebe1e3a1da691c6ee32e3", - "updated_at": "00da57df13e94e9d98437d13ace4bfe0", - "url": "c7f66a0df8b1b52f17c28c4adb111105", - "visualization": "26d0b900a88ae9f671fbfaab64db304f" - } - }, - "dynamic": "strict", "properties": { - "application_usage_daily": { - "dynamic": "false", - "properties": { - "timestamp": { - "type": "date" - } - } + "AvgTicketPrice": { + "type": "float" }, - "application_usage_totals": { - "dynamic": "false", - "type": "object" + "Cancelled": { + "type": "boolean" }, - "application_usage_transactional": { - "dynamic": "false", - "type": "object" + "Carrier": { + "type": "keyword" }, - "config": { - "dynamic": "false", - "properties": { - "buildNum": { - "type": "keyword" - } - } + "Dest": { + "type": "keyword" }, - "dashboard": { - "properties": { - "description": { - "type": "text" - }, - "hits": { - "doc_values": false, - "index": false, - "type": "integer" - }, - "opensearchDashboardsSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "index": false, - "type": "text" - } - } - }, - "optionsJSON": { - "index": false, - "type": "text" - }, - "panelsJSON": { - "index": false, - "type": "text" - }, - "refreshInterval": { - "properties": { - "display": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "pause": { - "doc_values": false, - "index": false, - "type": "boolean" - }, - "section": { - "doc_values": false, - "index": false, - "type": "integer" - }, - "value": { - "doc_values": false, - "index": false, - "type": "integer" - } - } - }, - "timeFrom": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "timeRestore": { - "doc_values": false, - "index": false, - "type": "boolean" - }, - "timeTo": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - } - } + "DestAirportID": { + "type": "keyword" }, - "dql-telemetry": { - "properties": { - "optInCount": { - "type": "long" - }, - "optOutCount": { - "type": "long" - } - } + "DestCityName": { + "type": "keyword" }, - "index-pattern": { - "dynamic": "false", - "properties": { - "title": { - "type": "text" - }, - "type": { - "type": "keyword" - } - } + "DestCountry": { + "type": "keyword" }, - "migrationVersion": { - "dynamic": "true", - "properties": { - "config": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - }, - "index-pattern": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - } - } + "DestLocation": { + "type": "geo_point" }, - "namespace": { + "DestRegion": { "type": "keyword" }, - "namespaces": { + "DestWeather": { "type": "keyword" }, - "originId": { - "type": "keyword" + "DistanceKilometers": { + "type": "float" }, - "query": { - "properties": { - "description": { - "type": "text" - }, - "filters": { - "enabled": false, - "type": "object" - }, - "query": { - "properties": { - "language": { - "type": "keyword" - }, - "query": { - "index": false, - "type": "keyword" - } - } - }, - "timefilter": { - "enabled": false, - "type": "object" - }, - "title": { - "type": "text" - } - } + "DistanceMiles": { + "type": "float" }, - "references": { - "properties": { - "id": { - "type": "keyword" - }, - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - }, - "type": "nested" + "FlightDelay": { + "type": "boolean" }, - "sample-data-telemetry": { - "properties": { - "installCount": { - "type": "long" - }, - "unInstallCount": { - "type": "long" - } - } + "FlightDelayMin": { + "type": "integer" }, - "search": { - "properties": { - "columns": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "description": { - "type": "text" - }, - "hits": { - "doc_values": false, - "index": false, - "type": "integer" - }, - "opensearchDashboardsSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "index": false, - "type": "text" - } - } - }, - "sort": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - } - } + "FlightDelayType": { + "type": "keyword" }, - "search-telemetry": { - "dynamic": "false", - "type": "object" + "FlightNum": { + "type": "keyword" }, - "server": { - "dynamic": "false", - "type": "object" + "FlightTimeHour": { + "type": "keyword" }, - "timeline-sheet": { - "properties": { - "description": { - "type": "text" - }, - "hits": { - "type": "integer" - }, - "opensearchDashboardsSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "timeline_chart_height": { - "type": "integer" - }, - "timeline_columns": { - "type": "integer" - }, - "timeline_interval": { - "type": "keyword" - }, - "timeline_other_interval": { - "type": "keyword" - }, - "timeline_rows": { - "type": "integer" - }, - "timeline_sheet": { - "type": "text" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - } - } + "FlightTimeMin": { + "type": "float" }, - "tsvb-validation-telemetry": { - "properties": { - "failedRequests": { - "type": "long" - } - } + "Origin": { + "type": "keyword" }, - "type": { + "OriginAirportID": { "type": "keyword" }, - "ui-metric": { - "properties": { - "count": { - "type": "integer" - } - } + "OriginCityName": { + "type": "keyword" }, - "updated_at": { - "type": "date" + "OriginCountry": { + "type": "keyword" + }, + "OriginLocation": { + "type": "geo_point" }, - "url": { - "properties": { - "accessCount": { - "type": "long" - }, - "accessDate": { - "type": "date" - }, - "createDate": { - "type": "date" - }, - "url": { - "fields": { - "keyword": { - "ignore_above": 2048, - "type": "keyword" - } - }, - "type": "text" - } - } + "OriginRegion": { + "type": "keyword" + }, + "OriginWeather": { + "type": "keyword" }, - "visualization": { - "properties": { - "description": { - "type": "text" - }, - "opensearchDashboardsSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "index": false, - "type": "text" - } - } - }, - "savedSearchRefName": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "title": { - "type": "text" - }, - "uiStateJSON": { - "index": false, - "type": "text" - }, - "version": { - "type": "integer" - }, - "visState": { - "index": false, - "type": "text" - } - } + "dayOfWeek": { + "type": "integer" + }, + "timestamp": { + "type": "date" } } }, "settings": { "index": { - "auto_expand_replicas": "0-1", "number_of_replicas": "0", "number_of_shards": "1" } diff --git a/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights_index_pattern/data.json.gz b/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights_index_pattern/data.json.gz index 153ea44d5a57..dcf6a9c51fd6 100644 Binary files a/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights_index_pattern/data.json.gz and b/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights_index_pattern/data.json.gz differ