2 * Copyright (c) 2019 Vodafone Group
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 import { actionTypes } from './SoftwareProductValidationConstants.js';
18 export default (state = {}, action) => {
19 switch (action.type) {
20 case actionTypes.POST_VSP_TESTS:
23 vspTestResults: action.vspTestResults,
24 testResultKeys: action.testResultKeys
26 case actionTypes.FETCH_VSP_CHECKS:
29 vspChecks: action.vspChecks
31 case actionTypes.SET_ACTIVE_TAB:
32 return { ...state, activeTab: action.activeTab };
33 case actionTypes.SET_VSP_TESTS_MAP:
36 vspTestsMap: action.vspTestsMap
38 case actionTypes.SET_COMPLIANCE_CHECKED:
41 complianceChecked: action.complianceChecked
43 case actionTypes.SET_CERTIFICATION_CHECKED:
46 certificationChecked: action.certificationChecked
48 case actionTypes.SET_TESTS_REQUEST:
51 testsRequest: action.testsRequest,
52 generalInfo: action.generalInfo
54 case actionTypes.SET_GENERAL_INFO:
57 generalInfo: action.generalInfo
59 case actionTypes.SET_VSP_VALIDATION_DISABLED:
62 isValidationDisabled: action.isValidationDisabled