diff --git a/config/opensearch_dashboards.yml b/config/opensearch_dashboards.yml index 675033136f7..5b395fd0298 100644 --- a/config/opensearch_dashboards.yml +++ b/config/opensearch_dashboards.yml @@ -29,7 +29,7 @@ # OpenSearch Dashboards uses an index in OpenSearch to store saved searches, visualizations and # dashboards. OpenSearch Dashboards creates a new index if the index doesn't already exist. -#opensearchDashboards.index: ".opensearch-dashboards" +#opensearchDashboards.index: ".opensearch_dashboards" # The default application to load. #opensearchDashboards.defaultAppId: "home" diff --git a/packages/osd-opensearch-archiver/src/actions/load.ts b/packages/osd-opensearch-archiver/src/actions/load.ts index d68c5f7b40a..0554a8deeca 100644 --- a/packages/osd-opensearch-archiver/src/actions/load.ts +++ b/packages/osd-opensearch-archiver/src/actions/load.ts @@ -107,11 +107,11 @@ export async function loadAction({ }); // If we affected the OpenSearch Dashboards index, we need to ensure it's migrated... - if (Object.keys(result).some((k) => k.startsWith('.opensearch-dashboards'))) { + if (Object.keys(result).some((k) => k.startsWith('.opensearch_dashboards'))) { await migrateOpenSearchDashboardsIndex({ client, osdClient }); if (opensearchDashboardsPluginIds.includes('spaces')) { - await createDefaultSpace({ client, index: '.opensearch-dashboards' }); + await createDefaultSpace({ client, index: '.opensearch_dashboards' }); } } diff --git a/packages/osd-opensearch-archiver/src/lib/docs/__tests__/generate_doc_records_stream.ts b/packages/osd-opensearch-archiver/src/lib/docs/__tests__/generate_doc_records_stream.ts index 742496c1e1e..0a7828dcde2 100644 --- a/packages/osd-opensearch-archiver/src/lib/docs/__tests__/generate_doc_records_stream.ts +++ b/packages/osd-opensearch-archiver/src/lib/docs/__tests__/generate_doc_records_stream.ts @@ -91,7 +91,7 @@ describe('opensearchArchiver: createGenerateDocRecordsStream()', () => { await delay(200); return { _scroll_id: 'index1ScrollId', - hits: { total: 2, hits: [{ _id: 1, _index: '.opensearch-dashboards_foo' }] }, + hits: { total: 2, hits: [{ _id: 1, _index: '.opensearch_dashboards_foo' }] }, }; }, async (name, params) => { @@ -123,7 +123,7 @@ describe('opensearchArchiver: createGenerateDocRecordsStream()', () => { { type: 'doc', value: { - index: '.opensearch-dashboards_1', + index: '.opensearch_dashboards_1', type: undefined, id: 1, source: undefined, diff --git a/packages/osd-opensearch-archiver/src/lib/docs/generate_doc_records_stream.ts b/packages/osd-opensearch-archiver/src/lib/docs/generate_doc_records_stream.ts index 68778f43c7d..24b1c417c03 100644 --- a/packages/osd-opensearch-archiver/src/lib/docs/generate_doc_records_stream.ts +++ b/packages/osd-opensearch-archiver/src/lib/docs/generate_doc_records_stream.ts @@ -71,10 +71,10 @@ export function createGenerateDocRecordsStream({ this.push({ type: 'doc', value: { - // always rewrite the .opensearch-dashboards_* index to .opensearch-dashboards_1 so that + // always rewrite the .opensearch_dashboards_* index to .opensearch_dashboards_1 so that // when it is loaded it can skip migration, if possible - index: hit._index.startsWith('.opensearch-dashboards') - ? '.opensearch-dashboards_1' + index: hit._index.startsWith('.opensearch_dashboards') + ? '.opensearch_dashboards_1' : hit._index, type: hit._type, id: hit._id, diff --git a/packages/osd-opensearch-archiver/src/lib/indices/create_index_stream.ts b/packages/osd-opensearch-archiver/src/lib/indices/create_index_stream.ts index 7b7a513ed8c..262cffeac60 100644 --- a/packages/osd-opensearch-archiver/src/lib/indices/create_index_stream.ts +++ b/packages/osd-opensearch-archiver/src/lib/indices/create_index_stream.ts @@ -68,7 +68,7 @@ export function createCreateIndexStream({ // Determine if the mapping belongs to a pre-7.0 instance, for BWC tests, mainly const isPre7Mapping = !!mappings && Object.keys(mappings).length > 0 && !mappings.properties; - const isOpenSearchDashboards = index.startsWith('.opensearch-dashboards'); + const isOpenSearchDashboards = index.startsWith('.opensearch_dashboards'); async function attemptToCreate(attemptNumber = 1) { try { diff --git a/packages/osd-opensearch-archiver/src/lib/indices/delete_index_stream.ts b/packages/osd-opensearch-archiver/src/lib/indices/delete_index_stream.ts index b0d57c95c90..c41bddf3259 100644 --- a/packages/osd-opensearch-archiver/src/lib/indices/delete_index_stream.ts +++ b/packages/osd-opensearch-archiver/src/lib/indices/delete_index_stream.ts @@ -39,7 +39,7 @@ export function createDeleteIndexStream( if (!record || record.type === 'index') { const { index } = record.value; - if (index.startsWith('.opensearch-dashboards')) { + if (index.startsWith('.opensearch_dashboards')) { await cleanOpenSearchDashboardsIndices({ client, stats, diff --git a/packages/osd-opensearch-archiver/src/lib/indices/generate_index_records_stream.ts b/packages/osd-opensearch-archiver/src/lib/indices/generate_index_records_stream.ts index fd0bd130c20..16c71159b74 100644 --- a/packages/osd-opensearch-archiver/src/lib/indices/generate_index_records_stream.ts +++ b/packages/osd-opensearch-archiver/src/lib/indices/generate_index_records_stream.ts @@ -53,10 +53,10 @@ export function createGenerateIndexRecordsStream(client: Client, stats: Stats) { this.push({ type: 'index', value: { - // always rewrite the .opensearch-dashboards_* index to .opensearch-dashboards_1 so that + // always rewrite the .opensearch_dashboards_* index to .opensearch_dashboards_1 so that // when it is loaded it can skip migration, if possible - index: index.startsWith('.opensearch-dashboards') - ? '.opensearch-dashboards_1' + index: index.startsWith('.opensearch_dashboards') + ? '.opensearch_dashboards_1' : index, settings, mappings, diff --git a/packages/osd-opensearch-archiver/src/lib/indices/opensearch_dashboards_index.ts b/packages/osd-opensearch-archiver/src/lib/indices/opensearch_dashboards_index.ts index 439ea016839..0bb0b40ec8b 100644 --- a/packages/osd-opensearch-archiver/src/lib/indices/opensearch_dashboards_index.ts +++ b/packages/osd-opensearch-archiver/src/lib/indices/opensearch_dashboards_index.ts @@ -23,7 +23,7 @@ import { Stats } from '../stats'; import { deleteIndex } from './delete_index'; /** - * Deletes all indices that start with `.opensearch-dashboards` + * Deletes all indices that start with `.opensearch_dashboards` */ export async function deleteOpenSearchDashboardsIndices({ client, @@ -55,7 +55,7 @@ export async function deleteOpenSearchDashboardsIndices({ } /** - * Given an opensearch client, and a logger, migrates the `.opensearch-dashboards` index. This + * Given an opensearch client, and a logger, migrates the `.opensearch_dashboards` index. This * builds up an object that implements just enough of the osdMigrations interface * as is required by migrations. */ @@ -69,7 +69,7 @@ export async function migrateOpenSearchDashboardsIndex({ // we allow dynamic mappings on the index, as some interceptors are accessing documents before // the migration is actually performed. The migrator will put the value back to `strict` after migration. await client.indices.putMapping({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', body: { dynamic: true, }, @@ -80,17 +80,17 @@ export async function migrateOpenSearchDashboardsIndex({ /** * Migrations mean that the OpenSearch Dashboards index will look something like: - * .opensearch-dashboards, .opensearch-dashboards_1, .opensearch-dashboards_323, etc. This finds all indices starting - * with .opensearch-dashboards, then filters out any that aren't actually OpenSearch Dashboards's core - * index (e.g. we don't want to remove .opensearch-dashboards_task_manager or the like). + * .opensearch_dashboards, .opensearch_dashboards_1, .opensearch_dashboards_323, etc. This finds all indices starting + * with .opensearch_dashboards, then filters out any that aren't actually OpenSearch Dashboards's core + * index (e.g. we don't want to remove .opensearch_dashboards_task_manager or the like). */ async function fetchOpenSearchDashboardsIndices(client: Client) { const opensearchDashboardsIndices = await client.cat.indices({ - index: '.opensearch-dashboards*', + index: '.opensearch_dashboards*', format: 'json', }); const isOpenSearchDashboardsIndex = (index: string) => - /^\.opensearch-dashboards(:?_\d*)?$/.test(index); + /^\.opensearch_dashboards(:?_\d*)?$/.test(index); return opensearchDashboardsIndices .map((x: { index: string }) => x.index) .filter(isOpenSearchDashboardsIndex); @@ -117,7 +117,7 @@ export async function cleanOpenSearchDashboardsIndices({ while (true) { const resp = await client.deleteByQuery({ - index: `.opensearch-dashboards`, + index: `.opensearch_dashboards`, body: { query: { bool: { @@ -147,10 +147,10 @@ export async function cleanOpenSearchDashboardsIndices({ log.warning( `since spaces are enabled, all objects other than the default space were deleted from ` + - `.opensearch-dashboards rather than deleting the whole index` + `.opensearch_dashboards rather than deleting the whole index` ); - stats.deletedIndex('.opensearch-dashboards'); + stats.deletedIndex('.opensearch_dashboards'); } export async function createDefaultSpace({ index, client }: { index: string; client: Client }) { diff --git a/packages/osd-plugin-helpers/README.md b/packages/osd-plugin-helpers/README.md index 4ad17f40e31..2162448c329 100644 --- a/packages/osd-plugin-helpers/README.md +++ b/packages/osd-plugin-helpers/README.md @@ -68,9 +68,9 @@ When you're targeting versions before OpenSearch Dashboards 6.3, use the `@elast ## Configuration -`plugin-helpers` accepts a number of settings, which can be specified at runtime, or included in a `.opensearch-dashboards-plugin-helpers.json` file if you'd like to bundle those settings with your project. +`plugin-helpers` accepts a number of settings, which can be specified at runtime, or included in a `.opensearch_dashboards-plugin-helpers.json` file if you'd like to bundle those settings with your project. -It will also observe a `.opensearch-dashboards-plugin-helpers.dev.json`, much like OpenSearch Dashboards does, which we encourage you to add to your `.gitignore` file and use for local settings that you don't intend to share. These "dev" settings will override any settings in the normal json config. +It will also observe a `.opensearch_dashboards-plugin-helpers.dev.json`, much like OpenSearch Dashboards does, which we encourage you to add to your `.gitignore` file and use for local settings that you don't intend to share. These "dev" settings will override any settings in the normal json config. All configuration setting listed below can simply can be included in the json config files. If you intend to inline the command, you will need to convert the setting to snake case (ie. `skipArchive` becomes `--skip-archive`). diff --git a/packages/osd-plugin-helpers/src/config.ts b/packages/osd-plugin-helpers/src/config.ts index f3e50d44773..08b3b873c7a 100644 --- a/packages/osd-plugin-helpers/src/config.ts +++ b/packages/osd-plugin-helpers/src/config.ts @@ -34,7 +34,7 @@ const isArrayOfStrings = (v: any): v is string[] => export async function loadConfig(log: ToolingLog, plugin: Plugin): Promise { try { - const path = Path.resolve(plugin.directory, '.opensearch-dashboards-plugin-helpers.json'); + const path = Path.resolve(plugin.directory, '.opensearch_dashboards-plugin-helpers.json'); const file = await loadJsonFile(path); if (!(typeof file === 'object' && file && !Array.isArray(file))) { diff --git a/scripts/README.md b/scripts/README.md index fbd84921e1e..0b5669d53c4 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -61,8 +61,8 @@ may also change based on those settings (for example if you are not running with You can save existing data into an archive by using the `save` command: ``` -node scripts/opensearch_archiver.js save [space separated list of index patterns to include] +node scripts/opensearch_archiver.js save [space separated list of index patterns to include] ``` -You may want to store the .opensearch-dashboards index separate from data. Since adding a lot of data will bloat our repo size, we have many tests that reuse the same -data indices but use their own `.opensearch-dashboards` index. +You may want to store the .opensearch_dashboards index separate from data. Since adding a lot of data will bloat our repo size, we have many tests that reuse the same +data indices but use their own `.opensearch_dashboards` index. diff --git a/src/core/server/core_usage_data/core_usage_data_service.test.ts b/src/core/server/core_usage_data/core_usage_data_service.test.ts index 6f4afc3318b..6dfbab299a0 100644 --- a/src/core/server/core_usage_data/core_usage_data_service.test.ts +++ b/src/core/server/core_usage_data/core_usage_data_service.test.ts @@ -83,7 +83,7 @@ describe('CoreUsageDataService', () => { opensearch.client.asInternalUser.cat.indices.mockResolvedValueOnce({ body: [ { - name: '.opensearch-dashboards_1', + name: '.opensearch_dashboards_1', 'docs.count': 20, 'docs.deleted': 20, 'store.size': 2000, @@ -93,7 +93,7 @@ describe('CoreUsageDataService', () => { } as any); const typeRegistry = savedObjectsServiceMock.createTypeRegistryMock(); typeRegistry.getAllTypes.mockReturnValue([ - { name: 'type 1', indexPattern: '.opensearch-dashboards' }, + { name: 'type 1', indexPattern: '.opensearch_dashboards' }, { name: 'type 2', indexPattern: '.opensearch_dashboards_task_manager' }, ] as any); @@ -202,7 +202,7 @@ describe('CoreUsageDataService', () => { "savedObjects": Object { "indices": Array [ Object { - "alias": ".opensearch-dashboards", + "alias": ".opensearch_dashboards", "docsCount": 10, "docsDeleted": 10, "primaryStoreSizeBytes": 2000, diff --git a/src/core/server/core_usage_data/core_usage_data_service.ts b/src/core/server/core_usage_data/core_usage_data_service.ts index e04342f2c0e..317760b33e5 100644 --- a/src/core/server/core_usage_data/core_usage_data_service.ts +++ b/src/core/server/core_usage_data/core_usage_data_service.ts @@ -47,7 +47,7 @@ export interface StartDeps { * we need to map customized index names back to a "standard" index name. * * e.g. If a user configures `opensearchDashboards.index: .my_saved_objects` we want to the - * collected data to be grouped under `.opensearch-dashboards` not ".my_saved_objects". + * collected data to be grouped under `.opensearch_dashboards` not ".my_saved_objects". * * This is rather brittle, but the option to configure index names might go * away completely anyway (see #60053). @@ -61,7 +61,7 @@ const opensearchDashboardsOrTaskManagerIndex = ( opensearchDashboardsConfigIndex: string ) => { return index === opensearchDashboardsConfigIndex - ? '.opensearch-dashboards' + ? '.opensearch_dashboards' : '.opensearch_dashboards_task_manager'; }; diff --git a/src/core/server/opensearch_dashboards_config.ts b/src/core/server/opensearch_dashboards_config.ts index 58568e5078e..5c30a056db4 100644 --- a/src/core/server/opensearch_dashboards_config.ts +++ b/src/core/server/opensearch_dashboards_config.ts @@ -25,7 +25,7 @@ export const config = { path: 'opensearchDashboards', schema: schema.object({ enabled: schema.boolean({ defaultValue: true }), - index: schema.string({ defaultValue: '.opensearch-dashboards' }), + index: schema.string({ defaultValue: '.opensearch_dashboards' }), autocompleteTerminateAfter: schema.duration({ defaultValue: 100000 }), autocompleteTimeout: schema.duration({ defaultValue: 1000 }), }), diff --git a/src/core/server/plugins/plugin_context.test.ts b/src/core/server/plugins/plugin_context.test.ts index 685c9578faa..f46dde18639 100644 --- a/src/core/server/plugins/plugin_context.test.ts +++ b/src/core/server/plugins/plugin_context.test.ts @@ -83,7 +83,7 @@ describe('createPluginInitializerContext', () => { .toPromise(); expect(configObject).toStrictEqual({ opensearchDashboards: { - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', autocompleteTerminateAfter: duration(100000), autocompleteTimeout: duration(1000), }, diff --git a/src/core/server/saved_objects/migrations/README.md b/src/core/server/saved_objects/migrations/README.md index 880404e2ab4..44e80453358 100644 --- a/src/core/server/saved_objects/migrations/README.md +++ b/src/core/server/saved_objects/migrations/README.md @@ -13,26 +13,26 @@ All of this happens prior to OpenSearch Dashboards serving any http requests. Here is the gist of what happens if an index migration is necessary: -* If `.opensearch-dashboards` (or whatever the OpenSearch Dashboards index is named) is not an alias, it will be converted to one: - * Reindex `.opensearch-dashboards` into `.opensearch-dashboards_1` - * Delete `.opensearch-dashboards` - * Create an alias `.opensearch-dashboards` that points to `.opensearch-dashboards_1` -* Create a `.opensearch-dashboards_2` index -* Copy all documents from `.opensearch-dashboards_1` into `.opensearch-dashboards_2`, running them through any applicable migrations -* Point the `.opensearch-dashboards` alias to `.opensearch-dashboards_2` +* If `.opensearch_dashboards` (or whatever the OpenSearch Dashboards index is named) is not an alias, it will be converted to one: + * Reindex `.opensearch_dashboards` into `.opensearch_dashboards_1` + * Delete `.opensearch_dashboards` + * Create an alias `.opensearch_dashboards` that points to `.opensearch_dashboards_1` +* Create a `.opensearch_dashboards_2` index +* Copy all documents from `.opensearch_dashboards_1` into `.opensearch_dashboards_2`, running them through any applicable migrations +* Point the `.opensearch_dashboards` alias to `.opensearch_dashboards_2` ## Migrating OpenSearch Dashboards clusters If OpenSearch Dashboards is being run in a cluster, migrations will be coordinated so that they only run on one OpenSearch Dashboards instance at a time. This is done in a fairly rudimentary way. Let's say we have two OpenSearch Dashboards instances, opensearch-dashboards-1 and opensearch-dashboards-2. * opensearch-dashboards-1 and opensearch-dashboards-2 both start simultaneously and detect that the index requires migration -* opensearch-dashboards-1 begins the migration and creates index `.opensearch-dashboards_4` -* opensearch-dashboards-2 tries to begin the migration, but fails with the error `.opensearch-dashboards_4 already exists` +* opensearch-dashboards-1 begins the migration and creates index `.opensearch_dashboards_4` +* opensearch-dashboards-2 tries to begin the migration, but fails with the error `.opensearch_dashboards_4 already exists` * opensearch-dashboards-2 logs that it failed to create the migration index, and instead begins polling - * Every few seconds, opensearch-dashboards-2 instance checks the `.opensearch-dashboards` index to see if it is done migrating - * Once `.opensearch-dashboards` is determined to be up to date, the opensearch-dashboards-2 instance continues booting + * Every few seconds, opensearch-dashboards-2 instance checks the `.opensearch_dashboards` index to see if it is done migrating + * Once `.opensearch_dashboards` is determined to be up to date, the opensearch-dashboards-2 instance continues booting -In this example, if the `.opensearch-dashboards_4` index existed prior to OpenSearch Dashboards booting, the entire migration process will fail, as all OpenSearch Dashboards instances will assume another instance is migrating to the `.opensearch-dashboards_4` index. This problem is only fixable by deleting the `.opensearch-dashboards_4` index. +In this example, if the `.opensearch_dashboards_4` index existed prior to OpenSearch Dashboards booting, the entire migration process will fail, as all OpenSearch Dashboards instances will assume another instance is migrating to the `.opensearch_dashboards_4` index. This problem is only fixable by deleting the `.opensearch_dashboards_4` index. ## Import / export @@ -191,8 +191,8 @@ Note, the migrationVersion property has been added, and it contains information The migrations source code is grouped into two folders: -* `core` - Contains index-agnostic, general migration logic, which could be reused for indices other than `.opensearch-dashboards` -* `opensearch-dashboards` - Contains a relatively light-weight wrapper around core, which provides `.opensearch-dashboards` index-specific logic +* `core` - Contains index-agnostic, general migration logic, which could be reused for indices other than `.opensearch_dashboards` +* `opensearch-dashboards` - Contains a relatively light-weight wrapper around core, which provides `.opensearch_dashboards` index-specific logic Generally, the code eschews classes in favor of functions and basic data structures. The publicly exported code is all class-based, however, in an attempt to conform to OpenSearch Dashboards norms. diff --git a/src/core/server/saved_objects/migrations/core/build_index_map.test.ts b/src/core/server/saved_objects/migrations/core/build_index_map.test.ts index d12e9f4dce4..1df867f5152 100644 --- a/src/core/server/saved_objects/migrations/core/build_index_map.test.ts +++ b/src/core/server/saved_objects/migrations/core/build_index_map.test.ts @@ -38,7 +38,7 @@ const createRegistry = (...types: Array>) => { test('mappings without index pattern goes to default index', () => { const result = createIndexMap({ - opensearchDashboardsIndexName: '.opensearch-dashboards', + opensearchDashboardsIndexName: '.opensearch_dashboards', registry: createRegistry({ name: 'type1', namespaceType: 'single', @@ -54,7 +54,7 @@ test('mappings without index pattern goes to default index', () => { }, }); expect(result).toEqual({ - '.opensearch-dashboards': { + '.opensearch_dashboards': { typeMappings: { type1: { properties: { @@ -70,7 +70,7 @@ test('mappings without index pattern goes to default index', () => { test(`mappings with custom index pattern doesn't go to default index`, () => { const result = createIndexMap({ - opensearchDashboardsIndexName: '.opensearch-dashboards', + opensearchDashboardsIndexName: '.opensearch_dashboards', registry: createRegistry({ name: 'type1', namespaceType: 'single', @@ -103,7 +103,7 @@ test(`mappings with custom index pattern doesn't go to default index`, () => { test('creating a script gets added to the index pattern', () => { const result = createIndexMap({ - opensearchDashboardsIndexName: '.opensearch-dashboards', + opensearchDashboardsIndexName: '.opensearch_dashboards', registry: createRegistry({ name: 'type1', namespaceType: 'single', @@ -137,7 +137,7 @@ test('creating a script gets added to the index pattern', () => { }); test('throws when two scripts are defined for an index pattern', () => { - const defaultIndex = '.opensearch-dashboards'; + const defaultIndex = '.opensearch_dashboards'; const registry = createRegistry( { name: 'type1', @@ -174,6 +174,6 @@ test('throws when two scripts are defined for an index pattern', () => { indexMap, }) ).toThrowErrorMatchingInlineSnapshot( - `"convertToAliasScript has been defined more than once for index pattern \\".opensearch-dashboards\\""` + `"convertToAliasScript has been defined more than once for index pattern \\".opensearch_dashboards\\""` ); }); diff --git a/src/core/server/saved_objects/migrations/core/index_migrator.test.ts b/src/core/server/saved_objects/migrations/core/index_migrator.test.ts index 7735f3d4a02..0e349ab8079 100644 --- a/src/core/server/saved_objects/migrations/core/index_migrator.test.ts +++ b/src/core/server/saved_objects/migrations/core/index_migrator.test.ts @@ -34,7 +34,7 @@ describe('IndexMigrator', () => { testOpts = { batchSize: 10, client: opensearchClientMock.createOpenSearchClient(), - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', log: loggingSystemMock.create().get(), mappingProperties: {}, pollInterval: 1, @@ -92,7 +92,7 @@ describe('IndexMigrator', () => { }, settings: { number_of_shards: 1, auto_expand_replicas: '0-1' }, }, - index: '.opensearch-dashboards_1', + index: '.opensearch_dashboards_1', }); }); @@ -104,8 +104,8 @@ describe('IndexMigrator', () => { const result = await new IndexMigrator(testOpts).migrate(); expect(result).toMatchObject({ - destIndex: '.opensearch-dashboards_1', - sourceIndex: '.opensearch-dashboards', + destIndex: '.opensearch_dashboards_1', + sourceIndex: '.opensearch_dashboards', status: 'migrated', }); }); @@ -115,7 +115,7 @@ describe('IndexMigrator', () => { withIndex(client, { index: { - '.opensearch-dashboards_1': { + '.opensearch_dashboards_1': { aliases: {}, mappings: { foo: { properties: {} }, @@ -139,7 +139,7 @@ describe('IndexMigrator', () => { withIndex(client, { index: { - '.opensearch-dashboards_1': { + '.opensearch_dashboards_1': { aliases: {}, mappings: { poc: { @@ -164,7 +164,7 @@ describe('IndexMigrator', () => { withIndex(client, { index: { - '.opensearch-dashboards_1': { + '.opensearch_dashboards_1': { aliases: {}, mappings: { properties: { @@ -214,7 +214,7 @@ describe('IndexMigrator', () => { }, settings: { number_of_shards: 1, auto_expand_replicas: '0-1' }, }, - index: '.opensearch-dashboards_2', + index: '.opensearch_dashboards_2', }); }); @@ -225,7 +225,7 @@ describe('IndexMigrator', () => { withIndex(client, { index: { - '.opensearch-dashboards_1': { + '.opensearch_dashboards_1': { aliases: {}, mappings: { properties: { @@ -275,7 +275,7 @@ describe('IndexMigrator', () => { }, settings: { number_of_shards: 1, auto_expand_replicas: '0-1' }, }, - index: '.opensearch-dashboards_2', + index: '.opensearch_dashboards_2', }); }); @@ -289,7 +289,7 @@ describe('IndexMigrator', () => { expect(client.indices.create).toHaveBeenCalledWith(expect.any(Object)); expect(client.indices.updateAliases).toHaveBeenCalledWith({ body: { - actions: [{ add: { alias: '.opensearch-dashboards', index: '.opensearch-dashboards_1' } }], + actions: [{ add: { alias: '.opensearch_dashboards', index: '.opensearch_dashboards_1' } }], }, }); }); @@ -309,8 +309,8 @@ describe('IndexMigrator', () => { expect(client.indices.updateAliases).toHaveBeenCalledWith({ body: { actions: [ - { remove: { alias: '.opensearch-dashboards', index: '.opensearch-dashboards_1' } }, - { add: { alias: '.opensearch-dashboards', index: '.opensearch-dashboards_2' } }, + { remove: { alias: '.opensearch_dashboards', index: '.opensearch_dashboards_1' } }, + { add: { alias: '.opensearch_dashboards', index: '.opensearch_dashboards_2' } }, ], }, }); @@ -360,13 +360,13 @@ describe('IndexMigrator', () => { expect(client.bulk).toHaveBeenCalledTimes(2); expect(client.bulk).toHaveBeenNthCalledWith(1, { body: [ - { index: { _id: 'foo:1', _index: '.opensearch-dashboards_2' } }, + { index: { _id: 'foo:1', _index: '.opensearch_dashboards_2' } }, { foo: { name: 1 }, type: 'foo', migrationVersion: {}, references: [] }, ], }); expect(client.bulk).toHaveBeenNthCalledWith(2, { body: [ - { index: { _id: 'foo:2', _index: '.opensearch-dashboards_2' } }, + { index: { _id: 'foo:2', _index: '.opensearch_dashboards_2' } }, { foo: { name: 2 }, type: 'foo', migrationVersion: {}, references: [] }, ], }); @@ -402,8 +402,8 @@ function withIndex( opts: any = {} ) { const defaultIndex = { - '.opensearch-dashboards_1': { - aliases: { '.opensearch-dashboards': {} }, + '.opensearch_dashboards_1': { + aliases: { '.opensearch_dashboards': {} }, mappings: { dynamic: 'strict', properties: { @@ -413,7 +413,7 @@ function withIndex( }, }; const defaultAlias = { - '.opensearch-dashboards_1': {}, + '.opensearch_dashboards_1': {}, }; const { numOutOfDate = 0 } = opts; const { alias = defaultAlias } = opts; diff --git a/src/core/server/saved_objects/migrations/core/migration_context.ts b/src/core/server/saved_objects/migrations/core/migration_context.ts index 4e419aa01a2..0d2bde4634a 100644 --- a/src/core/server/saved_objects/migrations/core/migration_context.ts +++ b/src/core/server/saved_objects/migrations/core/migration_context.ts @@ -182,7 +182,7 @@ export function disableUnknownTypeMappingFields( /** * Gets the next index name in a sequence, based on specified current index's info. - * We're using a numeric counter to create new indices. So, `.opensearch-dashboards_1`, `.opensearch-dashboards_2`, etc + * We're using a numeric counter to create new indices. So, `.opensearch_dashboards_1`, `.opensearch_dashboards_2`, etc * There are downsides to this, but it seemed like a simple enough approach. */ function nextIndexName(indexName: string, alias: string) { diff --git a/src/core/server/saved_objects/migrations/core/opensearch_index.test.ts b/src/core/server/saved_objects/migrations/core/opensearch_index.test.ts index 8be2f8dee29..8d2b067fc07 100644 --- a/src/core/server/saved_objects/migrations/core/opensearch_index.test.ts +++ b/src/core/server/saved_objects/migrations/core/opensearch_index.test.ts @@ -33,16 +33,16 @@ describe('ElasticIndex', () => { opensearchClientMock.createSuccessTransportRequestPromise({}, { statusCode: 404 }) ); - const info = await Index.fetchInfo(client, '.opensearch-dashboards-test'); + const info = await Index.fetchInfo(client, '.opensearch_dashboards_test'); expect(info).toEqual({ aliases: {}, exists: false, - indexName: '.opensearch-dashboards-test', + indexName: '.opensearch_dashboards_test', mappings: { dynamic: 'strict', properties: {} }, }); expect(client.indices.get).toHaveBeenCalledWith( - { index: '.opensearch-dashboards-test' }, + { index: '.opensearch_dashboards_test' }, { ignore: [404] } ); }); diff --git a/src/core/server/saved_objects/migrations/opensearch-dashboards/opensearch_dashboards_migrator.ts b/src/core/server/saved_objects/migrations/opensearch-dashboards/opensearch_dashboards_migrator.ts index d748ae104d0..43d492eadd3 100644 --- a/src/core/server/saved_objects/migrations/opensearch-dashboards/opensearch_dashboards_migrator.ts +++ b/src/core/server/saved_objects/migrations/opensearch-dashboards/opensearch_dashboards_migrator.ts @@ -107,7 +107,7 @@ export class OpenSearchDashboardsMigrator { * * @param rerun - If true, method will run a new migration when called again instead of * returning the result of the initial migration. This should only be used when factors external - * to OpenSearch Dashboards itself alter the .opensearch-dashboards index causing the saved objects mappings or data to change + * to OpenSearch Dashboards itself alter the .opensearch_dashboards index causing the saved objects mappings or data to change * after the OpenSearch Dashboards server performed the initial migration. * * @remarks When the `rerun` parameter is set to true, no checks are performed to ensure that no migration diff --git a/src/core/server/saved_objects/saved_objects_type_registry.mock.ts b/src/core/server/saved_objects/saved_objects_type_registry.mock.ts index 25de98c9d97..4c3cbfc0104 100644 --- a/src/core/server/saved_objects/saved_objects_type_registry.mock.ts +++ b/src/core/server/saved_objects/saved_objects_type_registry.mock.ts @@ -39,8 +39,8 @@ const createRegistryMock = (): jest.Mocked< mock.getVisibleTypes.mockReturnValue([]); mock.getAllTypes.mockReturnValue([]); mock.getImportableAndExportableTypes.mockReturnValue([]); - mock.getIndex.mockReturnValue('.opensearch-dashboards-test'); - mock.getIndex.mockReturnValue('.opensearch-dashboards-test'); + mock.getIndex.mockReturnValue('.opensearch_dashboards-test'); + mock.getIndex.mockReturnValue('.opensearch_dashboards-test'); mock.isHidden.mockReturnValue(false); mock.isNamespaceAgnostic.mockImplementation((type: string) => type === 'global'); mock.isSingleNamespace.mockImplementation( diff --git a/src/core/server/saved_objects/service/lib/repository.test.js b/src/core/server/saved_objects/service/lib/repository.test.js index d5bd10b0fd7..0d4cad3438f 100644 --- a/src/core/server/saved_objects/service/lib/repository.test.js +++ b/src/core/server/saved_objects/service/lib/repository.test.js @@ -237,7 +237,7 @@ describe('SavedObjectsRepository', () => { const allowedTypes = [...new Set(allTypes.filter((type) => !registry.isHidden(type)))]; savedObjectsRepository = new SavedObjectsRepository({ - index: '.opensearch-dashboards-test', + index: '.opensearch_dashboards-test', mappings, client, migrator, @@ -689,7 +689,7 @@ describe('SavedObjectsRepository', () => { await bulkCreateSuccess([obj1, obj2]); expectClientCallArgsAction([obj1, obj2], { method: 'create', - _index: '.opensearch-dashboards-test', + _index: '.opensearch_dashboards-test', }); }); @@ -1937,7 +1937,7 @@ describe('SavedObjectsRepository', () => { it(`should use default index`, async () => { await createSuccess(type, attributes, { id }); expect(client.create).toHaveBeenCalledWith( - expect.objectContaining({ index: '.opensearch-dashboards-test' }), + expect.objectContaining({ index: '.opensearch_dashboards-test' }), expect.anything() ); }); @@ -2416,7 +2416,7 @@ describe('SavedObjectsRepository', () => { it(`should use all indices for types that are not namespace-agnostic`, async () => { await deleteByNamespaceSuccess(namespace); expect(client.updateByQuery).toHaveBeenCalledWith( - expect.objectContaining({ index: ['.opensearch-dashboards-test', 'custom'] }), + expect.objectContaining({ index: ['.opensearch_dashboards-test', 'custom'] }), expect.anything() ); }); @@ -2464,7 +2464,7 @@ describe('SavedObjectsRepository', () => { total: 4, hits: [ { - _index: '.opensearch-dashboards', + _index: '.opensearch_dashboards', _id: `${namespace ? `${namespace}:` : ''}index-pattern:logstash-*`, _score: 1, ...mockVersionProps, @@ -2481,7 +2481,7 @@ describe('SavedObjectsRepository', () => { }, }, { - _index: '.opensearch-dashboards', + _index: '.opensearch_dashboards', _id: `${namespace ? `${namespace}:` : ''}config:6.0.0-alpha1`, _score: 2, ...mockVersionProps, @@ -2496,7 +2496,7 @@ describe('SavedObjectsRepository', () => { }, }, { - _index: '.opensearch-dashboards', + _index: '.opensearch_dashboards', _id: `${namespace ? `${namespace}:` : ''}index-pattern:stocks-*`, _score: 3, ...mockVersionProps, @@ -2512,7 +2512,7 @@ describe('SavedObjectsRepository', () => { }, }, { - _index: '.opensearch-dashboards', + _index: '.opensearch_dashboards', _id: `${NAMESPACE_AGNOSTIC_TYPE}:something`, _score: 4, ...mockVersionProps, @@ -3129,7 +3129,7 @@ describe('SavedObjectsRepository', () => { opensearchClientMock.createSuccessTransportRequestPromise({ _id: params.id, ...mockVersionProps, - _index: '.opensearch-dashboards', + _index: '.opensearch_dashboards', get: { found: true, _source: { @@ -3309,7 +3309,7 @@ describe('SavedObjectsRepository', () => { opensearchClientMock.createSuccessTransportRequestPromise({ _id: params.id, ...mockVersionProps, - _index: '.opensearch-dashboards', + _index: '.opensearch_dashboards', get: { found: true, _source: { @@ -3450,7 +3450,7 @@ describe('SavedObjectsRepository', () => { it(`should use default index`, async () => { const expectFn = () => expect(client.delete).toHaveBeenCalledWith( - expect.objectContaining({ index: '.opensearch-dashboards-test' }), + expect.objectContaining({ index: '.opensearch_dashboards-test' }), expect.anything() ); await deleteFromNamespacesSuccessDelete(expectFn); @@ -3527,7 +3527,7 @@ describe('SavedObjectsRepository', () => { it(`should use default index`, async () => { const expectFn = () => expect(client.update).toHaveBeenCalledWith( - expect.objectContaining({ index: '.opensearch-dashboards-test' }), + expect.objectContaining({ index: '.opensearch_dashboards-test' }), expect.anything() ); await deleteFromNamespacesSuccessUpdate(expectFn); diff --git a/src/core/server/saved_objects/service/lib/repository_create_repository.test.ts b/src/core/server/saved_objects/service/lib/repository_create_repository.test.ts index 55015f6360f..402ea688a47 100644 --- a/src/core/server/saved_objects/service/lib/repository_create_repository.test.ts +++ b/src/core/server/saved_objects/service/lib/repository_create_repository.test.ts @@ -79,7 +79,7 @@ describe('SavedObjectsRepository#createRepository', () => { originalRepository.createRepository( (migrator as unknown) as OpenSearchDashboardsMigrator, typeRegistry, - '.opensearch-dashboards-test', + '.opensearch_dashboards-test', callAdminCluster, ['unMappedType1', 'unmappedType2'] ); @@ -94,7 +94,7 @@ describe('SavedObjectsRepository#createRepository', () => { const repository = originalRepository.createRepository( (migrator as unknown) as OpenSearchDashboardsMigrator, typeRegistry, - '.opensearch-dashboards-test', + '.opensearch_dashboards-test', callAdminCluster, [], SavedObjectsRepository @@ -112,7 +112,7 @@ describe('SavedObjectsRepository#createRepository', () => { const repository = originalRepository.createRepository( (migrator as unknown) as OpenSearchDashboardsMigrator, typeRegistry, - '.opensearch-dashboards-test', + '.opensearch_dashboards-test', callAdminCluster, ['hiddenType', 'hiddenType', 'hiddenType'], SavedObjectsRepository diff --git a/src/dev/ci_setup/extract_bootstrap_cache.sh b/src/dev/ci_setup/extract_bootstrap_cache.sh index 4d6b903a5f8..fef6269a01f 100755 --- a/src/dev/ci_setup/extract_bootstrap_cache.sh +++ b/src/dev/ci_setup/extract_bootstrap_cache.sh @@ -3,7 +3,7 @@ set -e targetBranch="${PR_TARGET_BRANCH:-$GIT_BRANCH}" -bootstrapCache="$HOME/.opensearch-dashboards/bootstrap_cache/$targetBranch.tar" +bootstrapCache="$HOME/.opensearch_dashboards/bootstrap_cache/$targetBranch.tar" ### ### Extract the bootstrap cache that we create in the packer_cache.sh script @@ -12,7 +12,7 @@ if [ -f "$bootstrapCache" ]; then echo "extracting bootstrap_cache from $bootstrapCache"; tar -xf "$bootstrapCache"; else - branchBootstrapCache="$HOME/.opensearch-dashboards/bootstrap_cache/$(jq -r .branch package.json).tar" + branchBootstrapCache="$HOME/.opensearch_dashboards/bootstrap_cache/$(jq -r .branch package.json).tar" if [ -f "$branchBootstrapCache" ]; then echo "extracting bootstrap_cache from $branchBootstrapCache"; diff --git a/src/dev/ci_setup/setup_env.sh b/src/dev/ci_setup/setup_env.sh index 3e991db63c0..7dc308f0b89 100644 --- a/src/dev/ci_setup/setup_env.sh +++ b/src/dev/ci_setup/setup_env.sh @@ -9,7 +9,7 @@ fi installNode=$1 dir="$(pwd)" -cacheDir="$HOME/.opensearch-dashboards" +cacheDir="$HOME/.opensearch_dashboards" RED='\033[0;31m' C_RESET='\033[0m' # Reset color diff --git a/src/fixtures/config_upgrade_from_4.0.0.json b/src/fixtures/config_upgrade_from_4.0.0.json index 23075676600..b26c21c23be 100644 --- a/src/fixtures/config_upgrade_from_4.0.0.json +++ b/src/fixtures/config_upgrade_from_4.0.0.json @@ -11,7 +11,7 @@ "max_score": 1, "hits": [ { - "_index": ".opensearch-dashboards", + "_index": ".opensearch_dashboards", "_type": "config", "_id": "4.0.0", "_score": 1, diff --git a/src/fixtures/config_upgrade_from_4.0.0_to_4.0.1-snapshot.json b/src/fixtures/config_upgrade_from_4.0.0_to_4.0.1-snapshot.json index 7ccc17d4cb6..cb24ae10c79 100644 --- a/src/fixtures/config_upgrade_from_4.0.0_to_4.0.1-snapshot.json +++ b/src/fixtures/config_upgrade_from_4.0.0_to_4.0.1-snapshot.json @@ -11,7 +11,7 @@ "max_score": 1, "hits": [ { - "_index": ".opensearch-dashboards", + "_index": ".opensearch_dashboards", "_type": "config", "_id": "4.0.1-SNAPSHOT", "_score": 1, @@ -21,7 +21,7 @@ } }, { - "_index": ".opensearch-dashboards", + "_index": ".opensearch_dashboards", "_type": "config", "_id": "4.0.0", "_score": 1, diff --git a/src/fixtures/config_upgrade_from_4.0.0_to_4.0.1.json b/src/fixtures/config_upgrade_from_4.0.0_to_4.0.1.json index 4f4d2b71e8d..cda181608b4 100644 --- a/src/fixtures/config_upgrade_from_4.0.0_to_4.0.1.json +++ b/src/fixtures/config_upgrade_from_4.0.0_to_4.0.1.json @@ -11,7 +11,7 @@ "max_score": 1, "hits": [ { - "_index": ".opensearch-dashboards", + "_index": ".opensearch_dashboards", "_type": "config", "_id": "4.0.1", "_score": 1, @@ -21,7 +21,7 @@ } }, { - "_index": ".opensearch-dashboards", + "_index": ".opensearch_dashboards", "_type": "config", "_id": "4.0.0", "_score": 1, diff --git a/src/legacy/server/config/schema.js b/src/legacy/server/config/schema.js index 4115b6e8377..82a2587410d 100644 --- a/src/legacy/server/config/schema.js +++ b/src/legacy/server/config/schema.js @@ -148,7 +148,7 @@ export default () => // temporarily moved here from the (now deleted) opensearch-dashboards legacy plugin opensearchDashboards: Joi.object({ enabled: Joi.boolean().default(true), - index: Joi.string().default('.opensearch-dashboards'), + index: Joi.string().default('.opensearch_dashboards'), autocompleteTerminateAfter: Joi.number().integer().min(1).default(100000), // TODO Also allow units here like in opensearch config once this is moved to the new platform autocompleteTimeout: Joi.number().integer().min(1).default(1000), diff --git a/src/plugins/console/server/__tests__/proxy_config_collection.js b/src/plugins/console/server/__tests__/proxy_config_collection.js index 41558295d37..44983e4ea5f 100644 --- a/src/plugins/console/server/__tests__/proxy_config_collection.js +++ b/src/plugins/console/server/__tests__/proxy_config_collection.js @@ -41,7 +41,7 @@ describe('ProxyConfigCollection', function () { protocol: 'https', host: 'localhost', port: 5601, - path: '/.opensearch-dashboards', + path: '/.opensearch_dashboards', }, timeout: 1, @@ -92,9 +92,9 @@ describe('ProxyConfigCollection', function () { }); }); - describe('https://localhost:5601/.opensearch-dashboards', function () { + describe('https://localhost:5601/.opensearch_dashboards', function () { it('defaults to the first matching timeout', function () { - expect(getTimeout('https://localhost:5601/.opensearch-dashboards')).to.be(1); + expect(getTimeout('https://localhost:5601/.opensearch_dashboards')).to.be(1); }); }); diff --git a/src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts b/src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts index b30aeaf053d..a32307b986b 100644 --- a/src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts +++ b/src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts @@ -648,7 +648,7 @@ export class IndexPatternsService { } /** - * Deletes an index pattern from .opensearch-dashboards index + * Deletes an index pattern from .opensearch_dashboards index * @param indexPatternId: Id of OpenSearch Dashboards Index Pattern to delete */ async delete(indexPatternId: string) { diff --git a/src/plugins/data/common/search/expressions/utils/courier_inspector_stats.ts b/src/plugins/data/common/search/expressions/utils/courier_inspector_stats.ts index 79039ed0d3e..29e3ec03813 100644 --- a/src/plugins/data/common/search/expressions/utils/courier_inspector_stats.ts +++ b/src/plugins/data/common/search/expressions/utils/courier_inspector_stats.ts @@ -51,7 +51,7 @@ export function getRequestInspectorStats(searchSource: ISearchSource) { value: index.id!, description: i18n.translate('data.search.searchSource.indexPatternIdDescription', { defaultMessage: 'The ID in the {opensearchDashboardsIndexPattern} index.', - values: { opensearchDashboardsIndexPattern: '.opensearch-dashboards' }, + values: { opensearchDashboardsIndexPattern: '.opensearch_dashboards' }, }), }; } diff --git a/src/plugins/data/server/dql_telemetry/usage_collector/fetch.test.ts b/src/plugins/data/server/dql_telemetry/usage_collector/fetch.test.ts index 1dfbdef4a04..e0bc13046c7 100644 --- a/src/plugins/data/server/dql_telemetry/usage_collector/fetch.test.ts +++ b/src/plugins/data/server/dql_telemetry/usage_collector/fetch.test.ts @@ -38,7 +38,7 @@ function setupMockCallCluster( if (params && 'id' in params && params.id === 'dql-telemetry:dql-telemetry') { if (optCount === null) { return Promise.resolve({ - _index: '.opensearch-dashboards_1', + _index: '.opensearch_dashboards_1', _type: 'doc', _id: 'dql-telemetry:dql-telemetry', found: false, @@ -85,10 +85,10 @@ function setupMockCallCluster( describe('makeDQLUsageCollector', () => { describe('fetch method', () => { beforeEach(() => { - fetch = fetchProvider('.opensearch-dashboards'); + fetch = fetchProvider('.opensearch_dashboards'); }); - it('should return opt in data from the .opensearch-dashboards/dql-telemetry doc', async () => { + it('should return opt in data from the .opensearch_dashboards/dql-telemetry doc', async () => { setupMockCallCluster({ optInCount: 1 }, 'kuery'); const fetchResponse = await fetch(callCluster); expect(fetchResponse.optInCount).toBe(1); @@ -114,7 +114,7 @@ describe('makeDQLUsageCollector', () => { expect(fetchResponse.defaultQueryLanguage).toBe('default-lucene'); }); - it('should default to 0 opt in counts if the .opensearch-dashboards/dql-telemetry doc does not exist', async () => { + it('should default to 0 opt in counts if the .opensearch_dashboards/dql-telemetry doc does not exist', async () => { setupMockCallCluster(null, 'kuery'); const fetchResponse = await fetch(callCluster); expect(fetchResponse.optInCount).toBe(0); diff --git a/src/plugins/data/server/dql_telemetry/usage_collector/make_dql_usage_collector.test.ts b/src/plugins/data/server/dql_telemetry/usage_collector/make_dql_usage_collector.test.ts index 81d557b922a..c6ca019857f 100644 --- a/src/plugins/data/server/dql_telemetry/usage_collector/make_dql_usage_collector.test.ts +++ b/src/plugins/data/server/dql_telemetry/usage_collector/make_dql_usage_collector.test.ts @@ -31,12 +31,12 @@ describe('makeDQLUsageCollector', () => { }); it('should call registerCollector', () => { - makeDQLUsageCollector(usageCollectionMock as UsageCollectionSetup, '.opensearch-dashboards'); + makeDQLUsageCollector(usageCollectionMock as UsageCollectionSetup, '.opensearch_dashboards'); expect(usageCollectionMock.registerCollector).toHaveBeenCalledTimes(1); }); it('should call makeUsageCollector with type = dql', () => { - makeDQLUsageCollector(usageCollectionMock as UsageCollectionSetup, '.opensearch-dashboards'); + makeDQLUsageCollector(usageCollectionMock as UsageCollectionSetup, '.opensearch_dashboards'); expect(usageCollectionMock.makeUsageCollector).toHaveBeenCalledTimes(1); expect(usageCollectionMock.makeUsageCollector.mock.calls[0][0].type).toBe('dql'); }); diff --git a/src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts b/src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts index f802c2a90c2..3419bd9beae 100644 --- a/src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts +++ b/src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts @@ -27,7 +27,7 @@ describe('Sample Data Fetch', () => { callClusterMock = sinon.stub(); }); - test('uninitialized .opensearch-dashboards', async () => { + test('uninitialized .opensearch_dashboards', async () => { const fetch = fetchProvider('index'); const telemetry = await fetch(callClusterMock); diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/create_index_pattern_wizard.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/create_index_pattern_wizard.test.tsx index 0da3932e18c..d97113e99e6 100644 --- a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/create_index_pattern_wizard.test.tsx +++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/create_index_pattern_wizard.test.tsx @@ -102,7 +102,7 @@ describe('CreateIndexPatternWizard', () => { component.setState({ isInitiallyLoadingIndices: false, isIncludingSystemIndices: true, - allIndices: [{ name: '.opensearch-dashboards ' }], + allIndices: [{ name: '.opensearch_dashboards ' }], }); await component.update(); diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/get_indices.test.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/get_indices.test.ts index 93233c8636d..b60ff87570d 100644 --- a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/get_indices.test.ts +++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/get_indices.test.ts @@ -50,7 +50,7 @@ const successfulSearchResponse = { indices: { buckets: [ { key: 'opensearch_dashboards_sample_data_ecommerce' }, - { key: '.opensearch-dashboards_1' }, + { key: '.opensearch_dashboards_1' }, ], }, }, diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/get_matched_indices.test.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/get_matched_indices.test.ts index d3dc279eaf5..4e8254ef582 100644 --- a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/get_matched_indices.test.ts +++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/get_matched_indices.test.ts @@ -31,18 +31,18 @@ const indices = [ { name: 'logstash', tags }, { name: 'packetbeat', tags }, { name: 'metricbeat', tags }, - { name: '.opensearch-dashboards', tags }, + { name: '.opensearch_dashboards', tags }, ] as MatchedItem[]; const partialIndices = [ { name: 'opensearch-dashboards', tags }, { name: 'opensearch', tags }, - { name: '.opensearch-dashboards', tags }, + { name: '.opensearch_dashboards', tags }, ] as MatchedItem[]; const exactIndices = [ { name: 'opensearch-dashboards', tags }, - { name: '.opensearch-dashboards', tags }, + { name: '.opensearch_dashboards', tags }, ] as MatchedItem[]; describe('getMatchedIndices', () => { @@ -60,23 +60,23 @@ describe('getMatchedIndices', () => { { name: 'logstash', tags }, { name: 'packetbeat', tags }, { name: 'metricbeat', tags }, - { name: '.opensearch-dashboards', tags }, + { name: '.opensearch_dashboards', tags }, ]); expect(exactMatchedIndices).toEqual([ { name: 'opensearch-dashboards', tags }, - { name: '.opensearch-dashboards', tags }, + { name: '.opensearch_dashboards', tags }, ]); expect(partialMatchedIndices).toEqual([ { name: 'opensearch-dashboards', tags }, { name: 'opensearch', tags }, - { name: '.opensearch-dashboards', tags }, + { name: '.opensearch_dashboards', tags }, ]); expect(visibleIndices).toEqual([ { name: 'opensearch-dashboards', tags }, - { name: '.opensearch-dashboards', tags }, + { name: '.opensearch_dashboards', tags }, ]); }); @@ -112,7 +112,7 @@ describe('getMatchedIndices', () => { expect(visibleIndices).toEqual([ { name: 'opensearch-dashboards', tags }, { name: 'opensearch', tags }, - { name: '.opensearch-dashboards', tags }, + { name: '.opensearch_dashboards', tags }, ]); }); diff --git a/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/get_saved_object_counts.test.ts b/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/get_saved_object_counts.test.ts index 87913067079..24491180ded 100644 --- a/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/get_saved_object_counts.test.ts +++ b/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/get_saved_object_counts.test.ts @@ -23,7 +23,7 @@ describe('getSavedObjectsCounts', () => { test('Get all the saved objects equal to 0 because no results were found', async () => { const callCluster = jest.fn(() => ({})); - const results = await getSavedObjectsCounts(callCluster as any, '.opensearch-dashboards'); + const results = await getSavedObjectsCounts(callCluster as any, '.opensearch_dashboards'); expect(results).toStrictEqual({ dashboard: { total: 0 }, visualization: { total: 0 }, @@ -48,7 +48,7 @@ describe('getSavedObjectsCounts', () => { }, })); - const results = await getSavedObjectsCounts(callCluster as any, '.opensearch-dashboards'); + const results = await getSavedObjectsCounts(callCluster as any, '.opensearch_dashboards'); expect(results).toStrictEqual({ dashboard: { total: 1 }, visualization: { total: 0 }, diff --git a/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/get_saved_object_counts.ts b/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/get_saved_object_counts.ts index a7be7476f39..46c57056cb1 100644 --- a/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/get_saved_object_counts.ts +++ b/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/get_saved_object_counts.ts @@ -49,7 +49,7 @@ export interface OpenSearchDashboardsSavedObjectCounts { export async function getSavedObjectsCounts( callCluster: LegacyAPICaller, - opensearchDashboardsIndex: string // Typically '.opensearch-dashboards'. We might need a way to obtain it from the SavedObjects client (or the SavedObjects client to provide a way to run aggregations?) + opensearchDashboardsIndex: string // Typically '.opensearch_dashboards'. We might need a way to obtain it from the SavedObjects client (or the SavedObjects client to provide a way to run aggregations?) ): Promise { const savedObjectCountSearchParams = { index: opensearchDashboardsIndex, diff --git a/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/index.test.ts b/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/index.test.ts index 3b78056b7bf..5455f710b02 100644 --- a/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/index.test.ts +++ b/src/plugins/opensearch_dashboards_usage_collection/server/collectors/opensearch_dashboards/index.test.ts @@ -47,7 +47,7 @@ describe('telemetry_opensearch_dashboards', () => { test('fetch', async () => { expect(await collector.fetch(callCluster)).toStrictEqual({ - index: '.opensearch-dashboards-tests', + index: '.opensearch_dashboards-tests', dashboard: { total: 0 }, visualization: { total: 0 }, search: { total: 0 }, @@ -59,7 +59,7 @@ describe('telemetry_opensearch_dashboards', () => { test('formatForBulkUpload', async () => { const resultFromFetch = { - index: '.opensearch-dashboards-tests', + index: '.opensearch_dashboards-tests', dashboard: { total: 0 }, visualization: { total: 0 }, search: { total: 0 }, diff --git a/src/plugins/security_oss/server/check_cluster_data.test.ts b/src/plugins/security_oss/server/check_cluster_data.test.ts index 53c8b04559e..ab8f319381a 100644 --- a/src/plugins/security_oss/server/check_cluster_data.test.ts +++ b/src/plugins/security_oss/server/check_cluster_data.test.ts @@ -40,7 +40,7 @@ describe('checkClusterForUserData', () => { opensearchServiceMock.createApiResponse({ body: [ { - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', 'docs.count': 500, }, { @@ -68,7 +68,7 @@ describe('checkClusterForUserData', () => { opensearchServiceMock.createApiResponse({ body: [ { - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', 'docs.count': 500, }, { @@ -98,7 +98,7 @@ describe('checkClusterForUserData', () => { opensearchServiceMock.createApiResponse({ body: [ { - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', 'docs.count': 500, }, ], diff --git a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts b/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts index 5db5310b2e6..612ea39dadf 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts @@ -52,7 +52,7 @@ describe.skip('get_data_telemetry', () => { expect( buildDataTelemetryPayload([ { name: 'no__way__this__can_match_anything', sizeInBytes: 10 }, - { name: '.opensearch-dashboards-event-log-8.0.0' }, + { name: '.opensearch_dashboards-event-log-8.0.0' }, ]) ).toStrictEqual([]); }); diff --git a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts b/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts index 1cb84484e7b..e122886f177 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts @@ -101,7 +101,7 @@ function findMatchingDescriptors({ // Otherwise, try with the list of known index patterns return DATA_DATASETS_INDEX_PATTERNS_UNIQUE.filter(({ pattern }) => { if (!pattern.startsWith('.') && name.startsWith('.')) { - // avoid system indices caught by very fuzzy index patterns (i.e.: *log* would catch `.opensearch-dashboards-log-...`) + // avoid system indices caught by very fuzzy index patterns (i.e.: *log* would catch `.opensearch_dashboards-log-...`) return false; } return new RegExp(`^${pattern.replace(/\./g, '\\.').replace(/\*/g, '.*')}$`).test(name); diff --git a/src/plugins/usage_collection/README.md b/src/plugins/usage_collection/README.md index 108f11b9336..c1a09a0126b 100644 --- a/src/plugins/usage_collection/README.md +++ b/src/plugins/usage_collection/README.md @@ -86,7 +86,7 @@ Some background: - `MY_USAGE_TYPE` can be any string. It usually matches the plugin name. As a safety mechanism, we double check there are no duplicates at the moment of registering the collector. - The `fetch` method needs to support multiple contexts in which it is called. For example, when stats are pulled from a OpenSearch Dashboards Metricbeat module, the Beat calls OpenSearch Dashboards's stats API to invoke usage collection. -In this case, the `fetch` method is called as a result of an HTTP API request and `callCluster` wraps `callWithRequest` or `opensearchClient` wraps `asCurrentUser`, where the request headers are expected to have read privilege on the entire `.opensearch-dashboards' index. +In this case, the `fetch` method is called as a result of an HTTP API request and `callCluster` wraps `callWithRequest` or `opensearchClient` wraps `asCurrentUser`, where the request headers are expected to have read privilege on the entire `.opensearch_dashboards' index. Note: there will be many cases where you won't need to use the `callCluster` (or `opensearchClient`) function that gets passed in to your `fetch` method at all. Your feature might have an accumulating value in server memory, or read something from the OS, or use other clients like a custom SavedObjects client. In that case it's up to the plugin to initialize those clients like the example below: diff --git a/src/plugins/usage_collection/server/routes/integration_tests/stats.test.ts b/src/plugins/usage_collection/server/routes/integration_tests/stats.test.ts index 26ab6641d4c..fc35c564ae3 100644 --- a/src/plugins/usage_collection/server/routes/integration_tests/stats.test.ts +++ b/src/plugins/usage_collection/server/routes/integration_tests/stats.test.ts @@ -63,7 +63,7 @@ describe('/api/stats', () => { }), config: { allowAnonymous: true, - opensearchDashboardsIndex: '.opensearch-dashboards-test', + opensearchDashboardsIndex: '.opensearch_dashboards-test', opensearchDashboardsVersion: '8.8.8-SNAPSHOT', server: { name: 'myopensearchDashboards', @@ -89,7 +89,7 @@ describe('/api/stats', () => { opensearchDashboards: { uuid: 'xxx-xxxxx', name: 'myopensearchDashboards', - index: '.opensearch-dashboards-test', + index: '.opensearch_dashboards-test', host: 'myopensearchDashboards.com', locale: 'en', transport_address: `myopensearchDashboards.com:1234`, diff --git a/test/api_integration/apis/dql_telemetry/dql_telemetry.js b/test/api_integration/apis/dql_telemetry/dql_telemetry.js index a1bacd7ce25..52601c0ca3c 100644 --- a/test/api_integration/apis/dql_telemetry/dql_telemetry.js +++ b/test/api_integration/apis/dql_telemetry/dql_telemetry.js @@ -30,7 +30,7 @@ export default function ({ getService }) { before(() => opensearchArchiver.load('saved_objects/basic')); after(() => opensearchArchiver.unload('saved_objects/basic')); - it('should increment the opt *in* counter in the .opensearch-dashboards/dql-telemetry document', async () => { + it('should increment the opt *in* counter in the .opensearch_dashboards/dql-telemetry document', async () => { await supertest .post('/api/opensearch-dashboards/dql_opt_in_stats') .set('content-type', 'application/json') @@ -39,7 +39,7 @@ export default function ({ getService }) { return opensearch .search({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', q: 'type:dql-telemetry', }) .then((response) => { @@ -48,7 +48,7 @@ export default function ({ getService }) { }); }); - it('should increment the opt *out* counter in the .opensearch-dashboards/dql-telemetry document', async () => { + it('should increment the opt *out* counter in the .opensearch_dashboards/dql-telemetry document', async () => { await supertest .post('/api/opensearch-dashboards/dql_opt_in_stats') .set('content-type', 'application/json') @@ -57,7 +57,7 @@ export default function ({ getService }) { return opensearch .search({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', q: 'type:dql-telemetry', }) .then((response) => { diff --git a/test/api_integration/apis/saved_objects/bulk_create.js b/test/api_integration/apis/saved_objects/bulk_create.js index eafb9fea1bc..b1a9a09a64e 100644 --- a/test/api_integration/apis/saved_objects/bulk_create.js +++ b/test/api_integration/apis/saved_objects/bulk_create.js @@ -100,7 +100,7 @@ export default function ({ getService }) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/saved_objects/bulk_get.js b/test/api_integration/apis/saved_objects/bulk_get.js index 9674e08a5e2..217400bb1e0 100644 --- a/test/api_integration/apis/saved_objects/bulk_get.js +++ b/test/api_integration/apis/saved_objects/bulk_get.js @@ -110,7 +110,7 @@ export default function ({ getService }) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/saved_objects/bulk_update.js b/test/api_integration/apis/saved_objects/bulk_update.js index 596a301e5c9..621ed9b502d 100644 --- a/test/api_integration/apis/saved_objects/bulk_update.js +++ b/test/api_integration/apis/saved_objects/bulk_update.js @@ -246,7 +246,7 @@ export default function ({ getService }) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/saved_objects/create.js b/test/api_integration/apis/saved_objects/create.js index d124d8ff31e..a5cce72dba1 100644 --- a/test/api_integration/apis/saved_objects/create.js +++ b/test/api_integration/apis/saved_objects/create.js @@ -70,7 +70,7 @@ export default function ({ getService }) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); @@ -110,7 +110,7 @@ export default function ({ getService }) { expect(resp.body.migrationVersion).to.be.ok(); }); - expect(await opensearch.indices.exists({ index: '.opensearch-dashboards' })).to.be(true); + expect(await opensearch.indices.exists({ index: '.opensearch_dashboards' })).to.be(true); }); }); }); diff --git a/test/api_integration/apis/saved_objects/delete.js b/test/api_integration/apis/saved_objects/delete.js index b897a7765e3..848b21cf388 100644 --- a/test/api_integration/apis/saved_objects/delete.js +++ b/test/api_integration/apis/saved_objects/delete.js @@ -55,7 +55,7 @@ export default function ({ getService }) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/saved_objects/export.js b/test/api_integration/apis/saved_objects/export.js index a41955448fb..ab65df89e92 100644 --- a/test/api_integration/apis/saved_objects/export.js +++ b/test/api_integration/apis/saved_objects/export.js @@ -493,7 +493,7 @@ export default function ({ getService }) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/saved_objects/find.js b/test/api_integration/apis/saved_objects/find.js index 7b6b6f2c06d..c6f32bf578b 100644 --- a/test/api_integration/apis/saved_objects/find.js +++ b/test/api_integration/apis/saved_objects/find.js @@ -344,7 +344,7 @@ export default function ({ getService }) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/saved_objects/get.js b/test/api_integration/apis/saved_objects/get.js index 8e37c98ba84..fde61adab68 100644 --- a/test/api_integration/apis/saved_objects/get.js +++ b/test/api_integration/apis/saved_objects/get.js @@ -82,7 +82,7 @@ export default function ({ getService }) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/saved_objects/update.js b/test/api_integration/apis/saved_objects/update.js index 7e8ec2415bf..65deac52d7a 100644 --- a/test/api_integration/apis/saved_objects/update.js +++ b/test/api_integration/apis/saved_objects/update.js @@ -132,7 +132,7 @@ export default function ({ getService }) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/saved_objects_management/find.ts b/test/api_integration/apis/saved_objects_management/find.ts index 9739b8775c5..aaf4185ee75 100644 --- a/test/api_integration/apis/saved_objects_management/find.ts +++ b/test/api_integration/apis/saved_objects_management/find.ts @@ -131,7 +131,7 @@ export default function ({ getService }: FtrProviderContext) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/saved_objects_management/get.ts b/test/api_integration/apis/saved_objects_management/get.ts index af91ce7828b..c83b174af76 100644 --- a/test/api_integration/apis/saved_objects_management/get.ts +++ b/test/api_integration/apis/saved_objects_management/get.ts @@ -57,7 +57,7 @@ export default function ({ getService }: FtrProviderContext) { async () => // just in case the opensearch-dashboards server has recreated it await opensearch.indices.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', ignore: [404], }) ); diff --git a/test/api_integration/apis/telemetry/telemetry_local.js b/test/api_integration/apis/telemetry/telemetry_local.js index 30c08dbbf18..6852d3f65d6 100644 --- a/test/api_integration/apis/telemetry/telemetry_local.js +++ b/test/api_integration/apis/telemetry/telemetry_local.js @@ -243,7 +243,7 @@ export default function ({ getService }) { after('clean them all', async () => { // The SavedObjects API does not allow bulk deleting, and deleting one by one takes ages and the tests timeout await opensearch.deleteByQuery({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', body: { query: { term: { type: 'application_usage_transactional' } } }, }); }); diff --git a/test/api_integration/apis/telemetry/telemetry_optin_notice_seen.ts b/test/api_integration/apis/telemetry/telemetry_optin_notice_seen.ts index c8f16de1bda..ecdeebb39bc 100644 --- a/test/api_integration/apis/telemetry/telemetry_optin_notice_seen.ts +++ b/test/api_integration/apis/telemetry/telemetry_optin_notice_seen.ts @@ -30,7 +30,7 @@ export default function optInTest({ getService }: FtrProviderContext) { it('should update telemetry setting field via PUT', async () => { try { await client.delete({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', id: 'telemetry:telemetry', } as DeleteDocumentParams); } catch (err) { @@ -46,7 +46,7 @@ export default function optInTest({ getService }: FtrProviderContext) { }: GetResponse<{ telemetry: TelemetrySavedObjectAttributes; }> = await client.get({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', id: 'telemetry:telemetry', } as GetParams); diff --git a/test/api_integration/apis/ui_metric/ui_metric.js b/test/api_integration/apis/ui_metric/ui_metric.js index 7608d077e20..cd938bb164f 100644 --- a/test/api_integration/apis/ui_metric/ui_metric.js +++ b/test/api_integration/apis/ui_metric/ui_metric.js @@ -51,7 +51,7 @@ export default function ({ getService }) { .expect(200); const response = await opensearch.search({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', q: 'type:ui-metric', }); const ids = response.hits.hits.map(({ _id }) => _id); @@ -79,7 +79,7 @@ export default function ({ getService }) { .expect(200); const response = await opensearch.search({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', q: 'type:ui-metric', }); const ids = response.hits.hits.map(({ _id }) => _id); diff --git a/test/api_integration/fixtures/opensearch_archiver/index_patterns/basic_opensearch_dashboards/data.json b/test/api_integration/fixtures/opensearch_archiver/index_patterns/basic_opensearch_dashboards/data.json index e5bf66a3448..b14f562c1f7 100644 --- a/test/api_integration/fixtures/opensearch_archiver/index_patterns/basic_opensearch_dashboards/data.json +++ b/test/api_integration/fixtures/opensearch_archiver/index_patterns/basic_opensearch_dashboards/data.json @@ -1,7 +1,7 @@ { "type": "doc", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "id": "index-pattern:91200a00-9efd-11e7-acb3-3dab96693fab", "source": { "type": "index-pattern", diff --git a/test/api_integration/fixtures/opensearch_archiver/index_patterns/basic_opensearch_dashboards/mappings.json b/test/api_integration/fixtures/opensearch_archiver/index_patterns/basic_opensearch_dashboards/mappings.json index d1bdb886d06..1bf67d3af35 100644 --- a/test/api_integration/fixtures/opensearch_archiver/index_patterns/basic_opensearch_dashboards/mappings.json +++ b/test/api_integration/fixtures/opensearch_archiver/index_patterns/basic_opensearch_dashboards/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "settings": { "index": { "number_of_shards": "1", diff --git a/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/relationships/mappings.json b/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/relationships/mappings.json index 6dae99c1156..b068bdb32b7 100644 --- a/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/relationships/mappings.json +++ b/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/relationships/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "settings": { "index": { "number_of_shards": "1", diff --git a/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/scroll_count/mappings.json b/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/scroll_count/mappings.json index 6c86a625a87..1b500d20fcf 100644 --- a/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/scroll_count/mappings.json +++ b/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/scroll_count/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "settings": { "index": { "number_of_shards": "1", diff --git a/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/search/mappings.json b/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/search/mappings.json index 6dae99c1156..b068bdb32b7 100644 --- a/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/search/mappings.json +++ b/test/api_integration/fixtures/opensearch_archiver/management/saved_objects/search/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "settings": { "index": { "number_of_shards": "1", diff --git a/test/api_integration/fixtures/opensearch_archiver/saved_objects/10k/mappings.json b/test/api_integration/fixtures/opensearch_archiver/saved_objects/10k/mappings.json index d1bdb886d06..1bf67d3af35 100644 --- a/test/api_integration/fixtures/opensearch_archiver/saved_objects/10k/mappings.json +++ b/test/api_integration/fixtures/opensearch_archiver/saved_objects/10k/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "settings": { "index": { "number_of_shards": "1", diff --git a/test/api_integration/fixtures/opensearch_archiver/saved_objects/basic/mappings.json b/test/api_integration/fixtures/opensearch_archiver/saved_objects/basic/mappings.json index 0dc051feb3d..85341dc0644 100644 --- a/test/api_integration/fixtures/opensearch_archiver/saved_objects/basic/mappings.json +++ b/test/api_integration/fixtures/opensearch_archiver/saved_objects/basic/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "settings": { "index": { "number_of_shards": "1", diff --git a/test/api_integration/fixtures/opensearch_archiver/saved_objects/find_edgecases/data.json b/test/api_integration/fixtures/opensearch_archiver/saved_objects/find_edgecases/data.json index 93471c40407..5c382f57f8f 100644 --- a/test/api_integration/fixtures/opensearch_archiver/saved_objects/find_edgecases/data.json +++ b/test/api_integration/fixtures/opensearch_archiver/saved_objects/find_edgecases/data.json @@ -1,7 +1,7 @@ { "type": "doc", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "id": "visualization:title-with-dash", "source": { "type": "visualization", @@ -24,7 +24,7 @@ { "type": "doc", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "id": "visualization:title-with-asterisk", "source": { "type": "visualization", @@ -48,7 +48,7 @@ { "type": "doc", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "id": "visualization:noise-1", "source": { "type": "visualization", @@ -71,7 +71,7 @@ { "type": "doc", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "id": "visualization:noise-2", "source": { "type": "visualization", diff --git a/test/api_integration/fixtures/opensearch_archiver/saved_objects/find_edgecases/mappings.json b/test/api_integration/fixtures/opensearch_archiver/saved_objects/find_edgecases/mappings.json index ea8a6e69410..d565006c4c8 100644 --- a/test/api_integration/fixtures/opensearch_archiver/saved_objects/find_edgecases/mappings.json +++ b/test/api_integration/fixtures/opensearch_archiver/saved_objects/find_edgecases/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "settings": { "index": { "number_of_shards": "1", diff --git a/test/api_integration/fixtures/opensearch_archiver/search/count/mappings.json b/test/api_integration/fixtures/opensearch_archiver/search/count/mappings.json index 8f30f036b8c..e5f8fc95e01 100644 --- a/test/api_integration/fixtures/opensearch_archiver/search/count/mappings.json +++ b/test/api_integration/fixtures/opensearch_archiver/search/count/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "settings": { "index": { "number_of_shards": "1", diff --git a/test/common/services/opensearch_dashboards_server/extend_opensearch_archiver.js b/test/common/services/opensearch_dashboards_server/extend_opensearch_archiver.js index 9042f474d98..6b1dc6c5e7b 100644 --- a/test/common/services/opensearch_dashboards_server/extend_opensearch_archiver.js +++ b/test/common/services/opensearch_dashboards_server/extend_opensearch_archiver.js @@ -18,7 +18,7 @@ */ const OPENSEARCH_ARCHIVER_LOAD_METHODS = ['load', 'loadIfNeeded', 'unload']; -const OPENSEARCH_DASHBOARDS_INDEX = '.opensearch-dashboards'; +const OPENSEARCH_DASHBOARDS_INDEX = '.opensearch_dashboards'; export function extendOpenSearchArchiver({ opensearchArchiver, @@ -40,7 +40,7 @@ export function extendOpenSearchArchiver({ const statsKeys = Object.keys(stats); const opensearchDashboardsKeys = statsKeys.filter( - // this also matches stats keys like '.opensearch-dashboards_1' and '.opensearch-dashboards_2,.opensearch-dashboards_1' + // this also matches stats keys like '.opensearch_dashboards_1' and '.opensearch_dashboards_2,.opensearch_dashboards_1' (key) => key.includes(OPENSEARCH_DASHBOARDS_INDEX) && (stats[key].created || stats[key].deleted) ); diff --git a/test/functional/apps/discover/_discover.js b/test/functional/apps/discover/_discover.js index f97cb463fd6..fedf8fd9f83 100644 --- a/test/functional/apps/discover/_discover.js +++ b/test/functional/apps/discover/_discover.js @@ -34,7 +34,7 @@ export default function ({ getService, getPageObjects }) { describe('discover app', function describeIndexTests() { before(async function () { - // delete .opensearch-dashboards index and update configDoc + // delete .opensearch_dashboards index and update configDoc await opensearchDashboardsServer.uiSettings.replace(defaultSettings); log.debug('load opensearch-dashboards index with default index pattern'); diff --git a/test/functional/apps/discover/_inspector.js b/test/functional/apps/discover/_inspector.js index 24f93c339d1..2140fb6c406 100644 --- a/test/functional/apps/discover/_inspector.js +++ b/test/functional/apps/discover/_inspector.js @@ -39,7 +39,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await opensearchArchiver.loadIfNeeded('logstash_functional'); await opensearchArchiver.load('discover'); - // delete .opensearch-dashboards index and update configDoc + // delete .opensearch_dashboards index and update configDoc await opensearchDashboardsServer.uiSettings.replace({ defaultIndex: 'logstash-*', }); diff --git a/test/functional/apps/discover/_shared_links.js b/test/functional/apps/discover/_shared_links.js index ef1ee50fd69..e948555f355 100644 --- a/test/functional/apps/discover/_shared_links.js +++ b/test/functional/apps/discover/_shared_links.js @@ -40,7 +40,7 @@ export default function ({ getService, getPageObjects }) { baseUrl = baseUrl.replace(':80', '').replace(':443', ''); log.debug('New baseUrl = ' + baseUrl); - // delete .opensearch-dashboards index and update configDoc + // delete .opensearch_dashboards index and update configDoc await opensearchDashboardsServer.uiSettings.replace({ defaultIndex: 'logstash-*', }); diff --git a/test/functional/apps/discover/_sidebar.js b/test/functional/apps/discover/_sidebar.js index f75026e2a17..34339d8a2f5 100644 --- a/test/functional/apps/discover/_sidebar.js +++ b/test/functional/apps/discover/_sidebar.js @@ -27,7 +27,7 @@ export default function ({ getService, getPageObjects }) { describe('discover sidebar', function describeIndexTests() { before(async function () { - // delete .opensearch-dashboards index and update configDoc + // delete .opensearch_dashboards index and update configDoc await opensearchDashboardsServer.uiSettings.replace({ defaultIndex: 'logstash-*', }); diff --git a/test/functional/apps/discover/_source_filters.js b/test/functional/apps/discover/_source_filters.js index 22f8cd6870b..faebb7d76a8 100644 --- a/test/functional/apps/discover/_source_filters.js +++ b/test/functional/apps/discover/_source_filters.js @@ -27,7 +27,7 @@ export default function ({ getService, getPageObjects }) { describe('source filters', function describeIndexTests() { before(async function () { - // delete .opensearch-dashboards index and update configDoc + // delete .opensearch_dashboards index and update configDoc await opensearchDashboardsServer.uiSettings.replace({ defaultIndex: 'logstash-*', }); diff --git a/test/functional/apps/management/_create_index_pattern_wizard.js b/test/functional/apps/management/_create_index_pattern_wizard.js index 0481cdee20c..154067641d5 100644 --- a/test/functional/apps/management/_create_index_pattern_wizard.js +++ b/test/functional/apps/management/_create_index_pattern_wizard.js @@ -28,7 +28,7 @@ export default function ({ getService, getPageObjects }) { describe('"Create Index Pattern" wizard', function () { before(async function () { - // delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it await opensearchDashboardsServer.uiSettings.replace({}); await PageObjects.settings.navigateTo(); await PageObjects.settings.clickOpenSearchDashboardsIndexPatterns(); diff --git a/test/functional/apps/management/_handle_version_conflict.js b/test/functional/apps/management/_handle_version_conflict.js index 3410cf587d4..69d926e1f92 100644 --- a/test/functional/apps/management/_handle_version_conflict.js +++ b/test/functional/apps/management/_handle_version_conflict.js @@ -52,7 +52,7 @@ export default function ({ getService, getPageObjects }) { await PageObjects.settings.setScriptedFieldName(scriptedFiledName); await PageObjects.settings.setScriptedFieldScript(`doc['bytes'].value`); const response = await opensearch.update({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', type: '_doc', id: 'index-pattern:logstash-*', body: { @@ -79,7 +79,7 @@ export default function ({ getService, getPageObjects }) { log.debug('controls are open'); await PageObjects.settings.setFieldFormat('url'); const response = await opensearch.update({ - index: '.opensearch-dashboards', + index: '.opensearch_dashboards', type: '_doc', id: 'index-pattern:logstash-*', body: { diff --git a/test/functional/apps/management/_import_objects.js b/test/functional/apps/management/_import_objects.js index 8b4dab785d8..4fa8faa4a02 100644 --- a/test/functional/apps/management/_import_objects.js +++ b/test/functional/apps/management/_import_objects.js @@ -33,7 +33,7 @@ export default function ({ getService, getPageObjects }) { describe('import objects', function describeIndexTests() { describe('.ndjson file', () => { beforeEach(async function () { - // delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it await opensearchDashboardsServer.uiSettings.replace({}); await PageObjects.settings.navigateTo(); await opensearchArchiver.load('management'); @@ -202,7 +202,7 @@ export default function ({ getService, getPageObjects }) { describe('.json file', () => { beforeEach(async function () { - // delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it await opensearchDashboardsServer.uiSettings.replace({}); await PageObjects.settings.navigateTo(); await opensearchArchiver.load('saved_objects_imports'); diff --git a/test/functional/apps/management/_index_pattern_create_delete.js b/test/functional/apps/management/_index_pattern_create_delete.js index 3de7fe68d23..56e91a04170 100644 --- a/test/functional/apps/management/_index_pattern_create_delete.js +++ b/test/functional/apps/management/_index_pattern_create_delete.js @@ -29,7 +29,7 @@ export default function ({ getService, getPageObjects }) { describe('creating and deleting default index', function describeIndexTests() { before(function () { - // Delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // Delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it return opensearchDashboardsServer.uiSettings .replace({}) .then(function () { diff --git a/test/functional/apps/management/_index_pattern_filter.js b/test/functional/apps/management/_index_pattern_filter.js index 8fe03d91c06..d764ad5b79c 100644 --- a/test/functional/apps/management/_index_pattern_filter.js +++ b/test/functional/apps/management/_index_pattern_filter.js @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }) { describe('index pattern filter', function describeIndexTests() { before(async function () { - // delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it await opensearchDashboardsServer.uiSettings.replace({}); await PageObjects.settings.navigateTo(); await PageObjects.settings.clickOpenSearchDashboardsIndexPatterns(); diff --git a/test/functional/apps/management/_index_pattern_popularity.js b/test/functional/apps/management/_index_pattern_popularity.js index d2a045cae76..6f7731b2a4a 100644 --- a/test/functional/apps/management/_index_pattern_popularity.js +++ b/test/functional/apps/management/_index_pattern_popularity.js @@ -27,7 +27,7 @@ export default function ({ getService, getPageObjects }) { describe('index result popularity', function describeIndexTests() { const fieldName = 'geo.coordinates'; before(async function () { - // delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it await opensearchDashboardsServer.uiSettings.replace({}); await PageObjects.settings.navigateTo(); }); diff --git a/test/functional/apps/management/_index_pattern_results_sort.js b/test/functional/apps/management/_index_pattern_results_sort.js index 025b74780e4..c1873db134e 100644 --- a/test/functional/apps/management/_index_pattern_results_sort.js +++ b/test/functional/apps/management/_index_pattern_results_sort.js @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }) { describe('index result field sort', function describeIndexTests() { before(async function () { - // delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it await opensearchDashboardsServer.uiSettings.replace({}); }); diff --git a/test/functional/apps/management/_opensearch_dashboards_settings.js b/test/functional/apps/management/_opensearch_dashboards_settings.js index 6dc0893ff13..2f0a8f43bb8 100644 --- a/test/functional/apps/management/_opensearch_dashboards_settings.js +++ b/test/functional/apps/management/_opensearch_dashboards_settings.js @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }) { describe('opensearch-dashboards settings', function describeIndexTests() { before(async function () { - // delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it await opensearchDashboardsServer.uiSettings.replace({}); await PageObjects.settings.createIndexPattern('logstash-*'); await PageObjects.settings.navigateTo(); diff --git a/test/functional/apps/management/_scripted_fields.js b/test/functional/apps/management/_scripted_fields.js index 6e59ca25506..e7ce6ce999a 100644 --- a/test/functional/apps/management/_scripted_fields.js +++ b/test/functional/apps/management/_scripted_fields.js @@ -60,7 +60,7 @@ export default function ({ getService, getPageObjects }) { before(async function () { await browser.setWindowSize(1200, 800); await opensearchArchiver.load('discover'); - // delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it await opensearchDashboardsServer.uiSettings.replace({}); await opensearchDashboardsServer.uiSettings.update({}); }); diff --git a/test/functional/apps/management/_scripted_fields_filter.js b/test/functional/apps/management/_scripted_fields_filter.js index aa4da54a2b2..dd4558bbe3e 100644 --- a/test/functional/apps/management/_scripted_fields_filter.js +++ b/test/functional/apps/management/_scripted_fields_filter.js @@ -31,7 +31,7 @@ export default function ({ getService, getPageObjects }) { // https://github.com/elastic/kibana/issues/74118 describe.skip('filter scripted fields', function describeIndexTests() { before(async function () { - // delete .opensearch-dashboards index and then wait for OpenSearch Dashboards to re-create it + // delete .opensearch_dashboards index and then wait for OpenSearch Dashboards to re-create it await browser.setWindowSize(1200, 800); await opensearchArchiver.load('management'); await opensearchDashboardsServer.uiSettings.replace({ diff --git a/test/functional/fixtures/opensearch_archiver/README.md b/test/functional/fixtures/opensearch_archiver/README.md index 4d38c6dff7f..ae71fa57024 100644 --- a/test/functional/fixtures/opensearch_archiver/README.md +++ b/test/functional/fixtures/opensearch_archiver/README.md @@ -5,6 +5,6 @@ If you need to update these datasets use: * Run the dev server `node scripts/functional_tests_server.js` * When it starts, use `opensearch_archiver` to load the dataset you want to change * Make the changes you want - * Export the data by running `node scripts/opensearch_archiver.js save data .opensearch-dashboards` + * Export the data by running `node scripts/opensearch_archiver.js save data .opensearch_dashboards` * Move the mapping and data files to the correct location and commit your changes diff --git a/test/functional/fixtures/opensearch_archiver/dashboard/current/opensearch_dashboards/mappings.json b/test/functional/fixtures/opensearch_archiver/dashboard/current/opensearch_dashboards/mappings.json index 46656cdebd9..20dfab5e6f2 100644 --- a/test/functional/fixtures/opensearch_archiver/dashboard/current/opensearch_dashboards/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/dashboard/current/opensearch_dashboards/mappings.json @@ -2,10 +2,10 @@ "type": "index", "value": { "aliases": { - ".opensearch-dashboards": { + ".opensearch_dashboards": { } }, - "index": ".opensearch-dashboards_1", + "index": ".opensearch_dashboards_1", "mappings": { "_meta": { "migrationMappingPropertyHashes": { diff --git a/test/functional/fixtures/opensearch_archiver/dashboard/legacy/mappings.json b/test/functional/fixtures/opensearch_archiver/dashboard/legacy/mappings.json index 1b5160527e3..5a7f1e428f1 100644 --- a/test/functional/fixtures/opensearch_archiver/dashboard/legacy/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/dashboard/legacy/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/date_nanos/data.json b/test/functional/fixtures/opensearch_archiver/date_nanos/data.json index bd41e16ac93..5c31b200031 100644 --- a/test/functional/fixtures/opensearch_archiver/date_nanos/data.json +++ b/test/functional/fixtures/opensearch_archiver/date_nanos/data.json @@ -2,7 +2,7 @@ "type": "doc", "value": { "id": "index-pattern:date-nanos", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fields": "[{\"name\":\"referer\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"agent\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:image:width\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"xss.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"headings.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:description\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.user.lastname\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:tag.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"geo.dest\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:image\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:section.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"utc_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:card\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.char\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"clientip\",\"type\":\"ip\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image:height\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"host\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"machine.ram\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"links\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"id\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@tags.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"phpmemory\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:card.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"ip\",\"type\":\"ip\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:modified_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:site_name.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"request.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:tag\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"agent.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"spaces\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:site.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"headings\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"_source\",\"type\":\"_source\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"relatedContent.og:image.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"request\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"index.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"extension\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"memory\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"_index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"relatedContent.twitter:site\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:description\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"geo.coordinates\",\"type\":\"geo_point\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"meta.related\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:title.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:title.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"response.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@message.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"machine.os\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:section\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"xss\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"links.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:title\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"geo.srcdest\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"extension.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"machine.os.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@tags\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"host.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:type.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"geo.src\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"spaces.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image:height.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:description.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:site_name\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:title\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"@message\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:image.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@timestamp\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"bytes\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"response\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.user.firstname\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:image:width.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:description.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:published_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"_id\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"_type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false}]", @@ -19,7 +19,7 @@ "type": "doc", "value": { "id": "search:ab12e3c0-f231-11e6-9486-733b1ac9221a", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "search": { "columns": [ diff --git a/test/functional/fixtures/opensearch_archiver/date_nanos_mixed/data.json b/test/functional/fixtures/opensearch_archiver/date_nanos_mixed/data.json index b231d0e25b1..aa6bd958d71 100644 --- a/test/functional/fixtures/opensearch_archiver/date_nanos_mixed/data.json +++ b/test/functional/fixtures/opensearch_archiver/date_nanos_mixed/data.json @@ -2,7 +2,7 @@ "type": "doc", "value": { "id": "index-pattern:timestamp-*", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fields": "[{\"name\":\"_id\",\"type\":\"string\",\"opensearchTypes\":[\"_id\"],\"count\":1,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_index\",\"type\":\"string\",\"opensearchTypes\":[\"_index\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_source\",\"type\":\"_source\",\"opensearchTypes\":[\"_source\"],\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_type\",\"type\":\"string\",\"opensearchTypes\":[\"_type\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"timestamp\",\"type\":\"date\",\"opensearchTypes\":[\"date\",\"date_nanos\"],\"count\":2,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]", @@ -20,7 +20,7 @@ "type": "doc", "value": { "id": "search:82116b30-d407-11e9-8004-932185690e7b", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "search": { "columns": [ diff --git a/test/functional/fixtures/opensearch_archiver/discover/mappings.json b/test/functional/fixtures/opensearch_archiver/discover/mappings.json index 0b15a23f5ec..655c91227eb 100644 --- a/test/functional/fixtures/opensearch_archiver/discover/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/discover/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/empty_opensearch_dashboards/mappings.json b/test/functional/fixtures/opensearch_archiver/empty_opensearch_dashboards/mappings.json index 723ee5478b9..a5d86a9c113 100644 --- a/test/functional/fixtures/opensearch_archiver/empty_opensearch_dashboards/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/empty_opensearch_dashboards/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/hamlet/mappings.json b/test/functional/fixtures/opensearch_archiver/hamlet/mappings.json index de99a3a5974..a2c61152b68 100644 --- a/test/functional/fixtures/opensearch_archiver/hamlet/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/hamlet/mappings.json @@ -2,10 +2,10 @@ "type": "index", "value": { "aliases": { - ".opensearch-dashboards": { + ".opensearch_dashboards": { } }, - "index": ".opensearch-dashboards_1", + "index": ".opensearch_dashboards_1", "mappings": { "_meta": { "migrationMappingPropertyHashes": { diff --git a/test/functional/fixtures/opensearch_archiver/index_pattern_without_timefield/data.json b/test/functional/fixtures/opensearch_archiver/index_pattern_without_timefield/data.json index 9968b7f4898..1a9b8be0db1 100644 --- a/test/functional/fixtures/opensearch_archiver/index_pattern_without_timefield/data.json +++ b/test/functional/fixtures/opensearch_archiver/index_pattern_without_timefield/data.json @@ -2,7 +2,7 @@ "type": "doc", "value": { "id": "index-pattern:without-timefield", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fields": "[{\"name\":\"referer\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"agent\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:image:width\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"xss.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"headings.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:description\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.user.lastname\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:tag.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"geo.dest\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:image\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:section.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"utc_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:card\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.char\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"clientip\",\"type\":\"ip\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image:height\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"host\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"machine.ram\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"links\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"id\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@tags.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"phpmemory\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:card.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"ip\",\"type\":\"ip\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:modified_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:site_name.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"request.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:tag\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"agent.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"spaces\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:site.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"headings\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"_source\",\"type\":\"_source\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"relatedContent.og:image.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"request\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"index.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"extension\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"memory\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"_index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"relatedContent.twitter:site\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:description\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"geo.coordinates\",\"type\":\"geo_point\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"meta.related\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:title.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:title.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"response.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@message.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"machine.os\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:section\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"xss\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"links.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:title\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"geo.srcdest\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"extension.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"machine.os.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@tags\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"host.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:type.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"geo.src\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"spaces.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image:height.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:description.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:site_name\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:title\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"@message\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:image.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@timestamp\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"bytes\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"response\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.user.firstname\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:image:width.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:description.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:published_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"_id\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"_type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false}]", @@ -34,7 +34,7 @@ "type": "doc", "value": { "id": "index-pattern:with-timefield", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fields": "[{\"name\":\"referer\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"agent\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:image:width\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"xss.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"headings.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:description\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.user.lastname\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:tag.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"geo.dest\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:image\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:section.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"utc_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:card\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.char\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"clientip\",\"type\":\"ip\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image:height\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"host\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"machine.ram\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"links\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"id\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@tags.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"phpmemory\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:card.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"ip\",\"type\":\"ip\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:modified_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:site_name.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"request.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:tag\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"agent.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"spaces\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:site.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"headings\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"_source\",\"type\":\"_source\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"relatedContent.og:image.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"request\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"index.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"extension\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"memory\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"_index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"relatedContent.twitter:site\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:description\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"geo.coordinates\",\"type\":\"geo_point\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"meta.related\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:title.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:title.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"response.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@message.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"machine.os\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:section\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"xss\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"links.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:title\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"geo.srcdest\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"extension.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"machine.os.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@tags\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"host.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:type.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"geo.src\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"spaces.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image:height.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:description.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:site_name\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:title\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"@message\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:image.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@timestamp\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"bytes\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"response\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.user.firstname\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:image:width.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:description.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:published_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"_id\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"_type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false}]", diff --git a/test/functional/fixtures/opensearch_archiver/invalid_scripted_field/mappings.json b/test/functional/fixtures/opensearch_archiver/invalid_scripted_field/mappings.json index 36bdb832aac..a16d1cd1611 100644 --- a/test/functional/fixtures/opensearch_archiver/invalid_scripted_field/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/invalid_scripted_field/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "dynamic": "strict", "properties": { diff --git a/test/functional/fixtures/opensearch_archiver/long_window_logstash_index_pattern/data.json b/test/functional/fixtures/opensearch_archiver/long_window_logstash_index_pattern/data.json index c9a55d9ddbb..8e4b182ee69 100644 --- a/test/functional/fixtures/opensearch_archiver/long_window_logstash_index_pattern/data.json +++ b/test/functional/fixtures/opensearch_archiver/long_window_logstash_index_pattern/data.json @@ -2,7 +2,7 @@ "type": "doc", "value": { "id": "index-pattern:long-window-logstash-*", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fields": "[{\"name\":\"referer\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"agent\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:image:width\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"xss.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"headings.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:description\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.user.lastname\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:tag.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"geo.dest\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:image\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:section.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"utc_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:card\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.char\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"clientip\",\"type\":\"ip\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image:height\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"host\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"machine.ram\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"links\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"id\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@tags.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"phpmemory\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.twitter:card.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"ip\",\"type\":\"ip\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:modified_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:site_name.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"request.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:tag\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"agent.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"spaces\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:site.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"headings\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"_source\",\"type\":\"_source\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"relatedContent.og:image.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"request\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"index.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"extension\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"memory\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"_index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"relatedContent.twitter:site\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:description\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"geo.coordinates\",\"type\":\"geo_point\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"meta.related\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:title.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:title.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"response.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@message.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"machine.os\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.article:section\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"xss\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"links.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:title\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"geo.srcdest\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"url.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"extension.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"machine.os.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@tags\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"host.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:type.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"geo.src\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"spaces.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:image:height.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"url\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:description.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:site_name\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:title\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"@message\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.twitter:image.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"@timestamp\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"bytes\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"response\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"meta.user.firstname\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\":false},{\"name\":\"relatedContent.og:image:width.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.og:description.raw\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"relatedContent.article:published_time\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":true},{\"name\":\"_id\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"_type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"doc_values\":false}]", diff --git a/test/functional/fixtures/opensearch_archiver/management/mappings.json b/test/functional/fixtures/opensearch_archiver/management/mappings.json index 1b5160527e3..5a7f1e428f1 100644 --- a/test/functional/fixtures/opensearch_archiver/management/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/management/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/mgmt/mappings.json b/test/functional/fixtures/opensearch_archiver/mgmt/mappings.json index 44264975e31..1bb95978c8c 100644 --- a/test/functional/fixtures/opensearch_archiver/mgmt/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/mgmt/mappings.json @@ -3,7 +3,7 @@ "value": { "aliases": { }, - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "dynamic": "strict", "properties": { diff --git a/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights_index_pattern/mappings.json b/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights_index_pattern/mappings.json index 34ecaa57997..e3bfc438a9b 100644 --- a/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights_index_pattern/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/opensearch_dashboards_sample_data_flights_index_pattern/mappings.json @@ -2,10 +2,10 @@ "type": "index", "value": { "aliases": { - ".opensearch-dashboards": { + ".opensearch_dashboards": { } }, - "index": ".opensearch-dashboards_1", + "index": ".opensearch_dashboards_1", "mappings": { "_meta": { "migrationMappingPropertyHashes": { diff --git a/test/functional/fixtures/opensearch_archiver/saved_objects_imports/mappings.json b/test/functional/fixtures/opensearch_archiver/saved_objects_imports/mappings.json index 1b5160527e3..5a7f1e428f1 100644 --- a/test/functional/fixtures/opensearch_archiver/saved_objects_imports/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/saved_objects_imports/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/saved_objects_management/edit_saved_object/data.json b/test/functional/fixtures/opensearch_archiver/saved_objects_management/edit_saved_object/data.json index 6966b234803..97184e0595e 100644 --- a/test/functional/fixtures/opensearch_archiver/saved_objects_management/edit_saved_object/data.json +++ b/test/functional/fixtures/opensearch_archiver/saved_objects_management/edit_saved_object/data.json @@ -1,7 +1,7 @@ { "type": "doc", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "id": "index-pattern:logstash-*", "source": { "index-pattern": { @@ -21,7 +21,7 @@ { "type": "doc", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "id": "visualization:75c3e060-1e7c-11e9-8488-65449e65d0ed", "source": { "visualization": { @@ -50,7 +50,7 @@ { "type": "doc", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "id": "dashboard:i-exist", "source": { "dashboard": { @@ -74,7 +74,7 @@ { "type": "doc", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "id": "config:6.0.0", "source": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/saved_objects_management/edit_saved_object/mappings.json b/test/functional/fixtures/opensearch_archiver/saved_objects_management/edit_saved_object/mappings.json index e535e5384d2..f6d5a203596 100644 --- a/test/functional/fixtures/opensearch_archiver/saved_objects_management/edit_saved_object/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/saved_objects_management/edit_saved_object/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "settings": { "index": { "number_of_shards": "1", diff --git a/test/functional/fixtures/opensearch_archiver/timelion/mappings.json b/test/functional/fixtures/opensearch_archiver/timelion/mappings.json index 1b5160527e3..5a7f1e428f1 100644 --- a/test/functional/fixtures/opensearch_archiver/timelion/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/timelion/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/visualize/data.json b/test/functional/fixtures/opensearch_archiver/visualize/data.json index 81ff22d4f8e..3b1efef7a6e 100644 --- a/test/functional/fixtures/opensearch_archiver/visualize/data.json +++ b/test/functional/fixtures/opensearch_archiver/visualize/data.json @@ -2,7 +2,7 @@ "type": "doc", "value": { "id": "index-pattern:logstash-*", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fieldFormatMap": "{\"bytes\":{\"id\":\"bytes\"}}", @@ -19,7 +19,7 @@ "type": "doc", "value": { "id": "index-pattern:logstash*", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fieldFormatMap": "{\"bytes\":{\"id\":\"bytes\"}}", @@ -35,7 +35,7 @@ "type": "doc", "value": { "id": "index-pattern:long-window-logstash-*", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fieldFormatMap": "{\"bytes\":{\"id\":\"bytes\"}}", @@ -52,7 +52,7 @@ "type": "doc", "value": { "id": "visualization:Shared-Item-Visualization-AreaChart", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "type": "visualization", "visualization": { @@ -73,7 +73,7 @@ "type": "doc", "value": { "id": "visualization:Visualization-AreaChart", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "type": "visualization", "visualization": { @@ -94,7 +94,7 @@ "type": "doc", "value": { "id": "visualization:68305470-87bc-11e9-a991-3b492a7c3e09", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "visualization" : { "title" : "chained input control", @@ -131,7 +131,7 @@ "type": "doc", "value": { "id": "visualization:64983230-87bf-11e9-a991-3b492a7c3e09", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "visualization" : { "title" : "dynamic options input control", @@ -163,7 +163,7 @@ "type": "doc", "value": { "id": "visualization:5d2de430-87c0-11e9-a991-3b492a7c3e09", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "visualization" : { "title" : "chained input control with dynamic options", @@ -200,7 +200,7 @@ "type": "doc", "value": { "id": "index-pattern:test_index*", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fields": "[{\"name\":\"_id\",\"type\":\"string\",\"opensearchTypes\":[\"_id\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_index\",\"type\":\"string\",\"opensearchTypes\":[\"_index\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_source\",\"type\":\"_source\",\"opensearchTypes\":[\"_source\"],\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_type\",\"type\":\"string\",\"opensearchTypes\":[\"_type\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"message\",\"type\":\"string\",\"opensearchTypes\":[\"text\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"message.keyword\",\"type\":\"string\",\"opensearchTypes\":[\"keyword\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true,\"subType\":{\"multi\":{\"parent\":\"message\"}}},{\"name\":\"user\",\"type\":\"string\",\"opensearchTypes\":[\"text\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"user.keyword\",\"type\":\"string\",\"opensearchTypes\":[\"keyword\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true,\"subType\":{\"multi\":{\"parent\":\"user\"}}}]", @@ -215,7 +215,7 @@ "type": "doc", "value": { "id": "visualization:AreaChart-no-date-field", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "type": "visualization", "visualization": { @@ -236,7 +236,7 @@ "type": "doc", "value": { "id": "index-pattern:log*", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "index-pattern": { "fieldFormatMap": "{\"bytes\":{\"id\":\"bytes\"}}", @@ -252,7 +252,7 @@ "type": "doc", "value": { "id": "visualization:AreaChart-no-time-filter", - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "source": { "type": "visualization", "visualization": { diff --git a/test/functional/fixtures/opensearch_archiver/visualize/mappings.json b/test/functional/fixtures/opensearch_archiver/visualize/mappings.json index 9f2677cd6f6..9cb037fffd8 100644 --- a/test/functional/fixtures/opensearch_archiver/visualize/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/visualize/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/visualize_embedding/mappings.json b/test/functional/fixtures/opensearch_archiver/visualize_embedding/mappings.json index 1b5160527e3..5a7f1e428f1 100644 --- a/test/functional/fixtures/opensearch_archiver/visualize_embedding/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/visualize_embedding/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/visualize_source-filters/mappings.json b/test/functional/fixtures/opensearch_archiver/visualize_source-filters/mappings.json index 1b5160527e3..5a7f1e428f1 100644 --- a/test/functional/fixtures/opensearch_archiver/visualize_source-filters/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/visualize_source-filters/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/functional/fixtures/opensearch_archiver/visualize_source_filters/mappings.json b/test/functional/fixtures/opensearch_archiver/visualize_source_filters/mappings.json index 2f55ce3b677..fa6bd7b1ec3 100644 --- a/test/functional/fixtures/opensearch_archiver/visualize_source_filters/mappings.json +++ b/test/functional/fixtures/opensearch_archiver/visualize_source_filters/mappings.json @@ -1,7 +1,7 @@ { "type": "index", "value": { - "index": ".opensearch-dashboards", + "index": ".opensearch_dashboards", "mappings": { "properties": { "config": { diff --git a/test/new_visualize_flow/fixtures/opensearch_archiver/opensearch-dashboards/mappings.json b/test/new_visualize_flow/fixtures/opensearch_archiver/opensearch-dashboards/mappings.json index 46656cdebd9..20dfab5e6f2 100644 --- a/test/new_visualize_flow/fixtures/opensearch_archiver/opensearch-dashboards/mappings.json +++ b/test/new_visualize_flow/fixtures/opensearch_archiver/opensearch-dashboards/mappings.json @@ -2,10 +2,10 @@ "type": "index", "value": { "aliases": { - ".opensearch-dashboards": { + ".opensearch_dashboards": { } }, - "index": ".opensearch-dashboards_1", + "index": ".opensearch_dashboards_1", "mappings": { "_meta": { "migrationMappingPropertyHashes": {