Elis Axelsson
69166a3c3a
Moved error-handling of failed requests out so providers must specify it
...
Moved error-lambda out, there's currently two predefined ones. One
that does allow failover and one that doesn't. This also kills the
newly introduced no-failover key. But it's for the better anyways.
This will make it much easier to actually do proper testing of
different cases in the code that simply wasn't possible before.
Also added a test of running the success lambda.
9 years ago
Elis Axelsson
124ef8b0ef
Drop usage of concat when returning link to users message field
9 years ago
Elis Axelsson
7f62fed247
Tidy up some lists in tests with backquotes
9 years ago
Elis Axelsson
406d713873
Shared success lambdas between different paste providers
...
This will make it easier to create providers and to test providers.
9 years ago
Elis Axelsson
4dd2e1b570
First test of creation of paste providers
...
Currently not testing failovers, but it tests failures without failovers.
9 years ago
Elis Axelsson
382e01d787
Added page breaks to files
9 years ago
Elis Axelsson
f221c1accd
Added test for pasting entire buffers and regions
9 years ago
Elis Axelsson
25ea405478
Added ERT test for message when returning URL
9 years ago
Elis Axelsson
8861ed8c10
Added license-badge, renamed test-vars, stop providing webpaste-test
9 years ago
Elis Axelsson
ca539eb3c8
Rename and update tests for provider priority
...
- Rename webpaste--get-provider-priority to
webpaste/get-provider-priority
- Make the two tests one for better naming but same coverage
9 years ago
Elis Axelsson
b7acc4e28c
Added test for returning of URL's
9 years ago
Elis Axelsson
e998ee4f9b
Simplify one unit test
...
This was the first test I wrote, which also tested provider
priority. But now I have separate tests for provider priority so it
didn't need to be as complex anymore.
9 years ago
Elis Axelsson
ec85d7da14
Added unit test for static provider configuration
9 years ago
Elis Axelsson
346b5bcde0
Rename tests to be prefixed
9 years ago
Elis Axelsson
e11ce74a8c
Refactor provider priority to own function
9 years ago
Elis Axelsson
87cee69fe8
Added test for failover to the second provider and not random
9 years ago
Elis Axelsson
7770c886ff
Added first unit test to detect a working provider
9 years ago
Elis Axelsson
0c0e88ac70
Added basic structure of tests file
9 years ago
Elis Axelsson
2bb8a4ca33
Set up tests directory
9 years ago