mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 06:22:35 +08:00
Cloudwatch: Fix new ConfigEditor to add the custom namespace field (#83762)
This commit is contained in:
@ -216,6 +216,11 @@ describe('Render', () => {
|
||||
await waitFor(async () => expect(screen.getByText('Assume Role ARN')).toBeInTheDocument());
|
||||
});
|
||||
|
||||
it('should display namespace field', async () => {
|
||||
setup();
|
||||
await waitFor(async () => expect(screen.getByText('Namespaces of Custom Metrics')).toBeInTheDocument());
|
||||
});
|
||||
|
||||
it('should show a deprecation warning if `arn` auth type is used', async () => {
|
||||
setup({
|
||||
jsonData: {
|
||||
|
@ -107,7 +107,15 @@ export const ConfigEditor = (props: Props) => {
|
||||
})
|
||||
}
|
||||
externalId={externalId}
|
||||
>
|
||||
<Field label="Namespaces of Custom Metrics">
|
||||
<Input
|
||||
placeholder="Namespace1,Namespace2"
|
||||
value={options.jsonData.customMetricsNamespaces || ''}
|
||||
onChange={onUpdateDatasourceJsonDataOption(props, 'customMetricsNamespaces')}
|
||||
/>
|
||||
</Field>
|
||||
</ConnectionConfig>
|
||||
{config.secureSocksDSProxyEnabled && (
|
||||
<SecureSocksProxySettingsNewStyling options={options} onOptionsChange={onOptionsChange} />
|
||||
)}
|
||||
|
Reference in New Issue
Block a user