diff --git a/src/mock_bpa/key_set_1.json b/mock-bpa-test/key_set_1.json similarity index 100% rename from src/mock_bpa/key_set_1.json rename to mock-bpa-test/key_set_1.json diff --git a/mock-bpa-test/test_bpa.py b/mock-bpa-test/test_bpa.py index f01b2050..bca64aa1 100644 --- a/mock-bpa-test/test_bpa.py +++ b/mock-bpa-test/test_bpa.py @@ -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', diff --git a/mock-bpa-test/test_ccsds.py b/mock-bpa-test/test_ccsds.py index a1d6ec08..c02d9752 100644 --- a/mock-bpa-test/test_ccsds.py +++ b/mock-bpa-test/test_ccsds.py @@ -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 diff --git a/mock-bpa-test/test_json_policy.py b/mock-bpa-test/test_json_policy.py index 889e1b4d..1a45f33c 100644 --- a/mock-bpa-test/test_json_policy.py +++ b/mock-bpa-test/test_json_policy.py @@ -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 diff --git a/mock-bpa-test/test_requirements.py b/mock-bpa-test/test_requirements.py index 25570eb9..3d310e1b 100644 --- a/mock-bpa-test/test_requirements.py +++ b/mock-bpa-test/test_requirements.py @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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