diff options
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/softwareProduct/validationResults/SoftwareProductValidationResultsViewReducer.js')
-rw-r--r-- | openecomp-ui/src/sdc-app/onboarding/softwareProduct/validationResults/SoftwareProductValidationResultsViewReducer.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/validationResults/SoftwareProductValidationResultsViewReducer.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/validationResults/SoftwareProductValidationResultsViewReducer.js new file mode 100644 index 0000000000..99bf68f723 --- /dev/null +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/validationResults/SoftwareProductValidationResultsViewReducer.js @@ -0,0 +1,27 @@ +import { actionTypes } from './SoftwareProductValidationResultsViewConstants.js'; + +export default (state = {}, action) => { + switch (action.type) { + case actionTypes.FETCH_VSP_RESULT: { + return { + ...state, + vspTestResults: action.vspTestResults + }; + } + case actionTypes.FETCH_VSP_CHECKS: { + return { + ...state, + vspChecks: action.vspChecks + }; + } + case actionTypes.UPDATE_DISPLAY_TEST_RESULT_DATA: { + return { + ...state, + vspTestResults: null, + testResultToDisplay: action.testResultToDisplay + }; + } + default: + return state; + } +}; |