Andrew Bettison
53c1b1c04c
Filesystem Heirarchy Standard (FHS) paths
...
If no instance directory specified, then use paths like
/etc/serval/serval.conf
/var/cache/serval
/var/log/serval
/var/run/serval
etc. for files, instead of all in a single directory.
Log all directory creation as INFO messages.
Interpretation of log.file.directory_path has changed slightly.
Updated servald configuration tech doc.
2014-03-26 15:35:43 +10:30
Andrew Bettison
53d5a8734b
Fix Rhizome cleanup to remove temporary payloads
...
Fix test case to properly assert that all stale payloads are
deleted
2014-03-18 16:03:26 +10:30
Andrew Bettison
dc588e964d
Fix "name=/file" bug in Rhizome add
...
Improved Rhizome test scripts and added new assert_manifest_fields()
function to Rhizome test defs
2014-03-12 15:48:00 +10:30
Jeremy Lakeman
a6d6175576
Add config set warning if attempting to drop packets on datagram sockets
2014-03-12 14:55:46 +10:30
Jeremy Lakeman
2e4835d7d6
Ensure tests with packet filtering are using the dummy network interface
2014-03-12 14:32:59 +10:30
Jeremy Lakeman
ee68856878
Reduce log spam from debug.rhizome
2014-03-12 14:32:59 +10:30
Andrew Bettison
0bef066949
Store Rhizome external blob files in "blob" subdirectory
...
This will make issue #50 a bit easier to tackle
2014-03-07 16:55:38 +10:30
Jeremy Lakeman
6b17cd580f
Enable rhizome HTTP transfers over loopback while using local sockets
2014-03-05 09:55:23 -08:00
Andrew Bettison
fd1b36a9da
Refactor new MissingPayload test case
...
Move more code into fixture, add TODO comment
2014-03-03 15:14:34 +10:30
Andrew Bettison
19aed8ecb5
Fix test defs: pop_instance did not restore instance
...
Add push_and_set_instance() function
Remove redundant set_instance calls in test cases
Cope if error() returns (can happen during teardown)
2014-03-03 15:14:34 +10:30
Andrew Bettison
08e02b18db
Improve test framework: tfw_run() function
2014-03-03 15:14:34 +10:30
Jeremy Lakeman
974c87adf2
Remove orphan file rows if we notice the payload is missing
2014-03-01 05:45:32 +10:30
Jeremy Lakeman
1ade36f8df
A missing payload should be re-fetched
2014-02-28 10:00:49 +10:30
Jeremy Lakeman
a6f408f013
Return mdp inet & http port numbers in servald start & status
2014-02-25 12:42:36 +10:30
Jeremy Lakeman
33cbc98300
Add proc files for http server & mdp udp ports
2014-02-24 17:15:28 +10:30
Jeremy Lakeman
dfda3f7a74
Move generic command line API to test package
2014-02-24 17:13:41 +10:30
Jeremy Lakeman
20494a90d5
Add Java MDP Client API
...
- support mdp clients over loopback UDP
Note this is using an environment variable to specify the port number
In future we expect to support environments where this port is already bound
- monitor mdp sockets in a single & separate thread
2014-02-21 16:39:47 +10:30
Jeremy Lakeman
693d1e9b60
Add clearer example java api usage
2014-02-20 15:35:31 +10:30
Jeremy Lakeman
7ed6be3690
Introduce basic vomp console test
2014-02-19 16:39:05 +10:30
Jeremy Lakeman
6f75d93460
Shift echo service to new internal api, ensure local services can respond to local clients
2014-02-19 16:34:47 +10:30
Jeremy Lakeman
487df0408d
Refactor mdp packet processing to avoid using struct overlay_mdp_frame
2014-02-19 16:34:11 +10:30
Jeremy Lakeman
9e704e5b01
Capture servald log from test completion
2014-02-19 16:03:57 +10:30
Jeremy Lakeman
46ef40cf23
Migrate and refactor more interfaces from batphone
2014-02-19 15:35:08 +10:30
Andrew Bettison
4062b3adbf
Fix typos in 'keyring' test suite
2014-02-17 17:13:58 +10:30
Jeremy Lakeman
348fc5f23b
Fix meshms conversations parsing when looking for a single SID
2014-02-12 15:08:24 +10:30
Jeremy Lakeman
99fb8b6108
Move jni interface classes from batphone repo
2014-02-12 13:09:17 +10:30
Andrew Bettison
0769fa54e8
Improve MeshMS RESTful HTTP failure reporting
...
Add "meshms_status_code" element to simple JSON responses
2014-02-07 16:28:40 +10:30
Andrew Bettison
5dd9ea7a6b
Improve MeshMS failure handling
...
Introduce "enum meshms_status" to replace int -1,0,1 for return values
from MeshMS internal functions
Add test cases to check that status 2 is returned when attempting to
send a message from an identity that is not known (unlocked)
2014-02-06 18:10:00 +10:30
Andrew Bettison
fd86a3d17f
Implement HTTP POST /restful/meshms/<SID>/<SID>/sendmessage
...
Rename struct meshms_ply fields from "buffer" to "record" for
consistency with comment terminology
2014-02-05 14:28:15 +10:30
Andrew Bettison
015ed0b181
Refactor to rename "Rhizome HTTP server" to "HTTPD server"
...
Move HTTPD start/stop/dispatch logic from rhizome_httpd.c into new
httpd.c
Rename config.debug.httpd -> config.debug.http_server
Rename config.debug.rhizome_httpd -> config.debug.httpd
Rename config.debug.rhizome_nohttptx -> config.debug.nohttptx
2014-02-03 15:56:07 +10:30
Andrew Bettison
f4249707a4
Implement HTTP GET /restful/meshms/<SID>/<SID>/newsince/<token>/messagelist.json
...
Two new test cases
2014-01-31 14:58:30 +10:30
Andrew Bettison
ebe444ffe3
Refactor rhizomehttp MeshMS message list test
...
New function add_messages() to use in fixture
Improve existing test case by adding more ACKs and messages
2014-01-31 14:30:01 +10:30
Andrew Bettison
c73bc49cf0
Improve MeshMS RESTful HTTP requests
...
Include local (my) and remote (their) SIDs in JSON responses for
conversationlist.json and messagelist.json, so that the same JSON
structures can be used in future for non-SID-specific queries.
Refactor MeshMS message iterator, rename "sender" and "recipient" fields
to "my" and "their", for consistency with the rest of the MeshMS source
code, and because "sender" and "recipient" are properties that apply to
a single message or single ply, not to a message thread (conversation).
2014-01-31 14:29:57 +10:30
Andrew Bettison
7b5752a111
Implement HTTP GET /restful/meshms/<SID>/<SID>/messagelist.json
2014-01-28 15:09:51 +10:30
Andrew Bettison
8897563d09
Implement HTTP GET /restful/meshms/<SID>/conversationlist.json
2014-01-23 10:52:43 +10:30
Andrew Bettison
6a1c8bcf5a
All HTTP RESTful responses are JSON, not HTTP
...
Even error responses (typically code 403)
2014-01-20 15:44:21 +10:30
Jeremy Lakeman
68421db114
Add msp debug flag
2014-01-09 15:06:35 +10:30
Jeremy Lakeman
48dce9a575
Add tcp forwarding on the listen end of an MSP connection
2014-01-09 15:06:35 +10:30
Jeremy Lakeman
99e08d1516
Add command to support forwarding TCP connections to an MSP service
2014-01-09 15:06:35 +10:30
Jeremy Lakeman
e09387b27d
Refactor stdio handling
2014-01-09 15:06:34 +10:30
Jeremy Lakeman
6d942f8d4f
Improve tests
2014-01-09 15:01:38 +10:30
Jeremy Lakeman
4bb3336b33
Generalise method for defining multiple interfaces
2014-01-09 15:01:38 +10:30
Jeremy Lakeman
506518ad06
Allow interfaces to use local unix addresses
...
- broadcast packets are sent to all sockets in the same folder
- switched most tests to use local sockets
2014-01-09 15:01:38 +10:30
Jeremy Lakeman
df6af96455
Test connection keep alive and timeouts
2014-01-09 15:01:37 +10:30
Jeremy Lakeman
741442c54c
Pipe file contents across msp connection
2014-01-09 15:01:37 +10:30
Jeremy Lakeman
3a533187b7
Improve msp failure handling
2014-01-09 15:01:37 +10:30
Jeremy Lakeman
db7f68afd7
Initial msp library implementation with connection state tracking
2014-01-09 15:01:37 +10:30
Andrew Bettison
669080edc8
Add 'rhizomehttp' to 'all' tests
...
Disable unused 'rhizomehttp' tests
2013-12-30 18:10:39 +10:30
Andrew Bettison
ee9c96bb8c
Implement HTTP POST /restful/rhizome/insert
...
Change HTTP request buffer pointers from (const char*) to (char*)
because some Rhizome operations can modify received data in-place, eg,
when decrypting it.
2013-12-30 18:09:56 +10:30
Andrew Bettison
34188fa489
Replace config 'rhizome.external_blobs' with 'rhizome.max_blob_size'
2013-12-30 16:30:43 +10:30