Skip to content

Commit

Permalink
remove elasticsearch from validConnectionTypes array
Browse files Browse the repository at this point in the history
  • Loading branch information
sotojn committed Mar 29, 2024
1 parent 03f9262 commit 36296f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/terafoundation/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function foundationSchema(sysconfig: SysConfig<any>): convict.Schema<any>
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');
Expand Down
2 changes: 1 addition & 1 deletion packages/terafoundation/test/validate-configs-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"');
});
});

Expand Down

0 comments on commit 36296f5

Please sign in to comment.