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
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
Jeremy Lakeman
032502f80c
keyring create test now does what it says (and fails)
2015-01-17 21:57:59 +10:30
Andrew Bettison
e633c0fa0a
"rhizome add file" manifest field=value varargs
...
Now a new manifest can be formed, and an existing manifest modified, by
giving "field=value" or "!field" command-line arguments at the end of
the "rhizome add file" command (after the <bsk> argument).
This makes it easier to script rhizome operations.
2014-11-19 13:26:50 +10:30
Andrew Bettison
ff339011b4
Refactor Rhizome manifest parsing
...
Now the parsing code uses the set/del functions for all supported
manifest fields, so no duplicate logic any more
2014-11-19 10:49:13 +10:30
Andrew Bettison
2f1843858d
Support unrecognised manifest fields
...
Refactor Rhizome manifest parsing in preparation for command-line
field assignment
2014-11-19 10:47:31 +10:30
Andrew Bettison
081f7ab8c8
Add recent bundle secret improvements to RESTful API
...
The "#passphrase" notation was already supported, and now the RESTful
API can be used to create and update anonymous and authored bundles
using only the bundle secret, just like the CLI.
2014-11-14 17:31:08 +10:30
Andrew Bettison
65d6005cbf
Create authored bundle from bundle secret
...
Improve the logic in rhizome_fill_manifest() to handle the case where
the secret and author are both supplied, by setting the BK field so the
secret can be recovered from the manifest later
2014-11-14 13:11:44 +10:30
Andrew Bettison
e743e4d7f9
Create authorless bundle from bundle secret
...
Until now, the bundle secret was never used to create a new bundle,
only to update a bundle whose secret was known from its creation.
2014-11-14 13:11:44 +10:30
Andrew Bettison
c3fdb12991
Fix assert_stdout_add_file() Rhizome test function
...
Correct 'author' and 'secret' fieldnames to '.author' and
'.secret'
2014-11-14 13:11:43 +10:30
Andrew Bettison
1cbc2a365b
Improve Rhizome AddUpdateSameVersion test
...
If 'rhizome add file' command does not return status 1,
then cat the standard error (log) to the test log
2014-11-14 13:11:43 +10:30
Andrew Bettison
a4be1b0b0c
Fix RESTful MeshMS newsince ACK logic
...
/restful/meshms/newsince/SID1/SID2/newsince/TOKEN/messagelist.json now
always lists an ACK as soon as it is received, instead of waiting for a
message to arrive as well.
2014-11-12 23:09:00 +10:30
Andrew Bettison
3c4703feb4
Reduce DB locking issues in RESTful tests
...
Add environment variable SERVALD_RHIZOME_DB_RETRY_LIMIT to extend the
Rhizome DB retry period, set it to 60 seconds in RESTful tests to
override the default 5 seconds
2014-11-12 23:08:19 +10:30
Jeremy Lakeman
6ab2cc5bb6
Only support one keyring pin per open file
2014-10-31 15:30:07 +10:30
Jeremy Lakeman
851144ea0a
Refactor keyring identity iteration
2014-10-31 15:19:59 +10:30
Tobias Wooldridge
e79e74feb9
Exposes a list of configured identities through the REST API at /keyring/identities.json
2014-10-31 15:19:59 +10:30
Jeremy Lakeman
1848493468
New messages bump the conversation to the top
2014-10-27 11:08:02 +10:30
Jeremy Lakeman
91d3f78f8e
Revert slack ping delivery in routing tests
2014-10-01 15:53:18 +09:30
Jeremy Lakeman
c7e397cadf
Trace network paths that are supposed to exist
2014-09-23 14:54:22 +09:30
Jeremy Lakeman
2ec63b371a
Build the array of console commands by using linkage tricks
2014-08-22 10:36:52 +09:30
Jeremy Lakeman
31cf3a67b5
Allow lcal http servers to perform cross site scripting of restful APIs
2014-07-28 12:54:57 +09:30
Jeremy Lakeman
435ffecfa8
Add message timestamps to restful meshms
2014-07-18 14:11:57 +09:30
Jeremy Lakeman
69ffe6a56c
Fix meshmsjava tests with additional timestamps
2014-07-14 16:21:12 +09:30
Jeremy Lakeman
bc87f8c7c0
Add timestamps to meshms messages and acks
2014-07-14 13:43:37 +09:30
Andrew Bettison
89623015fc
MeshMS Java API: list messages new since token
2014-07-14 06:06:21 +09:30
Andrew Bettison
4c6612a61e
Rhizome Java API: list bundles new since token
2014-07-12 22:49:00 +09:30
Andrew Bettison
2757a08b87
Rhizome Java API: insert inconsistent bundle
2014-07-11 11:15:08 +09:30
Andrew Bettison
8842f32b19
Rhizome Java API: insert journal is not implemented
...
Change the HTTP response code for unimplemented operations from 403 to
501
2014-07-10 22:23:11 +09:30
Andrew Bettison
e35bf77938
Rhizome Java API: insert/update empty bundle
2014-07-10 22:06:46 +09:30
Andrew Bettison
a87133d4d3
Rhizome Java API: insert anonymous bundle
2014-07-10 21:19:15 +09:30
Andrew Bettison
04b2a20e54
Rhizome Java API: improved form-data headers
...
Change manifest Content-Type from rhizome-manifest/text to
rhizome/manifest; format="text+binarysig"
Add "Content-Transfer-Encoding" form-part headers to Java API
sent form parts, although not currently checked by Rhizome
RESTful interface
2014-07-10 21:12:40 +09:30
Andrew Bettison
a81d05b4f6
Rhizome Java API: insert bundle
2014-07-10 06:43:17 +09:30
Andrew Bettison
3715c5bf0b
Rhizome Java API: negative fetch tests
2014-07-10 06:30:50 +09:30
Andrew Bettison
2aec8f31a4
Rhizome Java API: get decrypted payload
2014-07-10 06:30:50 +09:30
Andrew Bettison
d16be8f42d
Improve MeshMS HTTP RESTful interface
...
Provide "meshms_status_message" in returned JSON status content
2014-07-10 06:30:50 +09:30
Andrew Bettison
cf43635789
Improve Rhizome HTTP RESTful interface
...
Add RHIZOME_BUNDLE_STATUS_READONLY enum value
Tighten up switch statements on bundle and payload status enums (no
default labels)
Rename some recently added enum entries
Return bundle status and payload status in HTTP responses
Add test for failing to decrypt a foreign encrypted bundle payload,
fix bug that caused an assertion failure
Add tests for fetching a non-existent manifest and fetching bundles
whose payload blob is not in the store
2014-07-10 06:29:51 +09:30
Andrew Bettison
34b6ff48bf
Rhizome Java API: get raw payload
...
Added more "Serval-Rhizome-Bundle-xxx" headers to /restful/rhizome/
responses, so that a more complete manifest can be constructed from
them
2014-07-10 06:29:09 +09:30
Andrew Bettison
93e67ede63
Rhizome Java API: get manifest
...
Fixes assertion violation in GET /restful/rhizome/<BID>.rhm when <BID>
not found
2014-07-10 06:29:09 +09:30
Andrew Bettison
db8ee79a4e
Rhizome Java API: list bundles
2014-07-10 06:29:09 +09:30
Andrew Bettison
a9ec5dcf69
Refactor Rhizome test script ready for re-use
...
Move add_bundles() function from 'rhizomerestful' test script into
testdefs_rhizome.sh, rename to rhizome_add_bundles() and add a new
SID argument
2014-06-30 11:11:01 +09:30
Andrew Bettison
067340bbba
Change HTTP Authorization realm to "Serval RESTful API"
...
Was "Serval Rhizome", which is not accurate
2014-06-30 11:11:01 +09:30