Skip to content

Commit d0b7a5c

Browse files
authored
130 Move key_set_1.json out of src to mock-bpa-test (#142)
1 parent f714e0a commit d0b7a5c

5 files changed

Lines changed: 31 additions & 31 deletions

File tree

mock-bpa-test/test_bpa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _start(self, testcase: Optional[_TestCase]):
8787
key_set = testcase.key_set
8888
else:
8989
policy_config = "0x00"
90-
key_set = "src/mock_bpa/key_set_1.json"
90+
key_set = "mock-bpa-test/key_set_1.json"
9191

9292
args = compose_args([
9393
'bsl-mock-bpa',

mock-bpa-test/test_ccsds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def load_ccsds():
178178
expected_output=output if (
179179
output_format == DataFormat.BUNDLEARRAY) else r".*Delete bundle due to failed security operation",
180180
policy_config=finame,
181-
key_set="src/mock_bpa/key_set_1.json",
181+
key_set="mock-bpa-test/key_set_1.json",
182182
is_working=True,
183183
input_data_format=input_format,
184184
expected_output_format=output_format

mock-bpa-test/test_json_policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_json_source_bib_bcb(self):
4646
'3a09c1e63fe23a7f66a59c7303837241e070b02619fc59c5214a22f08cd70795e73e9a')]
4747
],
4848
policy_config='mock-bpa-test/policy_provider_test.json',
49-
key_set="src/mock_bpa/key_set_1.json",
49+
key_set="mock-bpa-test/key_set_1.json",
5050
is_working=True,
5151
input_data_format=DataFormat.BUNDLEARRAY,
5252
expected_output_format=DataFormat.BUNDLEARRAY

mock-bpa-test/test_requirements.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_BSL_02(self):
4949
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
5050
],
5151
policy_config='0x1A6,0x1A7',
52-
key_set="src/mock_bpa/key_set_1.json",
52+
key_set="mock-bpa-test/key_set_1.json",
5353
is_working=True,
5454
input_data_format=DataFormat.BUNDLEARRAY,
5555
expected_output_format=DataFormat.BUNDLEARRAY
@@ -75,7 +75,7 @@ def test_BSL_03(self):
7575
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
7676
],
7777
policy_config='0x04',
78-
key_set="src/mock_bpa/key_set_1.json",
78+
key_set="mock-bpa-test/key_set_1.json",
7979
is_working=True,
8080
input_data_format=DataFormat.BUNDLEARRAY,
8181
expected_output_format=DataFormat.BUNDLEARRAY
@@ -101,7 +101,7 @@ def test_BSL_07(self):
101101
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
102102
],
103103
policy_config='0xA6',
104-
key_set="src/mock_bpa/key_set_1.json",
104+
key_set="mock-bpa-test/key_set_1.json",
105105
is_working=True,
106106
input_data_format=DataFormat.BUNDLEARRAY,
107107
expected_output_format=DataFormat.BUNDLEARRAY
@@ -127,7 +127,7 @@ def test_BSL_12(self):
127127
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
128128
],
129129
policy_config='0x04',
130-
key_set="src/mock_bpa/key_set_1.json",
130+
key_set="mock-bpa-test/key_set_1.json",
131131
is_working=True,
132132
input_data_format=DataFormat.BUNDLEARRAY,
133133
expected_output_format=DataFormat.BUNDLEARRAY
@@ -156,7 +156,7 @@ def test_BSL_13(self):
156156
],
157157
# policy_config = BIB_VERIFIER,
158158
policy_config='0x66',
159-
key_set="src/mock_bpa/key_set_1.json",
159+
key_set="mock-bpa-test/key_set_1.json",
160160
is_working=True,
161161
input_data_format=DataFormat.BUNDLEARRAY,
162162
expected_output_format=DataFormat.BUNDLEARRAY
@@ -198,7 +198,7 @@ def test_BSL_14a(self):
198198
],
199199
#
200200
policy_config='0x2A0',
201-
key_set="src/mock_bpa/key_set_1.json",
201+
key_set="mock-bpa-test/key_set_1.json",
202202
is_working=True,
203203
input_data_format=DataFormat.BUNDLEARRAY,
204204
expected_output_format=DataFormat.BUNDLEARRAY
@@ -225,7 +225,7 @@ def test_BSL_14b(self):
225225
],
226226
#
227227
policy_config='0x04',
228-
key_set="src/mock_bpa/key_set_1.json",
228+
key_set="mock-bpa-test/key_set_1.json",
229229
is_working=True,
230230
input_data_format=DataFormat.BUNDLEARRAY,
231231
expected_output_format=DataFormat.BUNDLEARRAY
@@ -252,7 +252,7 @@ def test_BSL_14c(self):
252252
#
253253
# policy_config = BIB_VERIFIER,
254254
policy_config='0x62',
255-
key_set="src/mock_bpa/key_set_1.json",
255+
key_set="mock-bpa-test/key_set_1.json",
256256
is_working=True,
257257
input_data_format=DataFormat.BUNDLEARRAY,
258258
expected_output_format=DataFormat.BUNDLEARRAY
@@ -275,7 +275,7 @@ def test_BSL_14d(self):
275275
],
276276
#
277277
policy_config='0xA2',
278-
key_set="src/mock_bpa/key_set_1.json",
278+
key_set="mock-bpa-test/key_set_1.json",
279279
is_working=True,
280280
input_data_format=DataFormat.BUNDLEARRAY,
281281
expected_output_format=DataFormat.BUNDLEARRAY
@@ -309,7 +309,7 @@ def test_BSL_17(self):
309309
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
310310
],
311311
policy_config='0x5E',
312-
key_set="src/mock_bpa/key_set_1.json",
312+
key_set="mock-bpa-test/key_set_1.json",
313313
is_working=True,
314314
input_data_format=DataFormat.BUNDLEARRAY,
315315
expected_output_format=DataFormat.BUNDLEARRAY
@@ -333,7 +333,7 @@ def test_BSL_19(self):
333333
# No output because it was deleted, logs to indicate deletion.
334334
expected_output=r".*Delete bundle due to failed security operation",
335335
policy_config='0x62',
336-
key_set="src/mock_bpa/key_set_1.json",
336+
key_set="mock-bpa-test/key_set_1.json",
337337
is_working=True,
338338
input_data_format=DataFormat.BUNDLEARRAY,
339339
expected_output_format=DataFormat.NONE
@@ -366,7 +366,7 @@ def test_BSL_23(self):
366366
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
367367
],
368368
policy_config='0x1A6,0x1A7',
369-
key_set="src/mock_bpa/key_set_1.json",
369+
key_set="mock-bpa-test/key_set_1.json",
370370
is_working=True,
371371
input_data_format=DataFormat.BUNDLEARRAY,
372372
expected_output_format=DataFormat.BUNDLEARRAY
@@ -394,7 +394,7 @@ def test_BSL_24(self):
394394
],
395395
#
396396
policy_config='0x04',
397-
key_set="src/mock_bpa/key_set_1.json",
397+
key_set="mock-bpa-test/key_set_1.json",
398398
is_working=True,
399399
input_data_format=DataFormat.BUNDLEARRAY,
400400
expected_output_format=DataFormat.BUNDLEARRAY
@@ -421,7 +421,7 @@ def test_BSL_26(self):
421421
],
422422
#
423423
policy_config='0x04',
424-
key_set="src/mock_bpa/key_set_1.json",
424+
key_set="mock-bpa-test/key_set_1.json",
425425
is_working=True,
426426
input_data_format=DataFormat.BUNDLEARRAY,
427427
expected_output_format=DataFormat.BUNDLEARRAY
@@ -451,7 +451,7 @@ def test_BSL_27a(self):
451451
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')],
452452
],
453453
policy_config='0x04',
454-
key_set="src/mock_bpa/key_set_1.json",
454+
key_set="mock-bpa-test/key_set_1.json",
455455
is_working=True,
456456
input_data_format=DataFormat.BUNDLEARRAY,
457457
expected_output_format=DataFormat.BUNDLEARRAY
@@ -472,7 +472,7 @@ def test_BSL_27b(self):
472472
'3a09c1e63fe23a7f66a59c7303837241e070b02619fc59c5214a22f08cd70795e73e9a')]
473473
],
474474
policy_config='0x105',
475-
key_set="src/mock_bpa/key_set_1.json",
475+
key_set="mock-bpa-test/key_set_1.json",
476476
is_working=True,
477477
input_data_format=DataFormat.BUNDLEARRAY,
478478
expected_output_format=DataFormat.BUNDLEARRAY
@@ -499,7 +499,7 @@ def test_BSL_28(self):
499499
'3a09c1e63fe23a7f66a59c7303837241e070b02619fc59c5214a22f08cd70795e73e9a')]
500500
],
501501
policy_config='0x105',
502-
key_set="src/mock_bpa/key_set_1.json",
502+
key_set="mock-bpa-test/key_set_1.json",
503503
is_working=True,
504504
input_data_format=DataFormat.BUNDLEARRAY,
505505
expected_output_format=DataFormat.BUNDLEARRAY
@@ -526,7 +526,7 @@ def test_BSL_29(self):
526526
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')],
527527
],
528528
policy_config='0x04',
529-
key_set="src/mock_bpa/key_set_1.json",
529+
key_set="mock-bpa-test/key_set_1.json",
530530
is_working=True,
531531
input_data_format=DataFormat.BUNDLEARRAY,
532532
expected_output_format=DataFormat.BUNDLEARRAY
@@ -547,7 +547,7 @@ def test_BSL_33(self):
547547
expected_output=r".*failed to decode bundle",
548548
# Execute as a BIB acceptor.
549549
policy_config='0x86',
550-
key_set="src/mock_bpa/key_set_1.json",
550+
key_set="mock-bpa-test/key_set_1.json",
551551
is_working=True,
552552
input_data_format=DataFormat.HEX,
553553
expected_output_format=DataFormat.ERR
@@ -571,7 +571,7 @@ def test_BSL_37(self):
571571
# Ensure that the host interface returns an error code (since the block does not exist). Confirm that a log indicating this error is created.
572572
expected_output=r".*Deleting bundle due to block target num 99 security failure",
573573
policy_config='0x66',
574-
key_set="src/mock_bpa/key_set_1.json",
574+
key_set="mock-bpa-test/key_set_1.json",
575575
is_working=True,
576576
input_data_format=DataFormat.BUNDLEARRAY,
577577
expected_output_format=DataFormat.ERR
@@ -599,7 +599,7 @@ def test_BSL_38(self):
599599
# confirm that no further security operation processing was taken (specifically, no BIB operations should be seen).
600600
expected_output=r".*Failed to perform cryptographic action",
601601
policy_config='0x1A6,0x1A7',
602-
key_set="src/mock_bpa/key_set_1.json",
602+
key_set="mock-bpa-test/key_set_1.json",
603603
is_working=True,
604604
input_data_format=DataFormat.BUNDLEARRAY,
605605
expected_output_format=DataFormat.ERR
@@ -624,7 +624,7 @@ def test_BSL_43a(self):
624624
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
625625
],
626626
policy_config='0x0A',
627-
key_set="src/mock_bpa/key_set_1.json",
627+
key_set="mock-bpa-test/key_set_1.json",
628628
is_working=True,
629629
input_data_format=DataFormat.BUNDLEARRAY,
630630
expected_output_format=DataFormat.BUNDLEARRAY
@@ -648,7 +648,7 @@ def test_BSL_43b(self):
648648
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
649649
],
650650
policy_config='0x0A',
651-
key_set="src/mock_bpa/key_set_1.json",
651+
key_set="mock-bpa-test/key_set_1.json",
652652
is_working=True,
653653
input_data_format=DataFormat.BUNDLEARRAY,
654654
expected_output_format=DataFormat.BUNDLEARRAY
@@ -677,7 +677,7 @@ def test_BSL_44(self):
677677
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')],
678678
],
679679
policy_config='0x46',
680-
key_set="src/mock_bpa/key_set_1.json",
680+
key_set="mock-bpa-test/key_set_1.json",
681681
is_working=True,
682682
input_data_format=DataFormat.BUNDLEARRAY,
683683
expected_output_format=DataFormat.BUNDLEARRAY
@@ -708,7 +708,7 @@ def test_BSL_45(self):
708708
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
709709
],
710710
policy_config='0x46',
711-
key_set="src/mock_bpa/key_set_1.json",
711+
key_set="mock-bpa-test/key_set_1.json",
712712
is_working=True,
713713
input_data_format=DataFormat.BUNDLEARRAY,
714714
expected_output_format=DataFormat.BUNDLEARRAY
@@ -734,7 +734,7 @@ def test_BSL_47(self):
734734
'526561647920746F2067656E657261746520612033322D62797465207061796C6F6164')]
735735
],
736736
policy_config='0x04',
737-
key_set="src/mock_bpa/key_set_1.json",
737+
key_set="mock-bpa-test/key_set_1.json",
738738
is_working=True,
739739
input_data_format=DataFormat.BUNDLEARRAY,
740740
expected_output_format=DataFormat.BUNDLEARRAY
@@ -761,7 +761,7 @@ def test_BSL_48(self):
761761
],
762762
#
763763
policy_config='0x96',
764-
key_set="src/mock_bpa/key_set_1.json",
764+
key_set="mock-bpa-test/key_set_1.json",
765765
is_working=True,
766766
input_data_format=DataFormat.BUNDLEARRAY,
767767
expected_output_format=DataFormat.BUNDLEARRAY
@@ -789,7 +789,7 @@ def test_BSL_49(self):
789789
],
790790
#
791791
policy_config='0x105',
792-
key_set="src/mock_bpa/key_set_1.json",
792+
key_set="mock-bpa-test/key_set_1.json",
793793
is_working=True,
794794
input_data_format=DataFormat.BUNDLEARRAY,
795795
expected_output_format=DataFormat.BUNDLEARRAY

0 commit comments

Comments
 (0)