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
25 case actionTypes.FETCH_VSP_CHECKS:
28 vspChecks: action.vspChecks
30 case actionTypes.SET_ACTIVE_TAB:
31 return { ...state, activeTab: action.activeTab };
32 case actionTypes.SET_VSP_TESTS_MAP:
35 vspTestsMap: action.vspTestsMap
37 case actionTypes.SET_COMPLIANCE_CHECKED:
40 complianceChecked: action.complianceChecked
42 case actionTypes.SET_CERTIFICATION_CHECKED:
45 certificationChecked: action.certificationChecked
47 case actionTypes.SET_TESTS_REQUEST:
50 testsRequest: action.testsRequest,
51 generalInfo: action.generalInfo
53 case actionTypes.SET_GENERAL_INFO:
56 generalInfo: action.generalInfo
58 case actionTypes.SET_VSP_VALIDATION_DISABLED:
61 isValidationDisabled: action.isValidationDisabled