Trolli Schmittlauch
60c164dbb0
remove unnecessary directory level
2020-05-19 00:01:32 +02:00
Trolli Schmittlauch
fdd4efe269
fixed tests
2020-05-17 21:31:44 +02:00
Trolli Schmittlauch
a30a221477
more test fixes
2020-05-17 21:31:44 +02:00
Trolli Schmittlauch
895606d542
make tests compile again (do not pass yet)
2020-05-17 21:31:44 +02:00
Trolli Schmittlauch
c304e2103f
allow messages without payload for ACKing
2020-05-17 21:31:44 +02:00
Trolli Schmittlauch
2b234d65db
prepare sending of queryID messages
2020-05-17 21:31:44 +02:00
Trolli Schmittlauch
6ed441403d
basic test for whether message splitting works
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
ca383420a6
fix off-by-one error in message splitting
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
0d91452641
add tests for serialising and deserialising messages
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
666a9602ba
adjust tests to usage of RemoteCacheEntry
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
e4d350b8fb
add tests for ASN.1 message encoding and decoding
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
1d8d9a33fd
implement ASN.1 parsing with parser combinators
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
1968b5f883
functions for encoding protocol messages as ASN.1
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
db229975b0
extract internal node parameters to own arithmetic type
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
449fcb93bb
safe responsibility recognisation, tests for responsibility lookup
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
bba14f6be3
add tests for entry deletion from cache
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
c1f8ec2c56
write tests for (local) cache lookup on queries
...
#2
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
90daa1ba9a
NodeCache: write tests for lookup ( #2 )
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
18bdcce266
re-implement NodeCache data structure to emulate ring properly
...
- previously, there was at least 1 gap in the identifier ring
- now use normal integer comparison again, but forward lookups using
proxy entries at the ID space boundaries
- wrap cache operations to properly handle proxy elements
- fix all previously working tests
- document choice of cache data structure
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
aed80263a7
NodeCache: add entries
...
+ tests
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
ea6ebe590d
adjust tests to new NodeState
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
88897ea741
generation of key IDs
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
8ece8646d4
fix some more warnings
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
b234c7ac4e
more tests #2
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
9d20589cf8
fix some warnings
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
3c981fbf86
implement NodeID generation + tests
...
contributes to #1 #2
2020-05-17 21:31:43 +02:00
Trolli Schmittlauch
523c33482c
tests for NodeID ordering and NodeState creation #2
2020-05-17 21:31:43 +02:00