Skip to content

Commit

Permalink
[ip location processor] provider case fixes (#196735)
Browse files Browse the repository at this point in the history
  • Loading branch information
joegallo authored Oct 18, 2024
1 parent e955cb0 commit 9fae774
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('<ManageProcessors />', () => {

expect(row).toEqual([
database.name,
database.type === 'maxmind' ? 'MaxMind' : 'IPInfo',
database.type === 'maxmind' ? 'MaxMind' : 'IPinfo',
'',
]);
});
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('<ManageProcessors />', () => {
});
});

it('creates an IPInfo database when none with the same name exists', async () => {
it('creates an IPinfo database when none with the same name exists', async () => {
const { actions, exists } = testBed;
const databaseName = 'ASN';
httpRequestsMockHelpers.setCreateDatabasesResponse({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ export const mapProcessorTypeToDescriptor: MapProcessorTypeToDescriptor = {
}),
typeDescription: i18n.translate('xpack.ingestPipelines.processors.description.geoip', {
defaultMessage:
'Adds geo data based on an IP address. Uses geo data from a Maxmind database file.',
'Adds geo data based on an IP address. Uses geo data from a MaxMind database file.',
}),
getDefaultDescription: ({ field }) =>
i18n.translate('xpack.ingestPipelines.processors.defaultDescription.geoip', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const DATABASE_TYPE_OPTIONS = [
{
value: 'ipinfo',
text: i18n.translate('xpack.ingestPipelines.manageProcessors.geoip.ipinfoDatabaseType', {
defaultMessage: 'IPInfo',
defaultMessage: 'IPinfo',
}),
},
];
Expand Down Expand Up @@ -153,7 +153,7 @@ export const getTypeLabel = (type: GeoipDatabase['type']): string => {
}
case 'ipinfo': {
return i18n.translate('xpack.ingestPipelines.manageProcessors.geoip.list.typeIpinfoLabel', {
defaultMessage: 'IPInfo',
defaultMessage: 'IPinfo',
});
}
case 'web': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
expect(databaseExists).to.be(true);
});

it('Create an IPInfo database', async () => {
it('Create an IPinfo database', async () => {
await pageObjects.ingestPipelines.openCreateDatabaseModal();
await pageObjects.ingestPipelines.fillAddDatabaseForm('ipinfo', 'asn');
await pageObjects.ingestPipelines.clickAddDatabaseButton();
Expand Down Expand Up @@ -80,7 +80,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
database.includes(ipInfoDatabaseName)
);
expect(ipInfoDatabaseRow).to.contain(ipInfoDatabaseName);
expect(ipInfoDatabaseRow).to.contain('IPInfo');
expect(ipInfoDatabaseRow).to.contain('IPinfo');
});

it('Modal to delete a database', async () => {
Expand Down

0 comments on commit 9fae774

Please sign in to comment.