Skip to content

Commit

Permalink
Add it back as a required bundle and fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <dxho@amazon.com>
  • Loading branch information
derek-ho committed Mar 4, 2024
1 parent 34d8c09 commit 6b4dd80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions opensearch_dashboards.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
],
"requiredPlugins": [
"navigation",
"savedObjectsManagement",
"dataSourceManagement"
"savedObjectsManagement"
],
"optionalPlugins": [
"managementOverview",
"dataSource"
],
"requiredBundles": ["dataSourceManagement"],
"server": true,
"ui": true
}
8 changes: 6 additions & 2 deletions public/apps/account/test/cluster-selector.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ describe('Cluster selector', () => {
};

const mockDepsDataSourceEnabled = {
dataSource: true,
dataSource: {
dataSourceEnabled: true,
},
} as SecurityPluginStartDependencies;

const mockDepsDataSourceDisabled = {
dataSource: false,
dataSource: {
dataSourceEnabled: false,
},
} as SecurityPluginStartDependencies;

it('Should not register cluster selector if multi data source is not enabled', (done) => {
Expand Down

0 comments on commit 6b4dd80

Please sign in to comment.