|
BSL v1.0.0 - 4.g1b6a605
AMMOS Bundle Protocol Security Library (BSL)
|
Specific low-level tests of the Sample Policy Provider. More...
#include <unity.h>#include <BPSecLib_Private.h>#include <mock_bpa/MockBPA.h>#include "bsl_test_utils.h"#include <policy_provider/SamplePolicyProvider.h>
Include dependency graph for test_SamplePolicyProvider.c:Functions | |
| void | suiteSetUp (void) |
| int | suiteTearDown (int failures) |
| void | setUp (void) |
| void | tearDown (void) |
| void | test_SamplePolicyProvider_WildcardPolicyRuleVerifiesBIB (void) |
| Creates a rule: At location "APPIN", Bundles FROM anywhere, Bundles TO anywhere, must contain a BIB block covering the payload. | |
| TEST_CASE ("0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789") | |
Variables | |
| static BSL_TestContext_t | LocalTestCtx |
Specific low-level tests of the Sample Policy Provider.
Notes:
| void test_SamplePolicyProvider_WildcardPolicyRuleVerifiesBIB | ( | void | ) |
Creates a rule: At location "APPIN", Bundles FROM anywhere, Bundles TO anywhere, must contain a BIB block covering the payload.
Purpose: Exercise the Rule and Predicate primitives to for BIB in a given bundle
Steps:
Notes:
References BSL_BLOCK_TYPE_PAYLOAD, BSL_POLICYACTION_DROP_BUNDLE, BSL_POLICYLOCATION_APPIN, BSL_SECBLOCKTYPE_BIB, BSL_SecOper_Init(), BSL_SecOper_IsBIB(), BSL_SECROLE_VERIFIER, BSLP_PolicyPredicate_Init(), BSLP_PolicyRule_Deinit(), BSLP_PolicyRule_EvaluateAsSecOper(), BSLP_PolicyRule_Init(), and mock_bpa_ctr_t::bundle_ref.