|
BSL v1.0.0 - 4.g1b6a605
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"
Include dependency graph for test_BackendPolicyProvider.c:Functions | |
| void | suiteSetUp (void) |
| int | suiteTearDown (int failures) |
| 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. | |
| void | test_MultiplePolicyProviders (void) |
| 2 PPs: First has role to source BIB over primary, second has role to source BIB over payloads Assert actions have correct pp_ids | |
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.