forked from GithubBackups/healthchecks
Increase check limits for paid accounts.
This commit is contained in:
parent
8a68ea50dc
commit
eafb5d6096
@ -37,7 +37,7 @@ class SetPlanTestCase(BaseTestCase):
|
|||||||
# User's profile should have a higher limits
|
# User's profile should have a higher limits
|
||||||
self.profile.refresh_from_db()
|
self.profile.refresh_from_db()
|
||||||
self.assertEqual(self.profile.ping_log_limit, 1000)
|
self.assertEqual(self.profile.ping_log_limit, 1000)
|
||||||
self.assertEqual(self.profile.check_limit, 50)
|
self.assertEqual(self.profile.check_limit, 100)
|
||||||
self.assertEqual(self.profile.team_limit, 9)
|
self.assertEqual(self.profile.team_limit, 9)
|
||||||
self.assertEqual(self.profile.sms_limit, 50)
|
self.assertEqual(self.profile.sms_limit, 50)
|
||||||
self.assertEqual(self.profile.sms_sent, 0)
|
self.assertEqual(self.profile.sms_sent, 0)
|
||||||
@ -65,7 +65,7 @@ class SetPlanTestCase(BaseTestCase):
|
|||||||
# User's profile should have a higher limits
|
# User's profile should have a higher limits
|
||||||
self.profile.refresh_from_db()
|
self.profile.refresh_from_db()
|
||||||
self.assertEqual(self.profile.ping_log_limit, 1000)
|
self.assertEqual(self.profile.ping_log_limit, 1000)
|
||||||
self.assertEqual(self.profile.check_limit, 50)
|
self.assertEqual(self.profile.check_limit, 100)
|
||||||
self.assertEqual(self.profile.team_limit, 9)
|
self.assertEqual(self.profile.team_limit, 9)
|
||||||
self.assertEqual(self.profile.sms_limit, 50)
|
self.assertEqual(self.profile.sms_limit, 50)
|
||||||
self.assertEqual(self.profile.sms_sent, 0)
|
self.assertEqual(self.profile.sms_sent, 0)
|
||||||
@ -93,7 +93,7 @@ class SetPlanTestCase(BaseTestCase):
|
|||||||
# User's profile should have a higher limits
|
# User's profile should have a higher limits
|
||||||
self.profile.refresh_from_db()
|
self.profile.refresh_from_db()
|
||||||
self.assertEqual(self.profile.ping_log_limit, 1000)
|
self.assertEqual(self.profile.ping_log_limit, 1000)
|
||||||
self.assertEqual(self.profile.check_limit, 500)
|
self.assertEqual(self.profile.check_limit, 1000)
|
||||||
self.assertEqual(self.profile.team_limit, 500)
|
self.assertEqual(self.profile.team_limit, 500)
|
||||||
self.assertEqual(self.profile.sms_limit, 500)
|
self.assertEqual(self.profile.sms_limit, 500)
|
||||||
self.assertEqual(self.profile.sms_sent, 0)
|
self.assertEqual(self.profile.sms_sent, 0)
|
||||||
|
@ -123,14 +123,14 @@ def set_plan(request):
|
|||||||
profile = request.user.profile
|
profile = request.user.profile
|
||||||
if plan_id in ("P20", "Y192"):
|
if plan_id in ("P20", "Y192"):
|
||||||
profile.ping_log_limit = 1000
|
profile.ping_log_limit = 1000
|
||||||
profile.check_limit = 50
|
profile.check_limit = 100
|
||||||
profile.team_limit = 9
|
profile.team_limit = 9
|
||||||
profile.sms_limit = 50
|
profile.sms_limit = 50
|
||||||
profile.sms_sent = 0
|
profile.sms_sent = 0
|
||||||
profile.save()
|
profile.save()
|
||||||
elif plan_id in ("P80", "Y768"):
|
elif plan_id in ("P80", "Y768"):
|
||||||
profile.ping_log_limit = 1000
|
profile.ping_log_limit = 1000
|
||||||
profile.check_limit = 500
|
profile.check_limit = 1000
|
||||||
profile.team_limit = 500
|
profile.team_limit = 500
|
||||||
profile.sms_limit = 500
|
profile.sms_limit = 500
|
||||||
profile.sms_sent = 0
|
profile.sms_sent = 0
|
||||||
|
@ -207,7 +207,7 @@
|
|||||||
Enjoy free service.
|
Enjoy free service.
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<h2>Standard <small>50 checks, 10 team members</small></h2>
|
<h2>Standard <small>100 checks, 10 team members</small></h2>
|
||||||
<label class="radio-container">
|
<label class="radio-container">
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -228,7 +228,7 @@
|
|||||||
Annual, $192 / year (20% off monthly)
|
Annual, $192 / year (20% off monthly)
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<h2>Plus <small>500 checks, unlimited team members</small></h2>
|
<h2>Plus <small>1000 checks, unlimited team members</small></h2>
|
||||||
<label class="radio-container">
|
<label class="radio-container">
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="list-group text-center">
|
<ul class="list-group text-center">
|
||||||
<li class="list-group-item">50 Checks</li>
|
<li class="list-group-item">100 Checks</li>
|
||||||
<li class="list-group-item">10 Team Members</li>
|
<li class="list-group-item">10 Team Members</li>
|
||||||
<li class="list-group-item">1000 log entries per check</li>
|
<li class="list-group-item">1000 log entries per check</li>
|
||||||
<li class="list-group-item">50 SMS alerts per month</li>
|
<li class="list-group-item">50 SMS alerts per month</li>
|
||||||
@ -125,7 +125,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="list-group text-center">
|
<ul class="list-group text-center">
|
||||||
<li class="list-group-item">500 Checks</li>
|
<li class="list-group-item">1000 Checks</li>
|
||||||
<li class="list-group-item">Unlimited Team Members</li>
|
<li class="list-group-item">Unlimited Team Members</li>
|
||||||
<li class="list-group-item">1000 log entries per check</li>
|
<li class="list-group-item">1000 log entries per check</li>
|
||||||
<li class="list-group-item">500 SMS alerts per month</li>
|
<li class="list-group-item">500 SMS alerts per month</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user