aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fetch abook and xchan directly from api.Harald Eilertsen2023-03-261-1/+1
| | | | We don't really need the intermediate layer in the binary module.
* Update reqwest and make async.Harald Eilertsen2021-07-051-50/+56
| | | | | | | | This means adding the full tokio as a dependency. While there isn't much gain to going async in the current cli demo app, a full fledged app may have more to gain by it. First foray into async rust, so I might not do it right...
* Fix tests an update for newer rust.Harald Eilertsen2021-07-041-3/+3
|
* xchan: update internal api and parse results into struct.Your Name2020-05-021-6/+50
|
* Update abook with struct and request object.Harald Eilertsen2020-02-141-1/+1
|
* tests: Make default mock return empty array.Harald Eilertsen2020-02-141-1/+1
| | | | Most API's return an arrya, so this should be ok with most of them.
* tests: No need to check response returned by mock.Harald Eilertsen2020-02-141-4/+2
|
* Refactor how ABConfigs are fetched.Harald Eilertsen2020-02-131-2/+2
| | | | | | | Introduce a `z()` menber function that creates the request object that we use for further configuring the requset. This eliminates the need to two fetch functions, and is meant to provide a consistent way of doing these requests.
* Add fetching ABConfig for only a given contact.Harald Eilertsen2020-02-131-0/+12
|
* abconfig: reorg + parse result into struct.Harald Eilertsen2020-01-041-2/+31
|
* Cargo fmtHarald Eilertsen2020-01-031-3/+1
|
* Make channel and network stream behave like the rest.Harald Eilertsen2020-01-031-3/+3
|
* Move Client out of the api objects.Harald Eilertsen2020-01-031-27/+33
| | | | Also make constructor functions in the zotapi namespace.
* Cargo fmtHarald Eilertsen2020-01-021-52/+82
|
* No need for extern crate in Rust 2018.Harald Eilertsen2020-01-021-3/+0
|
* Allow limiting a new item to one or more privacy groups.Harald Eilertsen2020-01-011-0/+28
|
* tests: Verify authorization properly.Harald Eilertsen2020-01-011-15/+14
|
* Update to Mockito 0.19 for smoother tests.Harald Eilertsen2019-07-291-12/+11
| | | | | Provides matching against query params, so we don't need the ugly regexes anymore.
* Reduce duplication in tests.Harald Eilertsen2019-06-121-84/+35
| | | | | Adds a default_mock method for most cases, and a client method that sets up the zotapi client with the proper test url and credentials.
* Fix uploading of attachments to posts.Harald Eilertsen2019-06-121-3/+3
| | | | | | | The field needs to be named `media`, and we also need to handle the result of the operation. This refactors the result handling into a separate private function.
* Implement fetching privacy group members.Harald Eilertsen2019-06-101-0/+30
|
* Fetch privacy groups.Harald Eilertsen2019-06-091-0/+14
|
* Add test for uploading two files.Harald Eilertsen2018-12-161-0/+37
|
* Upload one file should now work.Harald Eilertsen2018-12-162-2/+15
|
* Begin multipart/form-data upload support.Harald Eilertsen2018-11-191-0/+20
|
* Begin implement undocumented abconfig API.Harald Eilertsen2018-09-231-0/+14
|
* Begin implementaton of undocumented abook api to fetch connections.Harald Eilertsen2018-09-231-0/+14
|
* Add fetching xchans by guid and has too.Harald Eilertsen2018-08-231-0/+28
|
* Add support for fetching xchan data by address.Harald Eilertsen2018-08-211-0/+14
| | | | | | | Not entirely happy with it, have updated the signature of Client::fetch_stream and Client::url to take args, which are left out if they're not serializable (or empty, I hope.) Should probably use an Option instead, or maybe even two entry points for the api.
* Allow setting title for new items.Harald Eilertsen2018-08-201-0/+21
|
* Use builder pattern to construct items.Harald Eilertsen2018-08-201-1/+1
|
* First attempt at creating posts.Harald Eilertsen2018-08-191-0/+16
|
* Add licence blurb to sources.Harald Eilertsen2018-08-191-0/+16
|
* Add method for fetching network stream.Harald Eilertsen2018-08-191-0/+15
|
* Return error from channel stream API if unauthorized.Harald Eilertsen2018-08-191-1/+16
|
* Pass authorization info to endpoint.Harald Eilertsen2018-08-071-2/+3
| | | | | | It seems like Hubzilla will accept basic authorization info in the first request. This does not follow the described signal flow for basic authorization, but for now we'll use whatever works.
* First iteration of getting channel stream from server.Harald Eilertsen2018-08-071-0/+18