Commit Graph

757 Commits

Author SHA1 Message Date
fefe7d2e91 fixed dna query bugs and split wildcard query test into star and
empty string versions.
2012-06-21 16:36:37 +09:30
2a6cdc0389 got wildcard search for self test functioning. 2012-06-21 16:36:37 +09:30
2aa06ea84b added new test for dnaprotocol 2012-06-21 16:36:37 +09:30
0997909053 Fix import bundle test and bug
Add lots of debug to track down cause of rhizome list .selfsigned column bug
2012-06-15 18:10:10 +09:30
8fca6b5c5e Rename "rhizome list" output column headers
_inserttime -> .inserttime
_selfsigned -> .selfsigned
2012-06-13 18:11:14 +09:30
eeb8a22495 Fix rhizome list column count field 2012-06-12 18:13:21 +09:30
50ed301ccc Fix failing tests from addition of rhizome list '_selfsigned' column 2012-06-12 11:48:15 +09:30
7be0d9d00d Pass author SID parameters in binary, not hex 2012-06-08 18:32:14 +09:30
637ef02f30 Add _selfsigned column to "rhizome list" output
Add <pin,pin...> arg1 to "rhizome list" command, so it can open the keyring

Some tests in tests/rhizome fail
2012-06-08 18:25:43 +09:30
7a71a521f8 Pass author SID parameters in binary, not hex 2012-06-08 15:27:15 +09:30
86c7819f97 Remove spurious ERROR messsages
Tests assert that stderr contains no ERROR: lines after a successful exit

Rewrote sqlite_exec_int64() to separate error outcomes from legitimate
result values

Changed several WHY() calls to DEBUG()

Improved test framework
2012-06-08 13:13:26 +09:30
b14db5c28b Improve "rhizome add file" for empty payloads
Accept the empty string for a payload pathname to mean a zero-length
payload.
2012-06-05 15:45:53 +09:30
a9ad1b6afc Add <bsk> optional arg to "rhizome add file"
Improve regular expressions for common data types in test scripts

Revert column count field delimiter in "rhizome list" from ":" to "\n"

Add a few more test cases
2012-06-05 13:58:59 +09:30
c857aea237 Improve rhizome test script
Escape grep metacharacters when matching manifest names
2012-06-05 11:05:56 +09:30
72640e830a First server start/stop test
On the way to multi-instance test scripts
2012-06-04 18:28:38 +09:30
05721d3725 Remove obsolete tests, rename others 2012-06-04 18:28:38 +09:30
782e9dca03 updated to handle new 10-field format of output from servald rhizome lists.
Passes all 23 tests.
2012-05-27 14:54:56 +02:00
d215d90b40 Refactored some rhizome db SQL code
Added sqlite_exec_void() function, so that sqlite_exec_int64() can return
an error if no rows are found instead of 0, which can be misleading.
2012-05-25 19:42:45 +09:30
62ae488c18 Re-order "rhizome list" columns 2012-05-25 18:06:48 +09:30
c0ac693957 Remove old payload when updating a manifest with a new payload 2012-05-25 14:29:55 +09:30
ce0ca8801f Implement "rhizome list" sender/recipient filtering
With tests in tests/dna_rhizome that actually revealed a bug
2012-05-21 14:42:53 +09:30
da98535191 Add tests for rhizome MeshMS manifest operations 2012-05-21 14:42:53 +09:30
4d6c48a68f Overhaul test scripts: use "servald" instead of "dna" 2012-05-20 13:48:02 +09:30
5e11067c72 Add 'service' column to "rhizome list" output 2012-05-17 17:00:14 +09:30
9a51c76dfb Insist on 'service' field in all manifests
The "rhizome file add" command assumes service=file if no manifest supplied
or the manifest lacks a service field.

The "rhizome extract manifest" command includes the service in its CLI output.
2012-05-17 17:00:14 +09:30
2434d51bee Remove "rhizome add authored file" command
Now "rhizome add file" takes SID and PIN args, and if SID is empty, an
unauthored bundle (no BK field) is created

Updated dna_rhizome test cases
2012-05-17 12:01:25 +09:30
ebbae38cdd Update dna_rhizome test script
Manifests no longer carry 'first_byte' and 'last_byte' fields
2012-05-16 16:05:29 +09:30
cecb09f46a Add test for debug.all config option 2012-05-15 09:49:40 +09:30
d11258cefc Overhaul debug flags
Config debug flags are now represented as individual items, eg:
   servald config set debug.verbose yes
   servald config set debug.rhizome yes
instead of aggregated, eg:
   servald config set debug verbose,rhizome  <-- no longer works

Added a debug flag "debug.all" that can be set and cleared, over which
individual flag sets/clears take priority.

Slimmed down dna.c by moving some globals and functions to the files where they
are used.

Default command line (help message) is now the new style, not the deprecated
style.
2012-05-14 18:37:32 +09:30
4ae3c95992 "rhizome list" command filter by datavalid 2012-05-07 10:25:30 +09:30
97884ba069 Fix bug in output from "rhizome add file"
When a duplicate is detected, the 'manifestid' field must contain the public
key of the existing manifest.
2012-05-04 15:59:58 +09:30
f31c326871 CLI output from "rhizome add file", with tests 2012-05-04 15:31:03 +09:30
e230bbc40b Improve output from "rhizome extract manifest" 2012-05-03 12:17:49 +09:30
7ba15ccdd7 Add "rhizome extract file" command with tests 2012-05-02 17:57:35 +09:30
6e959fd34c More tests for "rhizome extract manifest"
Proper handling of unknown and invalid manifest IDs
2012-05-02 16:24:27 +09:30
572f8a3a93 Improve test for "rhizome extract manifest" 2012-05-02 16:08:27 +09:30
146eb7cdfd Add "rhizome extract manifest" command 2012-05-02 16:03:09 +09:30
7e7ab30808 Refactor JNI command-line interface
Does not depend on ServalDResult class - appends output fields to a supplied
list instead, and returns the integer status

Does not depend on ServalDReentranceError class - uses
java.lang.IllegalStateException instead
2012-04-30 17:45:24 +09:30
72640ade4c First output field of "rhizome list" is column count 2012-04-26 15:54:40 +09:30
219e863999 Add another JNI command-line interface test 2012-04-25 09:06:12 +09:30
f9d8536d7d JNI-ize the output of "dna rhizome list" 2012-04-24 17:50:27 +09:30
54b1642bf1 Add test for servald non-JNI output delimiter 2012-04-24 17:15:50 +09:30
a496919e8a First real servald JNI command-line test works! 2012-04-24 17:07:20 +09:30
1494172da6 Trival test of dna JNI command line entry point 2012-04-23 18:25:26 +09:30
d53915d354 Fix test framework for Mac OS X 10.7 (bash-3.2.48) 2012-04-17 16:54:39 +09:30
866ddea189 Get all rhizome add file test cases passing
- new test cases to cover new payload with different versions
 - exit status of 2 when duplicate is detected
 - tighten up other test cases
 - fix bug in sqlite_exec_int64()
2012-04-16 11:46:58 +09:30
edde2ac8c9 Add new rhizome test case
- updating the payload of a bundle should fail if version number is not
   increased
2012-04-13 18:03:19 +09:30
de88d3db21 Make "dna rhizome add" work for more test cases
- adding a bundle using an existing manifest with an incorrect payload should
   fail with an error
 - adding a bundle using an existing manifest to update the payload to a new
   version should succeed
 - improve format of "dna rhizome list" output to one bundle per line
2012-04-13 18:03:19 +09:30
af00de165a Enable rhizome debug messages in rhizome tests 2012-04-12 18:33:43 +09:30
42b117f735 Add dna config operation tests 2012-04-12 18:33:43 +09:30