diff --git a/packages/terafoundation/src/schema.ts b/packages/terafoundation/src/schema.ts index 0b85f8cef43..f36afe37161 100644 --- a/packages/terafoundation/src/schema.ts +++ b/packages/terafoundation/src/schema.ts @@ -75,7 +75,7 @@ export function foundationSchema(sysconfig: SysConfig): convict.Schema doc: 'Name of the connection type used to store assets', default: DEFAULT_ASSET_STORAGE_CONNECTION_TYPE, format(connectionTypeName: any): void { - const validConnectionTypes = ['elasticsearch-next', 'elasticsearch', 's3']; + const validConnectionTypes = ['elasticsearch-next', 's3']; const connectionTypesPresent = Object.keys(sysconfig.terafoundation.connectors); if (!connectionTypesPresent.includes(connectionTypeName)) { throw new Error('asset_storage_connection_type not found in terafoundation.connectors'); diff --git a/packages/terafoundation/test/validate-configs-spec.ts b/packages/terafoundation/test/validate-configs-spec.ts index a5bc3221bd1..903096a3711 100644 --- a/packages/terafoundation/test/validate-configs-spec.ts +++ b/packages/terafoundation/test/validate-configs-spec.ts @@ -386,7 +386,7 @@ describe('Validate Configs', () => { it('should throw an error', () => { expect(() => validateConfigs(cluster as any, config as any, configFile as any)) - .toThrow('Error validating configuration, caused by Error: asset_storage_connection_type: Invalid asset_storage_connection_type. Valid types: elasticsearch-next,elasticsearch,s3: value was "kafka"'); + .toThrow('Error validating configuration, caused by Error: asset_storage_connection_type: Invalid asset_storage_connection_type. Valid types: elasticsearch-next,s3: value was "kafka"'); }); });