summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-07-03coverage: Add the missing filesJosé Bollo12-1/+120
The files weren't included due to git and gitignore. Also add a README.md to reproduce the test. Change-Id: Ifcdffaca32c369b2ff5fb82e246fa0cad87813f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22coverage: Add coverage testflounder_5.99.1flounder/5.99.15.99.1José Bollo22-0/+215
This is a first version of the coverage tests. Change-Id: Iec2feaba12c369b2ff5fb82e246fa0cad87813f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22main-afb-client-demo: Allow scriptingJosé Bollo1-15/+61
This version allows to pipe from a script shell. Change-Id: Ia2bb3e059b8a5a1b097178d2883ef385e7efcdca Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22afb-autoset: Automatic prefix with unix:José Bollo1-1/+5
Change-Id: I325d768b3bdfcb313b57e1752cbc156b3735b55a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22afb-api-v3: Refactor verb descriptionJosé Bollo1-17/+34
Change-Id: Iaa1719ee2891d470f8229c6f1b98dd34265593a6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22afb-api-so: accept symbolic links for bindingsJosé Bollo1-3/+3
Change-Id: I1ef90b0f889767d04f84c8c7eb27d19c04390b15 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22hello3: Add verbsJosé Bollo1-0/+37
Add the following verb for testing purpose: - close: close the session - set-loa: set the LOA of the session - setctx: set the contextual data of a session - setctxif: set the contextual data of a session if not already set - getctx: get the contextual data of a session - info: returns the info of the session Change-Id: Ie2ceb897ecdff01f6efd0a3b174b5794913726d9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22api-v3: Add monitoring of faults in preinit functionsJosé Bollo3-2/+35
Change-Id: I0abea1aa62d86372f07f61b7c5dc2e854137f99a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22afb-client-demo: Add option to keep runningJosé Bollo1-4/+12
This option allows to keep the client running even when its input is closed. This will be used for tests and for reporting because it allows to write: echo 'monitor trace {"add":{"api":"*","request":"*","event":"*","session":"*","global":"*"}}' | afb-client -k $WSURL > logfile to capture all events. Change-Id: If1c7804556190fd8ec9388260fe014c50b498b1d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22Improve documentation of api v3José Bollo52-1398/+4275
The documentation is improved to reflect the new version. Tune the options Change-Id: I894c3db3bc0c10e89db66a9a51a9ad049bb8c0c4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-20packaging: Add V3 demo filesRonan Le Martret1-0/+2
Change-Id: Ia9b047bf01543f7cc1c794d91bf479d9848509d3 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-06-20packaging: Update spec and deb packagingRonan Le Martret8-19/+35
- sort files by packaging type Change-Id: Ic914b5eedffce04356bb59db36be30ba81a8a20d Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-06-19Fix a warning in using readlinkJosé Bollo2-17/+26
The use of the same buffer as input and output of readlink leads to warnings due to restrict use in new versions of GLIBC Change-Id: Ifbf1277b88bd18a9df1e18211d4248e94c16d6da Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-19Fix warnings due to json-c evolutionJosé Bollo6-13/+13
The library json-c now returns size_t instead of int when querying length of arrays. Change-Id: Id52bb8e77da12cb01e61e1a7c7f4ae2fcbe4634e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-18afb-hsrv: Add processing of type application/jsonjobol3-4/+26
Makes the data posted as application/json directly available through json. The previous processing made content transmitted with the content-type application/json available as a string in the field of name "" of the returned json object. Change-Id: I11615b9b147ee4daa1b1358c2bd36fd839d8a7a9 Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-06-15api-v3: First draftJosé Bollo155-6811/+19209
This commit introduces the bindings v3 API for bindings. The documentation has still to be improved and will come very soon. Change-Id: I8f9007370e29f671fdfd1da87fff7372a17db7af Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13jobs: Switch back to sd_eventjobol2-3/+47
Change-Id: I8c9de83d857844b1c5d0d2d26385dbf19fcae228 Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-06-13afb-trace: Restore microsecond timeJosé Bollo1-1/+1
This allow to use accurately float 64 bits for times from 1970 to 2112. Change-Id: I8f57a57edbf5469f827c0eeb80191de934d9841e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13gitignore: Ignore netbean files from nbproject/José Bollo3-1080/+1
Change-Id: Ic89f9dde8111a20e8dfc5f536ec0e731b2b49df7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13Fixed spellingSebastien Douheret10-36/+36
Change-Id: Id7c183face3179a3b9cec7ed128e3a2561d9f3ad Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-06-13afb-client-demo: real raw output when --raw is setSebastien Douheret1-7/+7
Having a 'real' raw output allows to pipe output with useful tools like jq. For example: afb-client-demo 'localhost:5555/api?token=HELLO&uuid=c' hello ping | \ jq .request.status Change-Id: Ib871a257375bec26f315cdcdbb590033b645ac9d Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-06-13afb-client-demo: improved usage messageSebastien Douheret1-0/+13
Change-Id: Ia529be2bf17d9bce3adfc5cb052afd724ae7bbdf Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-06-13netbean: update netbean configJosé Bollo2-215/+861
Change-Id: I3c5e0e875cc5f16c8d366694b4a131768ab8ccd8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13afb-client-demo: Add option -e/--echoJosé Bollo2-3/+21
This option prints the command sent in the same way that it prints the received actions. Change-Id: I55d74f7b8645185f93e3b163cb772c8eb515fad0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13wrap-json: Update and fixes for y/YJosé Bollo2-25/+66
Change-Id: I9026f3498a4860851a41a0d5d56d1880ece75306 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13afb-hook: Factorize call to pattern matchingJosé Bollo1-4/+6
The pattern matching actually use fnmatch but this could be changed in the futur to some lighter version. Change-Id: I4f3617cd4a5bdf95988428cb184cef9e9543771d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13afb-apiset: manage deletion of apisJosé Bollo2-5/+13
Change-Id: If8b4a2b8773e5e7ce3ae62839193c611eefcb811 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13afb-hook: Refactor timestamps of hooks and traceJosé Bollo2-2/+2
Change-Id: Iebcab280123d1f954eda3b1260d0b984ae3a98b5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13jobs: Fix minor errorsJosé Bollo1-4/+4
Change-Id: I78aeb16fb1cf5b029fb24704d16c42152f9cc909 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13.gitignore: Ignore KDevelop filesJosé Bollo1-1/+2
Change-Id: I832f09f44f00152bf2f1bbfc1f82bc4b7c9585e7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13wrap-json: Sync with app-afb-helpers-submoduleJosé Bollo2-9/+6
Change-Id: Idc3360e7b96d5d9dd3fbb39ef97b3dc5d50c54bb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13wrap-json: Add base64 byte buffer supportJosé Bollo2-3/+225
Change-Id: I1c8e68b248e768b9a6f3cae712035c85b68572f9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13afb-eventid: Fix commentsJosé Bollo2-10/+16
Change-Id: I4ba49719a4776511d7f5448cd7fbf84caf7474e8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13afs-supervisor: Add ws-server optionJosé Bollo3-1/+19
This allow exportation of the API of the supervisor. Change-Id: I167ec94f00f40f8c3640377a46820e6a060b24f1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13jobs: Switch to fdev_epoll instead of sd_eventJosé Bollo3-26/+117
Use by default an epoll of jobs for handling HTTP and websockets. The sd_event loop remains available (to be checked). Change-Id: Iaaad005c9880ba1818936a93c8626490666c9eec Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13fdev: Improve fdev handling with epollJosé Bollo5-16/+74
Change-Id: I53c6eb394772e40f87000a0e5383be923f5d15f1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13jobs: Cosmetic changesJosé Bollo1-4/+10
Change-Id: I7505c3c5bcec9e2b7af645a59a3716cf9bfec552 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13afb-hsrv: remove dependency to systemdJosé Bollo1-15/+16
Change-Id: I42428e7e57cb104b8575b60b1c7985782e9f779f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13Make DBUS transparency optional (off by default)José Bollo5-20/+62
The implementation of API transparency through DBUS is not used at the moment. To improve independancy to systemd (it relies on systemd library) removing it should be possible. Change-Id: I5750a92527dc3e9cf7dcd27625dce6a020797a3d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13afb-hswitch: Improve HTTP scanning of API/VERBJosé Bollo1-10/+25
The previous version wasn't accepting verbs containing slashes (/) but the websocket did. Some interesting use-cases are allowed by accepting to include slashes in verbs. Change-Id: I2786b5ed0e2686c3e68bb9b74923064d8953243c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13afs-supervisor: Fix typoJosé Bollo6-21/+35
Change-Id: Icc3c15f577f04117cdfaf2bcbcc4d15a99d02138 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-05-05Convert pc.in from UTF-8 to US-ASCIIRonan Le Martret2-2/+0
Change-Id: I14fd54002c6df3b3e566a9f5a61bc89b595f4e3d Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-05-03CMakeLists: Fix c++ buildRonan Le Martret1-0/+1
On debian, for example, we need to specify C14 compatibility Change-Id: I4fd4d6dbca03d085def61e373617ab5336ebcb0b Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-03-16fdev: Improve readabilityJosé Bollo1-3/+3
Change-Id: If81cdf43703b6ff3128ea79940ce240f56918b9d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-03-16afb-websock: Fix a double freeJosé Bollo2-2/+13
The commit 0ebdff94d461abd4328cf45a6281c15139a045eb of libmicrohttpd fixed a bug but introduced a double free of hreq resource attached to the connection. That commit is between versions 0.9.59 and 0.9.60 of libmicrohttpd. Now, hreq is freed in 'end_handler' of afb-hsrv.c Change-Id: Ia865d65c5f9ef5ce787eb6545802ac8ea37ae468 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-03-16afb-websock: Fix double closeJosé Bollo1-0/+2
Integration with newer versions of libmicrohttpd was closing two times the file descriptor: - one time by the websocket within afb - one time by the upgrade close of libmicrohttpd Thanks to 'autoclose' feature of 'fdev', the solution is quiet easily. Bug-AGL: SPEC-1345 Change-Id: Ifb691b3f69c095b5ff44bfd7f7267ea24d52df6d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-27Update date of copyright noticesJosé Bollo153-153/+153
Change-Id: If9d7e7728df086fbb7214f1de5cbec35cd2f1d9b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-27afs-supervisor: Enforce session check (for token)José Bollo1-10/+10
Change-Id: I6fdc419923944183d12c9c931e90e276f3dc8ac6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-27afs-supervisor: Force replyJosé Bollo1-0/+3
Change-Id: Iba3a80e327b4324c1bdb4f8a0e7b73021d6e4ad6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-27afb-supervision: Fix typoJosé Bollo1-1/+1
Change-Id: Iaff0340d64b02ee24f45caadd01d74314afabacd Signed-off-by: José Bollo <jose.bollo@iot.bzh>