CORDET Framework - C2 Implementation
|
Implementation of the test cases for the Housekeepint Service components. More...
Go to the source code of this file.
Functions | |
CrFwBool_t | CrPsHkTestCase1 () |
Test the Service 3 Housekeeping Service Part 1 Test all the 3,1 and 3,2 actions and procedures. More... | |
CrFwBool_t | CrPsHkTestCase2 () |
Test the Service 3 Housekeeping Service Test all the 3,3 3,4 3,5 3,6 3,7 and 3,8 actions and procedures. More... | |
CrFwBool_t | CrPsHkTestCase3 () |
Test the Service 3 Housekeeping service Test all the 3,9 3,11 3,27 and 3,28 actions and procedures. More... | |
CrFwBool_t | CrPsHkTestCase4 () |
Test the Service 3 Housekeeping service Test all the 3,10 3,12 3,25 and 3,26 actions and procedures. More... | |
Implementation of the test cases for the Housekeepint Service components.
Declaration of the test cases for the Housekeeping Service components.
last modification: 22.01.2018
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Definition in file CrPsHkTestCases.h.
CrFwBool_t CrPsHkTestCase1 | ( | ) |
Test the Service 3 Housekeeping Service Part 1 Test all the 3,1 and 3,2 actions and procedures.
The following actions are performed in this test:
initialize all PUS Extension components and Applications
creation of OutFactory, InFactory and OutManager
allocating a 3,1 packet and run the start, progress and termination actions
check that the outcome is set to success and that a 3,25 packet is generated and the SID is in the Datapool
allocating a 3,1 packet but with a wrong SID. run the start action
check that the outcome is set to VER_RDL_CONSTR (no valid sid)
allocating a 3,2 packet and run the start, progress and termination actions
check that the outcome is set to success and that a 3,26 packet is generated and the SID is in the Datapool
allocating a 3,1 packet but with the same SID as the previous packet and run the start action
check that the outcome is set to VER_SID_IN_USE
allocating a 3,1 packet and fill the RDL then run the start action
check that the outcome is set to VER_FULL_RDL
allocating a 3,1 packet but set one parameter in the packet to a wrong value then run the start action
check that the outcome is set to VER_RDL_CONSTR
allocating a 3,1 packet but set one parameter twice to the same value then run the start action
check that the outcome is set to VER_DUPL_DI
allocating a 3,1 packet and fill the outFactory with outComponents then run the start action
check that the outcome is set to VER_REP_CR_FD
allocating a 3,1 packet TODO trigger Outloader Error TODO then run the start action
check that the outcome is set to TODO
Definition at line 80 of file CrPsHkTestCases.c.
CrFwBool_t CrPsHkTestCase2 | ( | ) |
Test the Service 3 Housekeeping Service Test all the 3,3 3,4 3,5 3,6 3,7 and 3,8 actions and procedures.
The following actions are performed in this test:
initialize all PUS Extension components and Applications
creation of OutFactory, InFactory and OutManager
allocating a 3,3 packet and run the start, progress and termination actions
check that the outcome is set to success and that the SID that was set is now gone in the Datapool
allocating a 3,4 packet and run the start, progress and termination actions
check that the outcome is set to success and that the SID that was set is now gone in the Datapool
allocating a 3,3 packet and run the start action (there is now no SID in the Datapool)
check that the outcome is set to VER_S3S_START_FD and a 1,4 packet with discriminant VER_ILL_SID is created
allocating a 3,3 packet and run the start action (there is now a SID in the Datapool but it is enabled)
check that the outcome is set to VER_S3S_START_FD and a 1,4 packet with discriminant VER_ENABLED_SID is created
allocating a 3,5 packet and run the start, progress and termination actions
check that the outcome is set to success and that the SID that was disabled is now enabled in the Datapool
allocating a 3,7 packet and run the start, progress and termination actions
check that the outcome is set to success and that the SID that was disabled is now enabled in the Datapool
allocating a 3,5 packet with a wrong SID and run the start action
check that the outcome is set to VER_SID_START_FD and a 1,4 packet with discriminant VER_ILL_SID is created
allocating a 3,6 packet and run the start, progress and termination actions
check that the outcome is set to success and that the SID that was enabled is now disabled in the Datapool
allocating a 3,8 packet and run the start, progress and termination actions
check that the outcome is set to success and that the SID that was enabled is now disabled in the Datapool
allocating a 3,6 packet with a wrong SID and run the start action
check that the outcome is set to VER_SID_START_FD and a 1,4 packet with discriminant VER_ILL_SID is created
Definition at line 910 of file CrPsHkTestCases.c.
CrFwBool_t CrPsHkTestCase3 | ( | ) |
Test the Service 3 Housekeeping service Test all the 3,9 3,11 3,27 and 3,28 actions and procedures.
The following actions are performed in this test:
initialize all PUS Extension components and Applications
creation of OutFactory, InFactory and OutManager
allocating a 3,9 packet and run the start, progress and termination actions
check that the outcome is set to success and that a 3,10 packet is created
allocating a 3,11 packet and run the start, progress and termination actions
check that the outcome is set to success and that a 3,12 packet is created
allocating a 3,9 packet, fill the outfactory to trigger an error and run the start action
check that the outcome is set to success and that the application error is set to crOutCmpAllocationFail
allocating a 3,27 packet and run the start, progress and termination actions
check that the outcome is set to success
allocating a 3,28 packet and run the start, progress and termination actions
check that the outcome is set to success
Definition at line 1909 of file CrPsHkTestCases.c.
CrFwBool_t CrPsHkTestCase4 | ( | ) |
Test the Service 3 Housekeeping service Test all the 3,10 3,12 3,25 and 3,26 actions and procedures.
The following actions are performed in this test:
initialize all PUS Extension components and Applications
creation of OutFactory, InFactory and OutManager
allocating a 3,25 packet and run the enable check, ready check and update action
check that the outcome is set to success
allocating a 3,10 packet and run the update action
check that the outcome is set to success
allocating a 3,26 packet and run the enable check, ready check and update action
check that the outcome is set to success
allocating a 3,12 packet and run the update action
check that the outcome is set to success
allocating a 3,25 packet with an invalid SID and run the enable check, ready check and update action
check that the outcome is set to success
allocating a 3,10 packet with an invalid SID and run the update action
check that the outcome is set to success
allocating a 3,25 packet with a disabled SID and run the enable checkand ready check
check that the outcome is set to 0
reset OutManager, OutFactory and inFactory and check for application errors
Definition at line 2588 of file CrPsHkTestCases.c.