Dietmar Maurer
7eef9426e0
revert dependency to dh-systemd (outdated), depend on GUI packages
2018-12-01 11:04:39 +01:00
Dietmar Maurer
5671c8da88
depend on dh-systemd
2018-12-01 10:50:30 +01:00
Dietmar Maurer
ef1a2162e7
api-test-server.service: restart on failure
2018-11-30 17:41:15 +01:00
Dietmar Maurer
3b4e7517a7
add systemd service file to start daemon
2018-11-30 17:27:33 +01:00
Dietmar Maurer
d3cb69c4e3
cleanup Makefile, add missing copyright file
2018-11-30 17:09:50 +01:00
Dietmar Maurer
de7798142a
add Makefile to build debian package
2018-11-30 13:41:26 +01:00
Dietmar Maurer
e3871182c5
rename bin to src/bin/api-test-server.rs
2018-11-30 12:48:45 +01:00
Dietmar Maurer
73f29c34d7
improve command line parser
2018-11-30 12:10:26 +01:00
Dietmar Maurer
d42398666c
improve error message
2018-11-30 12:07:27 +01:00
Dietmar Maurer
bfb1d69abc
fix compiler warnings, add storage/config.rs
2018-11-30 11:15:26 +01:00
Dietmar Maurer
9131286246
remove missleading comment
2018-11-30 08:47:26 +01:00
Dietmar Maurer
a27b905c28
use VecDeque instead of LinkedList
2018-11-29 17:28:28 +01:00
Dietmar Maurer
c6ed6cac12
SectionConfig::write - return raw string
2018-11-29 16:47:40 +01:00
Dietmar Maurer
ae3a512dd9
SectionConfig::write - verify data
2018-11-29 13:18:15 +01:00
Dietmar Maurer
aeb4c8217b
schema: implement verify_json
2018-11-29 13:06:43 +01:00
Dietmar Maurer
9c1b42d28e
simplify var names
2018-11-29 09:33:27 +01:00
Dietmar Maurer
e189c93b8c
section_config: add write - first try
2018-11-28 14:09:35 +01:00
Dietmar Maurer
92fb0784d4
section_config: add new struct SectionConfigData
2018-11-28 08:25:26 +01:00
Dietmar Maurer
e3a2217050
avoid clone
2018-11-27 14:10:16 +01:00
Dietmar Maurer
ee7fc4335a
SectionConfig::parse - return Value
2018-11-27 12:54:40 +01:00
Dietmar Maurer
826698d56f
SectionConfig: add schema for ID property
2018-11-27 12:34:56 +01:00
Dietmar Maurer
bdb631da88
section_config: improve parser
2018-11-27 11:55:21 +01:00
Dietmar Maurer
1fa897cfed
section_config: parse section content
2018-11-27 09:01:36 +01:00
Dietmar Maurer
803b95a01d
SectionConfigPlugin: add schema
2018-11-27 08:41:25 +01:00
Dietmar Maurer
b943ed8d2b
section_config: further parser improvements
2018-11-26 18:22:07 +01:00
Dietmar Maurer
0d97734e92
use is_empty() to check for empty string
2018-11-26 18:02:29 +01:00
Dietmar Maurer
dd193a61d0
section_config: improve parser
2018-11-26 18:01:24 +01:00
Dietmar Maurer
07d3fa7289
add some inline documentation
2018-11-24 17:52:43 +01:00
Dietmar Maurer
6656ba9d32
StringSchema: add method to check string length
2018-11-24 12:37:05 +01:00
Dietmar Maurer
ab672c124e
ArraySchema: add method to check array length
2018-11-24 12:33:44 +01:00
Dietmar Maurer
ed04ce8093
parse_property_string: allow arrays
...
So that we can build simple lists like "1,2,3,4"
2018-11-24 12:21:56 +01:00
Dietmar Maurer
84669dc18d
rename test case
2018-11-24 11:21:01 +01:00
Dietmar Maurer
b436389d47
parse_property_string: first try
2018-11-24 11:20:17 +01:00
Dietmar Maurer
a23dd9bb42
add test for VerifyFn
2018-11-24 08:30:23 +01:00
Dietmar Maurer
715f22fb4a
remove outdated test code
2018-11-24 08:15:08 +01:00
Dietmar Maurer
757d9b4769
ArraySchema: Add min_length and max_length
2018-11-24 08:12:23 +01:00
Dietmar Maurer
3e1497fb75
remove description from ApiMethod
...
We use the description from parameters ObjectSchema instead.
2018-11-23 17:02:50 +01:00
Dietmar Maurer
768e01091a
implement Into Arc<Schema>
2018-11-23 13:18:41 +01:00
Dietmar Maurer
8a41cfdd55
implement ArraySchema
2018-11-23 12:05:55 +01:00
Dietmar Maurer
7edeec7b06
remove parameter macro, implement ObjectSchema builder
...
And store "optional" attribute inside properties hash.
2018-11-23 11:34:15 +01:00
Dietmar Maurer
82df76fff0
start using builder pattern instead of macros
2018-11-23 09:55:38 +01:00
Dietmar Maurer
dc454ef096
implement schema registry
2018-11-22 11:23:49 +01:00
Dietmar Maurer
00c908df85
use Arc pointer to properties
2018-11-20 17:20:50 +01:00
Dietmar Maurer
e471d69946
section_config.rs: add some test code
2018-11-19 08:07:22 +01:00
Dietmar Maurer
222454221c
add section_config.rs
2018-11-19 06:47:39 +01:00
Dietmar Maurer
948c74f4ca
move future test code into extra file
2018-11-19 06:41:50 +01:00
Dietmar Maurer
0f52af5b23
implement simply test future for storage operations
2018-11-18 15:01:19 +01:00
Dietmar Maurer
be45ccd203
fix getopts when called without any argument
2018-11-18 14:57:18 +01:00
Dietmar Maurer
a19f223dea
impl argument parameters
2018-11-18 10:09:13 +01:00
Dietmar Maurer
c78bcf07ad
getopts: more tests
2018-11-18 09:34:43 +01:00