forked from arachnys/cabot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP Checks : add a check box to control whether Cabot should follow …
…redirects fix arachnys#20 - The setting is per-check - default is 'checked' which means Cabot does follow redirects (as before this change) - [x] db migration - [x] views - [x] REST api
- Loading branch information
1 parent
56cfed4
commit a941731
Showing
5 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
cabot/cabotapp/migrations/0008_statuscheck_follow_redirects.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.11 on 2019-06-11 10:26 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cabotapp', '0007_statuscheckresult_consecutive_failures'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='statuscheck', | ||
name='follow_redirects', | ||
field=models.BooleanField(default=True, help_text=b'Uncheck to prevent Cabot from following HTTP redirections (default True)'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters