Commit Graph

5264 Commits (4c983fc045ffcd541d2d117f45e524f610ca87e4)

Author SHA1 Message Date
vzotova 4c983fc045 Update character layer for new start/end policy time 2020-01-10 13:14:00 +03:00
vzotova 513c5a491d Agent tests for start/end policy time 2020-01-10 13:13:20 +03:00
vzotova 24d56a03cc Inter contract test for new start/end policy time 2020-01-10 13:13:19 +03:00
vzotova 8a4f079087 Tests for new policy start/end timestamp 2020-01-10 13:13:19 +03:00
vzotova 706bde0120 Contracts: discrete payment for all policy periods, flexible end timestamp 2020-01-10 13:13:19 +03:00
Justin Holmes 838709e339
Merge pull request #1451 from jMyles/discovery
Increasing performance of discovery, verification, metadata validation, and fleet state operations.
2020-01-10 01:59:15 -08:00
jMyles 757b292f0c Comment responding to @dnunez' question. 2020-01-10 01:17:14 -08:00
jMyles b0d23b309a Don't need this regression test anymore; it doesn't actually show anything terribly interesting about #1554. 2020-01-08 16:43:39 -08:00
jMyles 57bd9007ce Various changes in response to RFCs. 2020-01-08 16:43:39 -08:00
jMyles abf485a2b7 Commenting out __del__ methods of node storage classes pending fox for #1554. 2020-01-08 16:43:39 -08:00
jMyles 99096b01c7 Test showing #1554. 2020-01-08 16:43:39 -08:00
jMyles 2d2b279555 This block is no longer needed. 2020-01-08 16:43:39 -08:00
jMyles 1adb494274 This block actually only happens if we don't know the node class (ie, it's a demo or something). 2020-01-08 16:43:39 -08:00
jMyles a2ec29ab6f Re-locking. 2020-01-08 16:43:39 -08:00
jMyles d6d73612bb This lives in learning tests now. 2020-01-08 16:43:39 -08:00
jMyles c510c3531e For test purposes, we need to mature the sprout to see its cert. 2020-01-08 16:43:39 -08:00
jMyles 923f2377ba These assertions don't work at the moment, though it's not clear how important that is. 2020-01-08 16:43:39 -08:00
jMyles 332d072c40 This needs to be eager now, as we won't verify (and thus get the tested warning) otherwise. 2020-01-08 16:43:39 -08:00
jMyles b1345c24db Mature the node on a different thread, later. If at all. 2020-01-08 16:43:39 -08:00
jMyles d38faeb6a2 New notion of new_nodes: did we remember anything we didn't already know? 2020-01-08 16:43:39 -08:00
jMyles 4d5246f774 OK, now all of the error-to-log handling happens up here. 2020-01-08 16:43:39 -08:00
jMyles 49c3b767b9 Whew! Redline this entire method; it happens just-in-time now. 2020-01-08 16:43:39 -08:00
jMyles e2cf9b3214 This was a bug - it was possible not to be able to get the stranger cert. 2020-01-08 16:43:39 -08:00
jMyles 6b5583854a bytes and stamp for NodeSprout. 2020-01-08 16:43:39 -08:00
jMyles 6f024f459a Docstring for this new conjoined method. 2020-01-08 16:43:39 -08:00
jMyles ea6b1c1fcf Set exempt constant to case to bool False. 2020-01-08 16:43:39 -08:00
jMyles ecff39bbdc Need to just cast ordinarily here; otherwise we miss the subclass method. 2020-01-08 16:43:39 -08:00
jMyles 05ca31b14b We don't necessarily want to mature the sprout this early. 2020-01-08 16:43:39 -08:00
jMyles 39029269cb Now that we're doing JIT verification, we don't need this block. 2020-01-08 16:43:39 -08:00
jMyles 264b18e232 The end of automatic mixed operating mode. Removes and cleans up lots of federated_only kwargs. Closes #410. 2020-01-08 16:43:39 -08:00
jMyles c9e704c9e2 We don't want canonical_public_address to ever cause the checksum address to be set or set again. 2020-01-08 16:43:39 -08:00
jMyles fa154c7182 We might no even have a nickname here. 2020-01-08 16:43:39 -08:00
jMyles 68b57c32c3 NO_BLOCKCHAIN_CONNECTION - see #1547. 2020-01-08 16:43:39 -08:00
jMyles 561109f4d0 Setting node class and operating mode as defaults in this case. See #466. 2020-01-08 16:43:39 -08:00
jMyles bab41dd398 This mock needs to know about the node now. 2020-01-08 16:43:39 -08:00
jMyles 93d1f7f3dc It is no longer the case that Alice will get NotEnoughNodes here; in fact she can't help but learn about (and verify) the nodes she needs at grant time. 2020-01-08 16:43:39 -08:00
jMyles 36386745f5 Bumping reqs for new BSS. 2020-01-08 16:43:39 -08:00
jMyles b49dcf98b3 Some more optimizations to lower test time. 2020-01-08 16:43:39 -08:00
jMyles e949123a08 Need an instantiated node to make a WorkOrder for it. 2020-01-08 16:43:39 -08:00
jMyles b38d130aaa Debuggers try to read the length of this object to represent it; causes extraneous warnings in the console, so let's just implement it here. 2020-01-08 16:43:39 -08:00
jMyles ab04d13ed6 Separating verify and parse logic in middleware so that the latter is easier to mock. 2020-01-08 16:43:39 -08:00
jMyles cafd469aad Passing client instead of middleware per new spec. 2020-01-08 16:43:39 -08:00
jMyles 092d9049db Facility to convert fake key to real one for testing. 2020-01-08 16:43:39 -08:00
jMyles e88d0bcf42 A few updates to performance mocks. Most notably, and strangest, a quick list of all the integers which, when cast to string along with the test string, produce a value in bytes which can't be used as a public key. Seemed like the simplest way to proceed, but I'm open to ideas. 2020-01-08 16:43:39 -08:00
jMyles 32593b432c Flask wants testing set to true in order for this to be treated like a test client. 2020-01-08 16:43:39 -08:00
jMyles 3f372d4053 Comments and new mocks for highperf Alice test. 2020-01-08 16:43:39 -08:00
jMyles 91e757b021 highperf mocked ursula fleet is now variable in size. 2020-01-08 16:43:39 -08:00
jMyles e4207b02fd Use the client in verify_node now. 2020-01-08 16:43:39 -08:00
jMyles 84c1585b85 Allow cert storage function to be composed elsewhere. 2020-01-08 16:43:39 -08:00
jMyles 095ebe77d4 Now we might have instantiated the sprout into a node, or we might not have. 2020-01-08 16:43:39 -08:00