David Núñez
56af2bf27f
Basic unit test for ConditionLingo
2022-10-18 20:09:25 +02:00
David Núñez
7c976751b0
Playing around with malicious input that exploits the use of eval()
...
This test creates an empty file in the filesystem when evaluating a condition. This shouldn't happen! We fix it later in this PR by using the ast module
2022-10-18 20:09:25 +02:00
derekpierre
f972c72470
Code cleanup to condition context variable - follow up RFCs from #2966 .
2022-10-18 20:09:25 +02:00
derekpierre
7e8d9eb7f1
Modify tests to use context instead of python parameters. Add test for use of user customized context variable.
...
Cleanup some test code.
2022-10-18 20:09:25 +02:00
derekpierre
f164cfb3a9
Clenup of tests regarding `context`. Minor fix for using lists for ConditionLingo conditions instead of tuple.
2022-10-18 20:09:25 +02:00
KPrasch
cd11a414bc
Apply suggestions from code review
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2022-10-18 20:09:25 +02:00
Kieran Prasch
b7145c0ab4
Remove core shims; Refactor for mk-embedded conditions.
2022-10-18 20:08:51 +02:00
derekpierre
8a482d9389
Ensure delimiter is used as a single byte, and not a bunch of 0 bytes. Fixed test.
2022-10-18 20:07:58 +02:00
Kieran Prasch
72c6bd5295
Refactoring for interop with nucypher-ts
2022-10-18 20:07:58 +02:00
Kieran Prasch
74a0465cf3
Track lingos and capsules as packets; First working e2e flow.
2022-10-18 20:07:58 +02:00
Kieran Prasch
249c74eb31
Updates tests
2022-10-18 20:07:58 +02:00
Kieran Prasch
2948a198c0
Unit and acceptance tests for condition serialization and evaluation
2022-10-18 20:07:10 +02:00
Kieran Prasch
8d2045a118
conditions expression and evaluation prototype
2022-10-18 20:07:10 +02:00
Kieran Prasch
9e763dad86
expand test vectors
2022-10-18 20:07:10 +02:00
Kieran Prasch
5d4d409b82
Consolidates evm based reencryption conditions to eventually encapsulate payment methods; Reduce scope of conditions to a module
2022-10-18 20:07:10 +02:00
Kieran Prasch
58f4b6e50a
Begin sanitization of return test comparators
2022-10-18 20:06:39 +02:00
Kieran Prasch
34bd940976
Establish unit tests for conditions
2022-10-18 20:06:39 +02:00