Skip to content

Comprehensive Tests of Public Interface#15

Merged
jeronstone merged 35 commits into
mainfrom
more_unit_tests
Aug 14, 2025
Merged

Comprehensive Tests of Public Interface#15
jeronstone merged 35 commits into
mainfrom
more_unit_tests

Conversation

@jeronstone
Copy link
Copy Markdown
Contributor

@jeronstone jeronstone commented Jul 28, 2025

Adds policy rules to test for sourcing, verification, and accepting of BIB and BCB blocks. Also tests for handling failure; policy actions drop block, drop bundle, do nothing.

The tests are roughly the following matrix:
role: [Source*, verify, accept],
on fail: [drop bundle, drop block, do nothing],
sec ctx: [BIB, BCB]

*on fail not tested with source

Passing 19/22.

2 issues pending issue 13.
1 issue in following case:
VERIFY bundle with OP(bib, payload), OP(bcb, payload). Attempts to match HMAC for bib despite BTSD being encrypted.

Also adds manual BSL_6, BSL_32

@jeronstone jeronstone requested a review from a team as a code owner July 28, 2025 17:02
@jeronstone jeronstone self-assigned this Jul 28, 2025
@jeronstone jeronstone added the enhancement New feature or request label Jul 28, 2025
@jeronstone jeronstone added this to BSL Jul 28, 2025
@github-project-automation github-project-automation Bot moved this to Todo in BSL Jul 28, 2025
@jeronstone jeronstone added this to the BSL v1.0.0 milestone Jul 28, 2025
@jeronstone jeronstone moved this from Todo to In Progress in BSL Jul 28, 2025
Copy link
Copy Markdown
Collaborator

@BrianSipos BrianSipos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall seems okay; for the portion modifying binary data there may be a more clear way to handle the modifications.

Comment thread test/test_PublicInterfaceImpl.c Outdated
Comment thread test/test_PublicInterfaceImpl.c Outdated
Comment thread test/test_PublicInterfaceImpl.c Outdated
@jeronstone jeronstone requested a review from BrianSipos July 29, 2025 14:48
Comment thread test/test_PublicInterfaceImpl.c
Comment thread test/test_PublicInterfaceImpl.c Outdated
Comment thread test/bsl_test_utils.c Outdated
Comment thread test/test_PublicInterfaceImpl.c Outdated
Comment thread test/CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Comment thread test/CMakeLists.txt
Comment thread test/test_PublicInterfaceImpl.c Outdated
@jeronstone jeronstone changed the title Comprehensive Tests of Public Interface [WIP] Comprehensive Tests of Public Interface Aug 8, 2025
@jeronstone jeronstone changed the title [WIP] Comprehensive Tests of Public Interface Comprehensive Tests of Public Interface Aug 14, 2025
Copy link
Copy Markdown
Collaborator

@BrianSipos BrianSipos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can address my comments any way you like (changes or tickets). The two CI jobs are currently failing because clang more strict requirement for end-of-file newline.

Comment thread test/test_PublicInterfaceImpl.c
Comment thread test/test_PublicInterfaceImpl.c
@jeronstone jeronstone merged commit a3aee2f into main Aug 14, 2025
12 checks passed
@jeronstone jeronstone deleted the more_unit_tests branch August 14, 2025 22:13
@github-project-automation github-project-automation Bot moved this from In Progress to Done in BSL Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants