mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-06 22:18:25 -04:00
change total message limit to 100000
This commit is contained in:
@@ -339,7 +339,7 @@ class Config(object):
|
|||||||
|
|
||||||
FREE_SMS_TIER_FRAGMENT_COUNT = 250000
|
FREE_SMS_TIER_FRAGMENT_COUNT = 250000
|
||||||
|
|
||||||
TOTAL_MESSAGE_LIMIT = 250000
|
TOTAL_MESSAGE_LIMIT = 100000
|
||||||
|
|
||||||
DAILY_MESSAGE_LIMIT = notifications_utils.DAILY_MESSAGE_LIMIT
|
DAILY_MESSAGE_LIMIT = notifications_utils.DAILY_MESSAGE_LIMIT
|
||||||
|
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ def sample_service(sample_user):
|
|||||||
data = {
|
data = {
|
||||||
"name": service_name,
|
"name": service_name,
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"email_from": email_from,
|
"email_from": email_from,
|
||||||
"created_by": sample_user,
|
"created_by": sample_user,
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ def create_service(
|
|||||||
email_from=None,
|
email_from=None,
|
||||||
prefix_sms=True,
|
prefix_sms=True,
|
||||||
message_limit=1000,
|
message_limit=1000,
|
||||||
total_message_limit=250000,
|
total_message_limit=100000,
|
||||||
organization_type=OrganizationType.FEDERAL,
|
organization_type=OrganizationType.FEDERAL,
|
||||||
check_if_service_exists=False,
|
check_if_service_exists=False,
|
||||||
go_live_user=None,
|
go_live_user=None,
|
||||||
|
|||||||
@@ -397,7 +397,7 @@ def test_create_service(
|
|||||||
"name": "created service",
|
"name": "created service",
|
||||||
"user_id": str(sample_user.id),
|
"user_id": str(sample_user.id),
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"email_from": "created.service",
|
"email_from": "created.service",
|
||||||
@@ -468,7 +468,7 @@ def test_create_service_with_domain_sets_organization(
|
|||||||
"name": "created service",
|
"name": "created service",
|
||||||
"user_id": str(sample_user.id),
|
"user_id": str(sample_user.id),
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"email_from": "created.service",
|
"email_from": "created.service",
|
||||||
@@ -495,7 +495,7 @@ def test_create_service_should_create_annual_billing_for_service(
|
|||||||
"name": "created service",
|
"name": "created service",
|
||||||
"user_id": str(sample_user.id),
|
"user_id": str(sample_user.id),
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"email_from": "created.service",
|
"email_from": "created.service",
|
||||||
@@ -520,7 +520,7 @@ def test_create_service_should_raise_exception_and_not_create_service_if_annual_
|
|||||||
"name": "created service",
|
"name": "created service",
|
||||||
"user_id": str(sample_user.id),
|
"user_id": str(sample_user.id),
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"email_from": "created.service",
|
"email_from": "created.service",
|
||||||
@@ -557,7 +557,7 @@ def test_create_service_inherits_branding_from_organization(
|
|||||||
"name": "created service",
|
"name": "created service",
|
||||||
"user_id": str(sample_user.id),
|
"user_id": str(sample_user.id),
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"email_from": "created.service",
|
"email_from": "created.service",
|
||||||
@@ -576,7 +576,7 @@ def test_should_not_create_service_with_missing_user_id_field(notify_api, fake_u
|
|||||||
"email_from": "service",
|
"email_from": "service",
|
||||||
"name": "created service",
|
"name": "created service",
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"created_by": str(fake_uuid),
|
"created_by": str(fake_uuid),
|
||||||
@@ -597,7 +597,7 @@ def test_should_error_if_created_by_missing(notify_api, sample_user):
|
|||||||
"email_from": "service",
|
"email_from": "service",
|
||||||
"name": "created service",
|
"name": "created service",
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"user_id": str(sample_user.id),
|
"user_id": str(sample_user.id),
|
||||||
@@ -623,7 +623,7 @@ def test_should_not_create_service_with_missing_if_user_id_is_not_in_database(
|
|||||||
"user_id": fake_uuid,
|
"user_id": fake_uuid,
|
||||||
"name": "created service",
|
"name": "created service",
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"created_by": str(fake_uuid),
|
"created_by": str(fake_uuid),
|
||||||
@@ -666,7 +666,7 @@ def test_should_not_create_service_with_duplicate_name(
|
|||||||
"name": sample_service.name,
|
"name": sample_service.name,
|
||||||
"user_id": str(sample_service.users[0].id),
|
"user_id": str(sample_service.users[0].id),
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"email_from": "sample.service2",
|
"email_from": "sample.service2",
|
||||||
@@ -694,7 +694,7 @@ def test_create_service_should_throw_duplicate_key_constraint_for_existing_email
|
|||||||
"name": service_name,
|
"name": service_name,
|
||||||
"user_id": str(first_service.users[0].id),
|
"user_id": str(first_service.users[0].id),
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"email_from": "first.service",
|
"email_from": "first.service",
|
||||||
@@ -1220,7 +1220,7 @@ def test_default_permissions_are_added_for_user_service(
|
|||||||
"name": "created service",
|
"name": "created service",
|
||||||
"user_id": str(sample_user.id),
|
"user_id": str(sample_user.id),
|
||||||
"message_limit": 1000,
|
"message_limit": 1000,
|
||||||
"total_message_limit": 250000,
|
"total_message_limit": 100000,
|
||||||
"restricted": False,
|
"restricted": False,
|
||||||
"active": False,
|
"active": False,
|
||||||
"email_from": "created.service",
|
"email_from": "created.service",
|
||||||
|
|||||||
Reference in New Issue
Block a user