Skip to content

Commit

Permalink
Adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández Gómez committed Jun 24, 2021
1 parent abb13a7 commit 9caf75e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ describe('storedPackagePoliciesToAgentPermissions()', () => {
'test-policy': {
indices: [
{
names: ['logs-some-logs-test'],
names: ['logs-some-logs-test*'],
privileges: ['auto_configure', 'create_doc'],
},
],
Expand Down Expand Up @@ -267,7 +267,7 @@ describe('storedPackagePoliciesToAgentPermissions()', () => {
'test-policy': {
indices: [
{
names: ['logs-compiled-test'],
names: ['logs-compiled-test*'],
privileges: ['auto_configure', 'create_doc'],
},
],
Expand All @@ -292,7 +292,7 @@ describe('getDataStreamPermissions()', () => {
const permissions = getDataStreamPermissions(dataStream, 'namespace');

expect(permissions).toMatchObject({
names: ['logs-test-namespace'],
names: ['logs-test-namespace*'],
privileges: ['auto_configure', 'create_doc'],
});
});
Expand All @@ -306,7 +306,7 @@ describe('getDataStreamPermissions()', () => {
const permissions = getDataStreamPermissions(dataStream, 'namespace');

expect(permissions).toMatchObject({
names: ['logs-test.*-namespace'],
names: ['logs-test.*-namespace*'],
privileges: ['auto_configure', 'create_doc'],
});
});
Expand All @@ -320,7 +320,7 @@ describe('getDataStreamPermissions()', () => {
const permissions = getDataStreamPermissions(dataStream, 'namespace');

expect(permissions).toMatchObject({
names: ['.logs-test-namespace'],
names: ['.logs-test-namespace*'],
privileges: ['auto_configure', 'create_doc'],
});
});
Expand All @@ -334,7 +334,7 @@ describe('getDataStreamPermissions()', () => {
const permissions = getDataStreamPermissions(dataStream, 'namespace');

expect(permissions).toMatchObject({
names: ['logs-test-namespace'],
names: ['logs-test-namespace*'],
privileges: ['read', 'write'],
});
});
Expand Down

0 comments on commit 9caf75e

Please sign in to comment.