+
+
+
+
+
+
{
@@ -107,7 +109,7 @@ export const Header = ({
{dataSourceName}
+
+ Update stored password
+
+
+
+
+ Data Source not found!
;
+ return Data Source not found!
;
}
return (
<>
diff --git a/src/plugins/data_source_management/public/mocks.ts b/src/plugins/data_source_management/public/mocks.ts
index 2e0333121e28..c078247956e0 100644
--- a/src/plugins/data_source_management/public/mocks.ts
+++ b/src/plugins/data_source_management/public/mocks.ts
@@ -96,6 +96,14 @@ export const getDataSourcesResponse = {
],
};
+export const existingDatasourceNamesList = [
+ 'test123',
+ 'testTest20',
+ 'TeSt',
+ 'duplicateTest',
+ 'dup20',
+];
+
export const getMappedDataSources = [
{
id: 'test',
@@ -136,6 +144,17 @@ export const mockDataSourceAttributesWithAuth = {
},
},
};
+
+export const mockDataSourceAttributesWithNoAuth = {
+ id: 'test123',
+ title: 'create-test-ds123',
+ description: 'jest testing',
+ endpoint: 'https://test.com',
+ auth: {
+ type: AuthType.NoAuth,
+ credentials: undefined,
+ },
+};
export const getDataSourceByIdWithCredential = {
attributes: {
id: 'alpha-test',