PeerTube/server/tests
Theodore R. Smith 8e76aa1d75
(#3520) [cli] Hardened `auth add`: No longer fails with extraneous characters.
**The Solution:**
I have hardened `auth add` by stripping out everything from the third '/' to the end of the instance URL.

**The Problem:**
When adding an authorization for the peertube-cli, before this commit you could not have anything after the domain_name:port.

For instance, if there was a trailing / in your instance URL, before this commit it will always fail with

    expected 200 "OK", got 404 "Not Found".

It took me over 20 minutes to figure out that this was the problem.

See Issue #3091.
2020-12-27 14:29:54 -06:00
..
api More robust server stats tests 2020-12-16 14:59:33 +01:00
cli (#3520) [cli] Hardened `auth add`: No longer fails with extraneous characters. 2020-12-27 14:29:54 -06:00
external-plugins replace numbers with typed http status codes (#3409) 2020-12-07 14:32:36 +01:00
feeds emit more specific status codes on video upload (#3423) 2020-12-08 21:16:10 +01:00
fixtures plugins: add optional authentication for routes 2020-12-08 10:40:08 +01:00
helpers Move to eslint 2020-02-03 08:31:02 +01:00
plugins Fix tests timeout 2020-12-14 09:11:27 +01:00
client.ts Refactor a little bit client canonical URL 2020-12-08 11:15:11 +01:00
index.ts Add misc endpoints and helpers to npm test 2020-04-14 08:57:52 +02:00
misc-endpoints.ts replace numbers with typed http status codes (#3409) 2020-12-07 14:32:36 +01:00