Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing test cases for software bus API parameter/return combinations #1812

Closed
jphickey opened this issue Aug 13, 2021 · 0 comments · Fixed by #1870 or #1885
Closed

Missing test cases for software bus API parameter/return combinations #1812

jphickey opened this issue Aug 13, 2021 · 0 comments · Fixed by #1870 or #1885

Comments

@jphickey
Copy link
Contributor

jphickey commented Aug 13, 2021

Is your feature request related to a problem? Please describe.
The following parameter/return code combinations are not exercised by the software bus functional test:

 + condition: CFE_SB_CreatePipe[any]=>CFE_SB_MAX_PIPES_MET
 + condition: CFE_SB_DeletePipe[CFE_SB_PipeId_t@0]=>ERROR_RESOURCEID_INVALID
 + condition: CFE_SB_GetPipeIdByName[<null-pointer>@1]=>ERROR_NULL_POINTER
 + condition: CFE_SB_MessageStringGet[<null-pointer>@0]=>ERROR_NULL_POINTER
 + condition: CFE_SB_MessageStringGet[<null-pointer>@1]=>ERROR_NULL_POINTER
 + condition: CFE_SB_MessageStringSet[<null-pointer>@0]=>ERROR_NULL_POINTER
 + condition: CFE_SB_MessageStringSet[<null-pointer>@1]=>ERROR_NULL_POINTER
 + condition: CFE_SB_ReceiveBuffer[any]=>CFE_SB_NO_MESSAGE
 + condition: CFE_SB_ReceiveBuffer[any]=>CFE_SB_PIPE_RD_ERR
 + condition: CFE_SB_Subscribe[any]=>CFE_SB_BUF_ALOC_ERR
 + condition: CFE_SB_Subscribe[any]=>CFE_SB_MAX_DESTS_MET
 + condition: CFE_SB_Subscribe[any]=>CFE_SB_MAX_MSGS_MET
 + condition: CFE_SB_SubscribeEx[any]=>CFE_SB_BUF_ALOC_ERR
 + condition: CFE_SB_SubscribeEx[any]=>CFE_SB_MAX_DESTS_MET
 + condition: CFE_SB_SubscribeEx[any]=>CFE_SB_MAX_MSGS_MET
 + condition: CFE_SB_SubscribeLocal[any]=>CFE_SB_BUF_ALOC_ERR
 + condition: CFE_SB_SubscribeLocal[any]=>CFE_SB_MAX_DESTS_MET
 + condition: CFE_SB_SubscribeLocal[any]=>CFE_SB_MAX_MSGS_MET
 + condition: CFE_SB_TransmitBuffer[any]=>CFE_SB_MSG_TOO_BIG
 + condition: CFE_SB_TransmitMsg[any]=>CFE_SB_BUF_ALOC_ERR
 + condition: CFE_SB_Unsubscribe[any]=>CFE_SB_INTERNAL_ERR
 + condition: CFE_SB_UnsubscribeLocal[any]=>CFE_SB_INTERNAL_ERR

Describe the solution you'd like
Solve each missing case in one of three ways:

  1. Add a test case covering that option
  2. Update the API documentation
  3. Add a @covtest tag if the combination can only be reasonably achieved in a coverage environment

Additional context
Part of/related to #1724 (each subsystem will be handled separately)

Requester Info
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey self-assigned this Aug 13, 2021
jphickey added a commit to jphickey/cFE that referenced this issue Aug 23, 2021
Adds SB functional test cases to cover all missing items that
were identified as part of the scrub in issue nasa#1724.

Where a specific condition is not testable because it requires
a failure of another subsystem, it is marked as `covtest` to
indicate it is only verifiable in coverage test environment.
astrogeco added a commit that referenced this issue Aug 24, 2021
@skliper skliper added this to the 7.0.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants