BSL v0.0.0 - 0.geda3e66
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>
Functions | |
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. | |
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.