Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Multi Data Source] Render credential form registered from AuthMethod #6002

Merged
Prev Previous commit
Resolving comments, update pmport path
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
  • Loading branch information
xinruiba committed Mar 4, 2024
commit b55ddb3b409de95885006f00721b892206966637
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
} from '@elastic/eui';
import { i18n } from '@osd/i18n';
import { FormattedMessage } from '@osd/i18n/react';
import { AuthenticationMethodRegistery } from 'src/plugins/data_source_management/public/auth_registry';
import { AuthenticationMethodRegistery } from '../../../../auth_registry';
import { SigV4Content, SigV4ServiceName } from '../../../../../../data_source/common/data_sources';
import {
AuthType,
Expand Down Expand Up @@ -325,7 +325,7 @@
};

handleStateChange = (state: any) => {
this.setState(state);

Check warning on line 328 in src/plugins/data_source_management/public/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx

View check run for this annotation

Codecov / codecov/patch

src/plugins/data_source_management/public/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx#L328

Added line #L328 was not covered by tests
};

getCredentialFormFromRegistry = (authType: string) => {
Expand All @@ -338,7 +338,7 @@
return authCredentialForm(this.state, this.handleStateChange);
}

return null;

Check warning on line 341 in src/plugins/data_source_management/public/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx

View check run for this annotation

Codecov / codecov/patch

src/plugins/data_source_management/public/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx#L341

Added line #L341 was not covered by tests
};

/* Render methods */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ import {
sigV4AuthMethod,
usernamePasswordAuthMethod,
} from '../../../../types';
import {
AuthenticationMethod,
AuthenticationMethodRegistery,
} from 'src/plugins/data_source_management/public/auth_registry';
import { AuthenticationMethod, AuthenticationMethodRegistery } from '../../../../auth_registry';

const titleFieldIdentifier = 'dataSourceTitle';
const titleFormRowIdentifier = '[data-test-subj="editDataSourceTitleFormRow"]';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
} from '@elastic/eui';
import { i18n } from '@osd/i18n';
import { FormattedMessage } from '@osd/i18n/react';
import { AuthenticationMethodRegistery } from 'src/plugins/data_source_management/public/auth_registry';
import { AuthenticationMethodRegistery } from '../../../../auth_registry';
import { SigV4Content, SigV4ServiceName } from '../../../../../../data_source/common/data_sources';
import { Header } from '../header';
import {
Expand Down Expand Up @@ -525,7 +525,7 @@
};

handleStateChange = (state: any) => {
this.setState(state);

Check warning on line 528 in src/plugins/data_source_management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx

View check run for this annotation

Codecov / codecov/patch

src/plugins/data_source_management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx#L528

Added line #L528 was not covered by tests
};

getCredentialFormFromRegistry = (authType: string) => {
Expand All @@ -538,7 +538,7 @@
return authCredentialForm(this.state, this.handleStateChange);
}

return null;

Check warning on line 541 in src/plugins/data_source_management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx

View check run for this annotation

Codecov / codecov/patch

src/plugins/data_source_management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx#L541

Added line #L541 was not covered by tests
};

/* Render methods */
Expand Down
Loading