Commit Graph

53 Commits (d18fa76fc277c3430f33eb7abe2cc0eaa1073688)

Author SHA1 Message Date
Bogdan Opanchuk e5620c3155 Changes to make the tests pass 2022-01-08 15:29:22 -08:00
Bogdan Opanchuk 02bb2e2f76 Import the standalone package instead of nucypher.core 2022-01-08 15:29:22 -08:00
Bogdan Opanchuk e1c0335cdc Sign the whole node metadata instead of just the interface 2021-10-29 15:06:34 -07:00
Kieran Prasch 9d996ab965 Remove 'arrangement' language and naming (leaves onchain models). 2021-10-29 07:56:20 -07:00
Kieran Prasch a37e741fc8 Removes integration tests for treasure map storage. 2021-10-29 07:56:20 -07:00
Kieran Prasch 3b3ca65f9f Removes 'handpicked ursula' language. 2021-10-29 07:56:20 -07:00
Kieran Prasch cf667f6522 Refactor Policy without Arrangements. 2021-10-29 07:56:20 -07:00
Bogdan Opanchuk e5e598952a Extract NodeMetadata into the core 2021-10-15 15:19:19 -07:00
Bogdan Opanchuk 256c93db58 Move [Encrypted]TreasureMap to core.py 2021-10-15 15:19:19 -07:00
Bogdan Opanchuk f847f9982c Move HRAC to core.py 2021-10-15 15:19:19 -07:00
Kieran Prasch ba6a49e13c Implements enforced major.minor versioning scheme for serializable entities. 2021-09-24 15:29:20 -07:00
Kieran Prasch f311d4efd3 Implement versioning for Arrangement. 2021-09-23 16:01:25 -07:00
Bogdan Opanchuk 1a10ddf7e7 Remove `EncryptedTreasureMap` datastore model 2021-09-08 08:55:49 -07:00
Kieran R. Prasch 024bcb1c5f Finish deprecation of map storage from tests. 2021-08-20 16:58:58 -07:00
Bogdan Opanchuk 6164137610 Rename m -> threshold, num_kfrags -> shares 2021-08-20 19:26:56 -04:00
Bogdan Opanchuk ad2ad8e3c0 Make HRAC a class and use it as a policy ID 2021-08-19 17:06:45 -04:00
Bogdan Opanchuk 509b8c1bfc Split treasure maps into decrypted and encrypted 2021-08-19 17:06:45 -04:00
Bogdan Opanchuk 5b5cd4bd84 Use HRAC as treasure map ID at all times instead of just in the blockchain case 2021-08-19 17:06:45 -04:00
Bogdan Opanchuk 2be3d727d5 Rename TreasureMap field and datastore model to EncryptedTreasureMap 2021-08-19 17:06:45 -04:00
Bogdan Opanchuk e5c0bb079e Fix the remainders of Alice/Publisher separation 2021-08-12 16:32:02 -07:00
Piotr Roslaniec a8975ff41d Fix tests 2021-08-06 18:10:22 +02:00
Piotr Roslaniec 662bc34439 Use Path methods instead of os module 2021-08-06 18:10:22 +02:00
Kieran Prasch e13fae0526 Combating freefriders and evil Bobs with a KFrag writ authorization. 2021-07-03 18:46:36 -07:00
Kieran R. Prasch 6aef077172 bulk renaming of Keyring -> Keystore 2021-06-28 14:33:31 -07:00
Kieran Prasch 1ba789ca20 Mature all known nodes in node storage test assertions. 2021-04-14 08:09:50 -07:00
Bogdan Opanchuk 4de9b91d2a Refactor FleetSensor 2021-02-16 22:45:55 -08:00
Bogdan Opanchuk a2b99daa1d Merge proposals and enactment into a single method, return EnactedPolicy 2021-01-14 11:19:35 -08:00
Bogdan Opanchuk de0f933118 Make Arrangement stateless and get rid of BlockchainArrangement 2021-01-14 11:19:35 -08:00
Bogdan Opanchuk 60c0f4412f Turn `construct_hrac_and_map_id()` into `construct_map_id()` (hrac is not used anywhere) 2020-12-15 13:36:20 -08:00
jMyles c4786f551a No longer are there 'serving' domains and 'learning' domains. Everybody just has a domain. 2020-11-03 18:13:15 -07:00
tuxxy 38d0fccefd Truncate hracs to 16 bytes 2020-10-13 10:01:37 +02:00
tuxxy 86c2744dae Add test_bob_retrieves_treasure_map_from_decentralized_node 2020-10-13 10:01:37 +02:00
tuxxy 828a630c0e Remove treasure_map_id param from receive_treasure_map API endpoint
Fix up logic and add tests. Additionally, skip test_mass_treasure_map_placement
2020-10-13 10:01:37 +02:00
tuxxy 4b128d871e The NodeEngagementMutex should expect a 201 not a 202. 2020-10-13 10:01:37 +02:00
tuxxy f87e088dec Implement TreasureMap storage in the Datastore 2020-10-13 10:01:37 +02:00
tuxxy 46e1fdd4c1 Create a TreasureMap datastore record and move model tests to test_datastore_models
Move test_datastore_models to unit tests
2020-10-13 10:01:37 +02:00
David Núñez 4cf7dcadc3 We're done with multiple domains, for the moment.
Closes #2144. Closes #1580.
2020-09-24 20:27:13 +02:00
Bogdan Opanchuk 7be50030aa Remove the reduced LMDB size fixture
It is not the cause of the bug, and it doesn't really test anything.
2020-09-22 16:55:37 -07:00
jMyles 8dead4d333 In the fixture we trust. 2020-09-05 18:13:01 -07:00
jMyles 24bc71be6e Give Bob a chance to hit seednodes before bailing. 2020-08-27 13:16:36 -07:00
jMyles 2a76f5fe2a Making sure tests block in the right places. 2020-08-18 05:10:44 -07:00
Kieran Prasch e594ff5e8c Test fixes: another manual tpower activation and attempt to fix tmap reference. 2020-08-18 05:10:43 -07:00
Kieran Prasch 73d1022c94 bifurcate 'network actors' tests. 2020-08-18 05:10:43 -07:00
jMyles d6d9fb4b62 This test needs to look for the checksum_address specifically, since this will be a stranger node or sprout now. 2020-08-10 12:51:49 -07:00
jMyles ea092fd4d3 Using lonely_ursula_maker in all the right places. 2020-08-10 12:51:49 -07:00
jMyles cc7e96f671 This entire test (and part of another) is no longer relevant, as Alice and Bob will learn about seednodes form their hardcoded domain list in such a scenario. 2020-08-10 12:51:11 -07:00
jMyles 1101dd3bde The first node in the fixture might not always be among the matching nodes. 2020-08-10 12:49:26 -07:00
jMyles 76649704ae Clarifying failure message; this makes it easier to understand why this test occasionally fails. 2020-08-10 12:49:26 -07:00
jMyles b199830947 This will be the basis of a merge commit in the rebase of these tests. One of them reactivates Vladimir; the other fixes the method for testing the presence of Treasure Maps. 2020-08-10 12:49:25 -07:00
jMyles babcd9174e No need to reset checksum_address in Worker - let's try to set it in as few places as possible. #1547. 2020-08-10 12:49:23 -07:00