mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
add devcontainer configs and docker network orchestration
This commit is contained in:
@@ -25,18 +25,18 @@ def upgrade():
|
||||
password = hashpw(str(uuid.uuid4()))
|
||||
op.get_bind()
|
||||
user_insert = """INSERT INTO users (id, name, email_address, created_at, failed_login_count, _password, mobile_number, state, platform_admin)
|
||||
VALUES ('{}', 'Notify service user', 'notify-service-user@digital.cabinet-office', '{}', 0,'{}', '+441234123412', 'active', False)
|
||||
VALUES ('{}', 'Notify service user', 'testsender@dispostable.com', '{}', 0,'{}', '+441234123412', 'active', False)
|
||||
"""
|
||||
op.execute(user_insert.format(user_id, datetime.utcnow(), password))
|
||||
service_history_insert = """INSERT INTO services_history (id, name, created_at, active, message_limit, restricted, research_mode, email_from, created_by_id, reply_to_email_address, version)
|
||||
VALUES ('{}', 'Notify service', '{}', True, 1000, False, False, 'notify@digital.cabinet-office.gov.uk',
|
||||
'{}', 'notify@digital.cabinet-office.gov.uk', 1)
|
||||
VALUES ('{}', 'Notify service', '{}', True, 1000, False, False, 'testsender@dispostable.com',
|
||||
'{}', 'testsender@dispostable.com', 1)
|
||||
|
||||
"""
|
||||
op.execute(service_history_insert.format(service_id, datetime.utcnow(), user_id))
|
||||
service_insert = """INSERT INTO services (id, name, created_at, active, message_limit, restricted, research_mode, email_from, created_by_id, reply_to_email_address, version)
|
||||
VALUES ('{}', 'Notify service', '{}', True, 1000, False, False, 'notify@digital.cabinet-office.gov.uk',
|
||||
'{}', 'notify@digital.cabinet-office.gov.uk', 1)
|
||||
VALUES ('{}', 'Notify service', '{}', True, 1000, False, False, 'testsender@dispostable.com',
|
||||
'{}', 'testsender@dispostable.com', 1)
|
||||
"""
|
||||
op.execute(service_insert.format(service_id, datetime.utcnow(), user_id))
|
||||
user_to_service_insert = """INSERT INTO user_to_service (user_id, service_id) VALUES ('{}', '{}')"""
|
||||
|
||||
@@ -17,7 +17,7 @@ import sqlalchemy as sa
|
||||
def upgrade():
|
||||
op.execute("""
|
||||
UPDATE users
|
||||
SET email_address = 'notify-service-user@digital.cabinet-office.gov.uk'
|
||||
SET email_address = 'testsender@dispostable.com'
|
||||
WHERE email_address = 'notify-service-user@digital.cabinet-office'
|
||||
""")
|
||||
|
||||
@@ -26,5 +26,5 @@ def downgrade():
|
||||
op.execute("""
|
||||
UPDATE users
|
||||
SET email_address = 'notify-service-user@digital.cabinet-office'
|
||||
WHERE email_address = 'notify-service-user@digital.cabinet-office.gov.uk'
|
||||
WHERE email_address = 'testsender@dispostable.com'
|
||||
""")
|
||||
|
||||
@@ -64,7 +64,7 @@ It’s only an emergency if:
|
||||
* a 500 response code appears when you try to send messages using the API
|
||||
|
||||
If you have one of these emergencies, email details to:
|
||||
ooh-gov-uk-notify-support@digital.cabinet-office.gov.uk
|
||||
testsender@dispostable.com
|
||||
|
||||
^Only use this email address for out of hours emergencies. Don’t share this address with people outside of your team.
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ def upgrade():
|
||||
INSERT INTO service_email_reply_to
|
||||
(id, service_id, email_address, is_default, created_at)
|
||||
VALUES
|
||||
('{}','{}', 'notify+1@digital.cabinet-office.gov.uk', 'f', NOW())
|
||||
('{}','{}', 'testsender@dispostable.com', 'f', NOW())
|
||||
""".format(EMAIL_REPLY_TO_ID, NOTIFY_SERVICE_ID))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user