36 Commits

Author SHA1 Message Date
Pēteris Caune
205f1ccce6
Upgrade croniter to 1.0.6 2021-02-02 08:50:25 +02:00
Pēteris Caune
155a1f132b
Simplify super() calls in tests 2020-11-16 11:20:01 +02:00
Pēteris Caune
00790dc33c
Member.rw flag. Read-only users cannot edit check's name/desc/tags or schedule 2020-08-26 12:16:43 +03:00
Pēteris Caune
0c9c453ea0
Profile.current_project not used any more, remove last remaining references. cc: #336 2020-02-27 12:34:21 +02:00
Pēteris Caune
ccd30ac239
Stricter cron validation, reject schedules like "At midnight of February 31" 2020-02-07 11:38:50 +02:00
Pēteris Caune
5d9944873c
Don't trigger "down" notifications when changing schedule interactively in web UI 2020-02-05 10:31:20 +02:00
Pēteris Caune
cdfc9840a7
Source formatted with Black 2019-05-15 14:27:50 +03:00
Pēteris Caune
6b0d566922
"My Projects" page. 2019-01-29 10:59:10 +02:00
Pēteris Caune
664aad916a
Remove Profile.team_name (use Project.name instead) and Profile.current_team (use Profile.current_project instead) 2019-01-19 17:56:16 +02:00
Pēteris Caune
0994006603
Drop Check.user_id and Channel.user_id (obsolete, using project_id now) 2019-01-18 17:24:02 +02:00
Pēteris Caune
965998df18
Fix tests. 2019-01-14 11:28:10 +02:00
Pēteris Caune
5f9ebb178c
Rename "Check.get_alert_after" to a now more fitting "Check.going_down_after" 2018-12-19 21:57:48 +02:00
Pēteris Caune
0b6c317956
Fix Check.is_down(), add tests. 2018-12-19 18:27:58 +02:00
Pēteris Caune
25e48f1b9f
croniter.is_valid() throws exceptions for some bad inputs, so must use try ... except 2018-12-14 18:58:35 +02:00
Pēteris Caune
a402dce293
Validate and reject cron schedules with six components 2018-12-14 15:21:02 +02:00
Pēteris Caune
a8c102f799
test_update_timeout: test if a Flip object gets created 2018-12-14 10:46:22 +02:00
Pēteris Caune
925d34daad
Update Check.status field when user edits timeout & grace settings 2018-12-13 16:53:26 +02:00
Pēteris Caune
c2f200fa02
Allow simultaneous access to checks from different teams 2018-11-29 13:51:25 +02:00
Pēteris Caune
ef6e1870d9
Preliminary Django 2 support 2018-04-24 22:38:02 +03:00
Pēteris Caune
810089d183 Require valid "schedule" and "tz" fields for cron checks. 2017-05-01 22:22:49 +03:00
Pēteris Caune
5dafc07c29 Return 403 when API key is wrong. Return 404 when resource not found. Return 405 when request method is wrong. Return 400 when request syntax is wrong. 2017-03-10 10:35:21 +02:00
Pēteris Caune
aabfd55f7c Cleanup and tests for cron preview. 2016-12-26 10:27:19 +02:00
Pēteris Caune
5a533441b5 When client GETs instead of POSTs, return HTTP 400 2016-12-21 17:22:48 +02:00
Pēteris Caune
b22b0a44e2 Validate cron expression before saving check. 2016-12-21 12:24:24 +02:00
Pēteris Caune
6ada656df4 UI for entering cron expression and setting timezone. 2016-12-13 13:09:53 +02:00
Pēteris Caune
ce57a1cc8b Calculate alert_after in Python code instead of a database trigger. This will allow complex calculations down the road. 2016-11-04 16:30:19 +02:00
Pēteris Caune
feb2294a7e Tests for team access. 2016-05-09 17:29:41 +03:00
Pēteris Caune
fdf9c607e5 Team Access, test cleanup 2016-05-09 15:35:13 +03:00
Di Wu
fe72792fd2 use basetestcase for most test cases that require predefined user, add test for ensuretriggers, add travis cache 2016-01-18 01:02:42 -08:00
Di Wu
79b7327c9e fix tests and optimize authentication and fix some unclosed markup 2016-01-04 23:47:32 -05:00
Pēteris Caune
1dacc8b797 Users can add passwords to their accounts. Fixes #6 2016-01-05 00:25:08 +02:00
Pēteris Caune
74c5e5d906 Use assertRedirects() to test redirects. 2016-01-02 18:32:00 +02:00
Pēteris Caune
947f686c61 Organize imports using isort. 2015-11-02 23:55:33 +02:00
Pēteris Caune
cee2b52d3e More tests. 2015-08-18 21:17:13 +03:00
Pēteris Caune
18635e947a More tests. 2015-08-14 15:06:06 +03:00
Pēteris Caune
969626c0fa Validate UUID, more tests. 2015-07-28 20:46:17 +03:00