Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 1 addition & 1 deletion mock-bpa-test/test_bpa.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _start(self, testcase: Optional[_TestCase]):
key_set = testcase.key_set
else:
policy_config = "0x00"
key_set = "src/mock_bpa/key_set_1.json"
key_set = "mock-bpa-test/key_set_1.json"

args = compose_args([
'bsl-mock-bpa',
Expand Down
2 changes: 1 addition & 1 deletion mock-bpa-test/test_ccsds.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def load_ccsds():
expected_output=output if (
output_format == DataFormat.BUNDLEARRAY) else r".*Delete bundle due to failed security operation",
policy_config=finame,
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=input_format,
expected_output_format=output_format
Expand Down
2 changes: 1 addition & 1 deletion mock-bpa-test/test_json_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_json_source_bib_bcb(self):
'3a09c1e63fe23a7f66a59c7303837241e070b02619fc59c5214a22f08cd70795e73e9a')]
],
policy_config='mock-bpa-test/policy_provider_test.json',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down
56 changes: 28 additions & 28 deletions mock-bpa-test/test_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_BSL_02(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0x1A6,0x1A7',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -75,7 +75,7 @@ def test_BSL_03(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0x04',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -101,7 +101,7 @@ def test_BSL_07(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0xA6',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -127,7 +127,7 @@ def test_BSL_12(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0x04',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down Expand Up @@ -156,7 +156,7 @@ def test_BSL_13(self):
],
# policy_config = BIB_VERIFIER,
policy_config='0x66',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down Expand Up @@ -198,7 +198,7 @@ def test_BSL_14a(self):
],
#
policy_config='0x2A0',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -225,7 +225,7 @@ def test_BSL_14b(self):
],
#
policy_config='0x04',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -252,7 +252,7 @@ def test_BSL_14c(self):
#
# policy_config = BIB_VERIFIER,
policy_config='0x62',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -275,7 +275,7 @@ def test_BSL_14d(self):
],
#
policy_config='0xA2',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down Expand Up @@ -309,7 +309,7 @@ def test_BSL_17(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0x5E',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -333,7 +333,7 @@ def test_BSL_19(self):
# No output because it was deleted, logs to indicate deletion.
expected_output=r".*Delete bundle due to failed security operation",
policy_config='0x62',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.NONE
Expand Down Expand Up @@ -366,7 +366,7 @@ def test_BSL_23(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0x1A6,0x1A7',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down Expand Up @@ -394,7 +394,7 @@ def test_BSL_24(self):
],
#
policy_config='0x04',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -421,7 +421,7 @@ def test_BSL_26(self):
],
#
policy_config='0x04',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down Expand Up @@ -451,7 +451,7 @@ def test_BSL_27a(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')],
],
policy_config='0x04',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -472,7 +472,7 @@ def test_BSL_27b(self):
'3a09c1e63fe23a7f66a59c7303837241e070b02619fc59c5214a22f08cd70795e73e9a')]
],
policy_config='0x105',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -499,7 +499,7 @@ def test_BSL_28(self):
'3a09c1e63fe23a7f66a59c7303837241e070b02619fc59c5214a22f08cd70795e73e9a')]
],
policy_config='0x105',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -526,7 +526,7 @@ def test_BSL_29(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')],
],
policy_config='0x04',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -547,7 +547,7 @@ def test_BSL_33(self):
expected_output=r".*failed to decode bundle",
# Execute as a BIB acceptor.
policy_config='0x86',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.HEX,
expected_output_format=DataFormat.ERR
Expand All @@ -571,7 +571,7 @@ def test_BSL_37(self):
# Ensure that the host interface returns an error code (since the block does not exist). Confirm that a log indicating this error is created.
expected_output=r".*Deleting bundle due to block target num 99 security failure",
policy_config='0x66',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.ERR
Expand Down Expand Up @@ -599,7 +599,7 @@ def test_BSL_38(self):
# confirm that no further security operation processing was taken (specifically, no BIB operations should be seen).
expected_output=r".*Failed to perform cryptographic action",
policy_config='0x1A6,0x1A7',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.ERR
Expand All @@ -624,7 +624,7 @@ def test_BSL_43a(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0x0A',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -648,7 +648,7 @@ def test_BSL_43b(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0x0A',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down Expand Up @@ -677,7 +677,7 @@ def test_BSL_44(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')],
],
policy_config='0x46',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down Expand Up @@ -708,7 +708,7 @@ def test_BSL_45(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0x46',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -734,7 +734,7 @@ def test_BSL_47(self):
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
],
policy_config='0x04',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand All @@ -761,7 +761,7 @@ def test_BSL_48(self):
],
#
policy_config='0x96',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down Expand Up @@ -789,7 +789,7 @@ def test_BSL_49(self):
],
#
policy_config='0x105',
key_set="src/mock_bpa/key_set_1.json",
key_set="mock-bpa-test/key_set_1.json",
is_working=True,
input_data_format=DataFormat.BUNDLEARRAY,
expected_output_format=DataFormat.BUNDLEARRAY
Expand Down
Loading