| |
@@ -589,6 +589,13 @@
|
| |
self.assertEqual(data['depends_on_events'], [event1.id])
|
| |
self.assertEqual(data['depending_events'], [])
|
| |
|
| |
+ def test_trailing_slash(self):
|
| |
+ urls = ('/api/2/builds', '/api/2/builds/',
|
| |
+ '/api/2/events', '/api/2/events/')
|
| |
+ for url in urls:
|
| |
+ response = self.client.get(url, follow_redirects=True)
|
| |
+ self.assertEqual(response.status_code, 200)
|
| |
+
|
| |
|
| |
class TestViewsMultipleFilterValues(helpers.ModelsTestCase):
|
| |
def setUp(self):
|
| |
Fixing problem when for example accessing '/api/2/builds' without slash at the end caused internal server error. But accessing same address with slash at the end works fine. This problem was fixed in Flask v1.0.3 (bug https://github.com/pallets/flask/issues/2984).
+ test for this issue
Resolves: FACTORY-5859