summaryrefslogtreecommitdiffstats
path: root/rust/tests
Commit message (Collapse)AuthorAgeFilesLines
* rust: fix macaroon expiry checkBryan Newbold2019-04-091-0/+7
| | | | | | | | | | | | | There were two bugs with this code: the expiry timestamps were getting enclosed in double-quotes (which caused parse bugs), and the actual caveat check itself was backwards (expires < now instead of expires > now). An underlying issue was that these caveats weren't actually getting checked in the tests. Should fix a bug where users don't get auth'd correctly when logging in via mechanisms other than tokens.
* more old rust tests removedBryan Newbold2019-02-052-302/+1
|
* remove test client helperBryan Newbold2019-02-051-36/+0
|
* rust: remove client tests (unused)Bryan Newbold2019-02-051-25/+0
| | | | Basically all of this has moved to python, which is fine.
* allow passing description+extra to batch endpointsBryan Newbold2019-01-221-2/+4
| | | | | | Pretty messy, but I needed some way to do this. In particular, requires json.dumps() in python code, for now. Blech.
* impl cdx timestamps as datetimeBryan Newbold2019-01-181-1/+1
|
* fix autoaccept testBryan Newbold2019-01-181-2/+2
|
* rust fmtBryan Newbold2019-01-171-37/+43
|
* add test for parameter parsingBryan Newbold2019-01-171-0/+83
|
* add test for refs blob stuff in rust itselfBryan Newbold2019-01-141-0/+161
|
* minimal crude rust tests for new endpointsBryan Newbold2019-01-112-1/+152
|
* implement since/before ordering for range requestsBryan Newbold2019-01-111-0/+1
|
* refactor editgroup creation in test_api_server_httpBryan Newbold2019-01-112-39/+42
|
* refactor: FatCatId -> FatcatIdBryan Newbold2019-01-094-87/+158
|
* fix a bunch of test issuesBryan Newbold2019-01-092-78/+83
| | | | | I previously was only running a single test locally; oops! CI caught them.
* impl AsRef, From, Into for FatCatIdBryan Newbold2019-01-091-5/+22
|
* rust impl required editgroup_idBryan Newbold2019-01-092-23/+59
|
* start removing active editgroup codeBryan Newbold2019-01-092-37/+37
|
* refactor to have consistent db conn argument orderBryan Newbold2019-01-091-8/+8
| | | | 'conn' parameter always comes first.
* revert pg_tmp parallel tests (for now)Bryan Newbold2019-01-091-2/+2
| | | | | I really want these to work, but even with jitter get frequent test failures, and CI is broken.
* huge refactor of rust modules/filesBryan Newbold2019-01-086-42/+18
| | | | | | Taking advantage of new Rust 2018 crate/module path changes, and re-organizing things. Somewhat optimistic this could help with partial rebuild speed also.
* rust 2018 edition!Bryan Newbold2019-01-083-139/+136
| | | | Only the basics to get things to compile/test again in this commit.
* squelch more build warningsBryan Newbold2019-01-081-1/+0
|
* integrate pg_tmp into testsBryan Newbold2019-01-081-0/+1
|
* pg_tmp: hack to find pg binaries on debian/ubuntuBryan Newbold2019-01-081-0/+2
|
* add pg_tmp.shBryan Newbold2019-01-081-0/+131
| | | | | | Unmodified, as downloaded from: https://bitbucket.org/eradman/ephemeralpg/raw/08896d00f50f7c1d1e8c851f9598fc7f7ddb675a/pg_tmp.sh
* squelch more test warningsBryan Newbold2019-01-082-1/+5
|
* rust fmtBryan Newbold2019-01-081-1/+2
|
* iterate on macaroon time caveat namesBryan Newbold2019-01-081-2/+1
|
* add superuser role/flagBryan Newbold2019-01-041-3/+3
|
* rust fmtBryan Newbold2018-12-312-10/+3
|
* make editor_id optional when createding editgroupBryan Newbold2018-12-312-2/+38
| | | | The editor_id can be infered from auth metadata.
* crude admin auth in testsBryan Newbold2018-12-314-21/+69
|
* tests: disable client testsBryan Newbold2018-12-312-23/+25
| | | | | | | | | | | | But un-comments a bunch of code (and fixes type bugs with that). Something about calling iron::http() has broken, such that the call blocks. I thought it might be a port thing, but doesn't seem like it. Presumably this is what was causing problems with the "old_python_tests" second test previously. For now, just disabling; these integration-level tests best done from python anyways.
* rustfmt; implement role-based auth checksBryan Newbold2018-12-311-7/+5
|
* include unwrap() in testsBryan Newbold2018-12-291-1/+1
|
* basic auth unittestsBryan Newbold2018-12-281-0/+48
|
* rust impl last webcapture schema tweaksBryan Newbold2018-12-261-1/+1
|
* most basic fileset/web access testsBryan Newbold2018-12-261-1/+182
|
* remove unused postgres-backed stats stuffBryan Newbold2018-12-241-20/+0
| | | | Will replace with elasticsearch-based dash in webface
* rust impl of API harmonizationBryan Newbold2018-12-242-4/+4
|
* implement release_year (and rustfmt)Bryan Newbold2018-12-241-0/+76
|
* verify checksum against regexesBryan Newbold2018-12-211-2/+11
|
* lookups implBryan Newbold2018-12-141-1/+151
|
* new rustfmt (1.31)Bryan Newbold2018-12-141-14/+13
|
* skeleton out new schema featuresBryan Newbold2018-12-131-4/+8
|
* rustfmtBryan Newbold2018-12-131-1/+5
|
* implement hide flagBryan Newbold2018-11-262-5/+15
|
* add (disabled) test that invalid fields should errorBryan Newbold2018-11-141-0/+16
|
* implement new controlled vocabulariesBryan Newbold2018-11-142-14/+47
|