Andrew Bettison
4564e955e3
Improve HTTP Origin response headers
...
Re-introduce "Origin: null" handling, because actually it is in the
spec.
2015-11-02 11:58:24 +10:30
Andrew Bettison
404cc1476d
Improve HTTP Origin header parsing
...
Parses the separate parts of the URI: scheme, hostname, port.
No longer supports "Origin: null", because that is not in the
spec.
2015-10-01 07:05:17 +09:30
Andrew Bettison
6123503c15
Improve Rhizome HTTP status codes
...
Also improve some reason phrases and test them
2015-09-21 18:43:24 +09:30
Andrew Bettison
7635e6b71b
Add Keyring Java API (incomplete) with tests
...
keyringListIdentities()
keyringSetDidName()
2015-08-31 19:16:30 +09:30
Andrew Bettison
714ea63190
Change JSON response of GET HTTP /restful/keyring/...
...
Return "sid", "did" and "name" fields inside their own "identity"
object
2015-08-31 19:16:30 +09:30
Andrew Bettison
e956749727
Move utility functions from 'rhizomejava' test to testdefs_java.sh
2015-08-31 19:16:30 +09:30
Andrew Bettison
8ba612ffa1
HTTP GET /restful/keyring/set[?pin=PIN][&did=DID][&name=Name]
2015-08-24 22:54:45 +09:30
Andrew Bettison
8834a81575
Refactor HTTP GET /restful/keyring/add
2015-08-24 22:44:24 +09:30
Andrew Bettison
380a72113c
pin= query param for HTTP GET /restful/keyring/identities.json
2015-08-24 22:41:53 +09:30
Andrew Bettison
b7ba297e31
Add TODO comments to randomise keyring slot allocation
2015-08-24 22:41:53 +09:30
Andrew Bettison
73ced0f93a
pin= query param for HTTP GET /restful/keyring/add
2015-08-24 22:41:53 +09:30
Andrew Bettison
586c6b3060
Add HTTP GET /restful/keyring/add
2015-08-10 18:13:57 +09:30
Andrew Bettison
8ac156376d
Fix MeshMS Java API when MeshMS disabled
...
If the MeshMS REST API is disabled, then the JSON response omits the
MeshMS status code, so the Java client API now handles this case.
2015-06-29 15:39:19 +09:30
Jeremy Lakeman
e97f7c4e29
Fix vomp stun tests
...
- Don't trust stun responses about 3rd parties
- Only ack neighbour links via 1hop destinations (not multi-hop routes)
- Don't override network destinations that were manually supplied
2015-06-22 14:50:28 +09:30
Jeremy Lakeman
568f431d91
Share private addresses during stun traversal
2015-06-22 12:15:49 +09:30
Jeremy Lakeman
73c2c9e6fe
Relax unreliable path tests for now
2015-06-22 12:15:49 +09:30
Jeremy Lakeman
e9cdb67b10
MeshMS API should not fail in JSON parsing when rhizome is disabled
2015-06-15 16:13:00 +09:30
Andrew Bettison
6febcc350d
Replace RESTful newsince polling with triggers
...
Remove the 'api.restful.newsince_poll_ms' config option, no longer
needed.
2015-06-02 02:23:06 +09:30
Andrew Bettison
ed1acca0ed
Fix 'rhizomerestful' and 'rhizomejava' newsince-arrival tests
...
Use POST /restfule/rhizome/insert REST request to add bundles instead of
CLI 'rhizome file add', to avoid database locking storm and prepare for
replacing polling with trigger-based wakeup in newsince requests.
2015-06-02 02:23:06 +09:30
Andrew Bettison
858a7fc577
Refactor: define extract_http_header() in testdefs.sh
...
Also http_unquote_string()
2015-06-02 02:23:06 +09:30
Andrew Bettison
45c6b9ecfa
Refactor: set $CR and $HT in testdefs.sh
...
Fix some bugs in test scripts that used $CR without setting it
2015-06-02 02:23:06 +09:30
Andrew Bettison
d5b96b9931
Fix 'meshms' and 'meshmsjava' newsince-arrival tests
...
Failed because of a database locking storm between the three waiting
newsince REST requests (which polled the database) and the concurrent
'meshms send' CLI commands. Changed to use REST requests instead of CLI
for 'meshms send'.
2015-05-25 16:46:43 +09:30
Jeremy Lakeman
51ed6162dd
Add support for running and stopping servald from a JVM thread
...
fdpoll will now run a callback when about to sleep / woke up.
A new Java interface to indicate server started / sleeping / waking up.
An android implementation may allow the CPU to sleep.
If there's a java exception the server will try to shutdown.
Calling servald stop is currently undefined.
2015-05-25 11:46:37 +09:30
Andrew Bettison
106f5d04d9
Fix 'msp' test failures: different netcat versions
...
The "traditional" variant of nc(1) ("netcat") (installed by default on
Debian and Ubuntu) behaves differently from the OpenBSD variant, causing
two 'msp' tests to fail. Added -q options to nc(1) invocations to make
tests pass with either variant.
2015-05-18 17:20:01 +09:30
Jeremy Lakeman
d5e0835f21
Add explicit timeout parameter to mdp trace for slow links
2015-05-11 15:47:35 +09:30
Andrew Bettison
30f4a398ea
Merge RESTful Rhizome journal append into development
...
Support for appending to Rhizome journals using the RESTful API
2015-04-13 16:59:06 +09:30
Andrew Bettison
979854ae0b
Test that Rhizome RESTful append rejects non-journals
2015-04-13 16:24:05 +09:30
Andrew Bettison
0f8141af95
Test RESTful Rhizome journal append with shared payload
...
When an append produces a payload that is already in the store,
the append must succeed, and the returned status codes should
indicate that the payload already existed
2015-04-13 16:24:05 +09:30
Andrew Bettison
53e4e5be5f
Improve 'rhizomerestful' journal append test case
...
Add asserts for the returned status codes
2015-04-13 14:43:52 +09:30
Andrew Bettison
7734e24006
/restful/rhizome/append on existing journal
...
Refactor Rhizome insert/append logic into functions used by both CLI and
RESTful API. Improve RESTful diagnostic messages.
2015-03-30 18:24:12 +10:30
Andrew Bettison
214dad421b
Rename 'rhizomerestful' journal test cases
2015-03-30 18:21:31 +10:30
Jeremy Lakeman
fea91f3f82
Use configured reachable timeout for network links, read dummy files even when not ticking
2015-03-30 17:38:40 +10:30
Jeremy Lakeman
943bca3bea
Add transmit timeout config per network destination for low bandwidth links
2015-03-30 14:15:08 +10:30
Andrew Bettison
da22816784
Add 'rhizome add file --bundle=BID' option
...
A convenience to re-use an existing manifest, instead of having
to extract the manifest, erase some fields, then pass the result
back into the 'rhizome add file' command
2015-03-28 05:09:38 +10:30
Andrew Bettison
b17848a438
Improve 'rhizomeops' test fixtures
...
Use extract_stdout_manifestid() instead of extract_stdout_keyvalue()
2015-03-28 05:09:37 +10:30
Andrew Bettison
dbea301ce2
Rhizome test defs support 'tail' field
2015-03-28 05:09:37 +10:30
Andrew Bettison
987ec00183
Improve 'rhizomeops' test speed
...
Only create the identities needed, not five in every test
2015-03-25 00:55:37 +10:30
Andrew Bettison
16355df04b
Fix failing 'rhizomejava' test
...
Handle missing payload-status headers in Java test client
2015-03-23 23:26:09 +10:30
Andrew Bettison
705dbeff09
Fix bug in rhizome_write_open_journal()
...
Was treating PAYLOAD_STATUS_NEW as an error
2015-03-23 17:40:08 +10:30
Andrew Bettison
015b4a0b07
Refactor and improve "journal append"
...
Distinguish between fatal and user-supplied-input errors, return
error descriptive text in a strbuf to allow dynamic content, apply
user-supplied field assgnments/deletions _after_ copying existing
manifest fields, use exit status 4 (invalid manifest) when applying
journal append to a non-journal or vice versa
2015-03-23 17:38:46 +10:30
Jeremy Lakeman
f7dbe06836
Rearrange interface config to support unicast settings
2015-03-23 13:35:22 +10:30
Andrew Bettison
655b94eb3c
Fix failing 'rhizomeops' tests
2015-03-19 03:21:27 +10:30
Andrew Bettison
c9131f43a2
POST /restful/rhizome/append for journals
2015-03-02 18:52:12 +10:30
Andrew Bettison
4b234fbfbd
Fix /restful/rhizome/insert HTTP status code
...
Return 403 "Forbidden" instead of 501 "Not implemented" when
given a journal bundle
2015-03-02 18:49:51 +10:30
Andrew Bettison
d44d18280a
Rhizome test: cannot use "add file" to create a journal
2015-03-02 18:49:51 +10:30
Andrew Bettison
b2919a3a5e
Rhizome test: cannot use "add file" to update a journal
...
Journal bundles can only be modified using "journal append"
2015-03-02 18:49:51 +10:30
Andrew Bettison
e0684567e8
Add Rhizome test case: import journal bundle
...
Also fix a bug thus revealed
2015-03-02 18:49:51 +10:30
Andrew Bettison
e2ef96a57d
Improve some Rhizome test case comments
2015-03-02 18:49:50 +10:30
Jeremy Lakeman
3ae0e95e0b
Treat null strings as empty
2015-03-02 15:44:34 +10:30
Andrew Bettison
e6bdeeb337
Increase timeouts on MeshMS newsince tests
...
So they don't fail during large parallel test runs
2015-02-23 15:57:24 +10:30