diff --git a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/MappingWizardClusterStepActions.test.js.snap b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/MappingWizardClusterStepActions.test.js.snap index e7ae17c132..f575815171 100644 --- a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/MappingWizardClusterStepActions.test.js.snap +++ b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/MappingWizardClusterStepActions.test.js.snap @@ -23,32 +23,3 @@ Array [ }, ] `; - -exports[`queryProvidersAction dispatches PENDING and FULFILLED actions 1`] = ` -Array [ - Object { - "type": "QUERY_V2V_PROVIDERS_PENDING", - }, - Object { - "payload": Array [ - Object { - "mock": "data", - }, - ], - "type": "QUERY_V2V_PROVIDERS_FULFILLED", - }, -] -`; - -exports[`queryProvidersAction dispatches PENDING and REJECTED actions 1`] = ` -Array [ - Object { - "type": "QUERY_V2V_PROVIDERS_PENDING", - }, - Object { - "error": true, - "payload": [Error: ], - "type": "QUERY_V2V_PROVIDERS_REJECTED", - }, -] -`; diff --git a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/MappingWizardClustersStepReducers.test.js.snap b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/MappingWizardClustersStepReducers.test.js.snap index 7a6c22ce92..e4f1c719b0 100644 --- a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/MappingWizardClustersStepReducers.test.js.snap +++ b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/MappingWizardClustersStepReducers.test.js.snap @@ -2,16 +2,12 @@ exports[`fetching source clusters is pending 1`] = ` Object { - "errorQueryProviders": null, "errorSourceClusters": null, "errorTargetClusters": null, "isFetchingSourceClusters": true, "isFetchingTargetClusters": false, - "isQueryingProviders": false, - "isRejectedQueryProviders": false, "isRejectedSourceClusters": false, "isRejectedTargetClusters": false, - "providers": Array [], "sourceClusters": Array [], "targetClusters": Array [], } @@ -19,16 +15,12 @@ Object { exports[`fetching source clusters is rejected 1`] = ` Object { - "errorQueryProviders": null, "errorSourceClusters": "error", "errorTargetClusters": null, "isFetchingSourceClusters": false, "isFetchingTargetClusters": false, - "isQueryingProviders": false, - "isRejectedQueryProviders": false, "isRejectedSourceClusters": true, "isRejectedTargetClusters": false, - "providers": Array [], "sourceClusters": Array [], "targetClusters": Array [], } @@ -36,16 +28,12 @@ Object { exports[`fetching source clusters is successful, and there is data 1`] = ` Object { - "errorQueryProviders": null, "errorSourceClusters": null, "errorTargetClusters": null, "isFetchingSourceClusters": false, "isFetchingTargetClusters": false, - "isQueryingProviders": false, - "isRejectedQueryProviders": false, "isRejectedSourceClusters": false, "isRejectedTargetClusters": false, - "providers": Array [], "sourceClusters": Array [ Object { "0": Object { @@ -131,16 +119,12 @@ Object { exports[`fetching source clusters is successful, and there is no data 1`] = ` Object { - "errorQueryProviders": null, "errorSourceClusters": null, "errorTargetClusters": null, "isFetchingSourceClusters": false, "isFetchingTargetClusters": false, - "isQueryingProviders": false, - "isRejectedQueryProviders": false, "isRejectedSourceClusters": false, "isRejectedTargetClusters": false, - "providers": Array [], "sourceClusters": Array [], "targetClusters": Array [], } @@ -148,16 +132,12 @@ Object { exports[`sets default state 1`] = ` Object { - "errorQueryProviders": null, "errorSourceClusters": null, "errorTargetClusters": null, "isFetchingSourceClusters": false, "isFetchingTargetClusters": false, - "isQueryingProviders": false, - "isRejectedQueryProviders": false, "isRejectedSourceClusters": false, "isRejectedTargetClusters": false, - "providers": Array [], "sourceClusters": Array [], "targetClusters": Array [], } diff --git a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/index.test.js.snap b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/index.test.js.snap index 830caf11e8..8e617298b2 100644 --- a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/index.test.js.snap +++ b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/__tests__/__snapshots__/index.test.js.snap @@ -16,7 +16,6 @@ Object { "isRejectedTargetClusters": false, "keepDirtyOnReinitialize": true, "ospConversionHosts": Array [], - "queryProvidersAction": [Function], "rhvConversionHosts": Array [], "showAlertAction": [Function], "sourceClusters": Array [], diff --git a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/components/ClustersStepForm/__tests__/ClustersStepForm.test.js b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/components/ClustersStepForm/__tests__/ClustersStepForm.test.js index 6a1f8c3914..955df70261 100644 --- a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/components/ClustersStepForm/__tests__/ClustersStepForm.test.js +++ b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/components/MappingWizardClustersStep/components/ClustersStepForm/__tests__/ClustersStepForm.test.js @@ -4,7 +4,7 @@ import { shallow } from 'enzyme'; import ClustersStepForm from '../ClustersStepForm'; import { srcClusters, tgtClusters } from '../clustersStepForm.fixtures'; import { targetClusterWithExtendedData, sourceClusterWithExtendedData } from '../helpers'; -import { RHV, OPENSTACK } from '../../../../../MappingWizardConstants'; +import { RHV } from '../../../../../MappingWizardConstants'; let onChange; let baseProps; @@ -92,29 +92,6 @@ describe('#addMapping', () => { }); }); -describe('OSP RSA key pairs', () => { - const input = { value: [], onChange }; - const props = { - ...baseProps, - sourceClusters: [], - targetClusters: [{ id: '1', name: 'target project', ems_id: '1', ext_management_system: { name: 'OSP' } }], - targetProvider: OPENSTACK - }; - test('displays a warning icon if the provider does not have a RSA key', () => { - const providers = [{ name: 'OSP', id: '1', authentications: [] }]; - const wrapper = shallow(); - const listItem = wrapper.find('DualPaneMapperListItem'); - expect(listItem.prop('warningMessage')).toBeTruthy(); - }); - - test('does not display a warning icon if the provider has a RSA key', () => { - const providers = [{ name: 'OSP', id: '1', authentications: [{ authtype: 'ssh_keypair' }] }]; - const wrapper = shallow(); - const listItem = wrapper.find('DualPaneMapperListItem'); - expect(listItem.prop('warningMessage')).toBeFalsy(); - }); -}); - describe('RHV conversion hosts', () => { const props = { ...baseProps,