BSL v0.0.0 - 0.geda3e66
AMMOS Bundle Protocol Security Library (BSL)
|
Exercises the Policy Provider front-end interface(*) More...
#include <inttypes.h>
#include <unity.h>
#include <BPSecLib_Private.h>
#include <BPSecLib_Public.h>
#include <mock_bpa/MockBPA.h>
#include <policy_provider/SamplePolicyProvider.h>
#include "bsl_test_utils.h"
Functions | |
void | setUp (void) |
void | tearDown (void) |
void | test_PolicyProvider_InspectEmptyRuleset (void) |
Purpose: Query an empty ruleset produces no responses. | |
void | test_PolicyProvider_InspectSingleBIBRuleset (void) |
Purpose: Match a wildcard predicate to produce an Action to verify BIB (but no parameters). | |
void | test_PolicyProvider_Inspect_RFC9173_BIB (void) |
: Purpose: Match a wildcard rule to verify BIB for all bundles and produce an action with specific parameters. | |
Variables | |
static BSL_TestContext_t | LocalTestCtx |
Exercises the Policy Provider front-end interface(*)
Notes:
void test_PolicyProvider_InspectSingleBIBRuleset | ( | void | ) |
Purpose: Match a wildcard predicate to produce an Action to verify BIB (but no parameters).
Notes:
References BSL_BLOCK_TYPE_PAYLOAD, BSL_POLICYACTION_DROP_BUNDLE, BSL_POLICYLOCATION_APPIN, BSL_PolicyRegistry_InspectActions(), BSL_SECBLOCKTYPE_BIB, BSL_SECROLE_VERIFIER, BSL_SecurityActionSet_CountActions(), BSL_SecurityActionSet_Deinit(), BSL_SecurityActionSet_GetActionAtIndex(), BSLP_PolicyPredicate_Init(), BSLP_PolicyRule_Init(), and mock_bpa_ctr_t::bundle_ref.