Commit Graph

3422 Commits

Author SHA1 Message Date
Leo Hemsted
cfd51fbbed Merge pull request #1245 from alphagov/bcrypt
upgrade flask-bcrypt to 0.7.1
2017-09-11 16:22:14 +01:00
Rebecca Law
a507f74823 Merge pull request #1243 from alphagov/json-response-schema-validation
Small refactor to how notification_schemas are tested.
2017-09-11 16:06:32 +01:00
Leo Hemsted
43bda1ae2c upgrade flask-bcrypt to 0.7.1
this uses bcrypt directly rather than using the wrapper python-bcrypt.
WARNING! You'll need to update your local install by running:

```
pip uninstall python-bcrypt
pip install flask-bcrypt==0.7.1
```
2017-09-11 15:47:10 +01:00
Sakis
62f561c4d1 Merge pull request #1240 from alphagov/bump_utils
Bump notifications-utils version to 21.0.0
2017-09-11 11:17:56 +01:00
Athanasios Voutsadakis
4b88ec639f Remove * from logs matching pattern
Now we are only going to have one log file that we're interested in
2017-09-11 11:11:06 +01:00
Rebecca Law
0a21f1f3e8 Small refactor to how notification_schemas are tested.
My local build was not always getting the optional requirement for the jsonschema uri format checker (rfc3987).
The requirement has been added to the requirements_for_test file.
I changed the tests to validate the response schema from the post_notifications tests, this way we can tell if we are breaking the contract.
This showed that the email_from was not returning the entire email address but just the username, that has been corrected here.
Removed the response schema validation tests since they are not being testing in the post notification tests.
2017-09-11 11:10:45 +01:00
Athanasios Voutsadakis
2492061c63 Bump notifications-utils version to 21.0.0
This removes the PID from the log files
2017-09-08 16:12:47 +01:00
Imdad Ahad
3309325cd3 Merge pull request #1237 from alphagov/set-sender-on-new-table
[2/5] Upsert into ServiceReplyToEmail table when updating a service
2017-09-08 15:11:58 +01:00
Imdad Ahad
6d0ad75a60 Upsert to new email reply to table when updating a service 2017-09-08 14:56:05 +01:00
Katie Smith
01eef6c7f5 Add service_email_reply_to DAO with an upsert method 2017-09-08 14:56:05 +01:00
Imdad Ahad
1d01f4e447 Merge pull request #1233 from alphagov/imdad-migration-add-email-from
[1/5] Create new ServiceEmailReplyTo table
2017-09-08 14:22:22 +01:00
Imdad Ahad
fa6b8302b6 Merge pull request #1228 from alphagov/pyup-update-sqlalchemy-1.1.13-to-1.1.14
Update sqlalchemy to 1.1.14
2017-09-08 14:22:06 +01:00
Imdad Ahad
34683c7834 Merge pull request #1230 from alphagov/pyup-update-notifications-python-client-4.3.1-to-4.4.0
Update notifications-python-client to 4.4.0
2017-09-08 14:21:59 +01:00
Leo Hemsted
660083b7e7 Merge pull request #1234 from alphagov/pyup-update-pytest-3.2.1-to-3.2.2
Update pytest to 3.2.2
2017-09-08 11:54:09 +01:00
Leo Hemsted
65a89bbc59 Merge pull request #1235 from alphagov/pyup-update-moto-1.1.1-to-1.1.2
Update moto to 1.1.2
2017-09-08 11:54:00 +01:00
Leo Hemsted
febd7cced9 Merge pull request #1236 from alphagov/fix-test_performance_platform_config
Change test to use json loads so that the test will pass consistently
2017-09-08 11:53:51 +01:00
Rebecca Law
4f57f2c5a5 Change test to use json loads so that the test will pass consistently 2017-09-08 09:56:46 +01:00
pyup-bot
154c8a098e Update moto from 1.1.1 to 1.1.2 2017-09-07 20:18:15 +01:00
pyup-bot
772c03e2e5 Update pytest from 3.2.1 to 3.2.2 2017-09-07 18:58:14 +01:00
Imdad Ahad
d997eb3af9 Create ServiceEmailReplyTo table 2017-09-07 15:41:23 +01:00
Imdad Ahad
b85ff4e6a6 Update the alembic generator template to be PEP friendly 2017-09-07 15:41:04 +01:00
Rebecca Law
b02104c046 Merge pull request #1232 from alphagov/create-service_sms_senders
Create service sms senders
2017-09-07 12:11:48 +01:00
Rebecca Law
3b115cc79f Remove the or current_app['FROM_NUMBER'] since sms_sender is a required field. 2017-09-06 15:33:09 +01:00
pyup-bot
b0c8f13199 Update notifications-python-client from 4.3.1 to 4.4.0 2017-09-06 11:17:12 +01:00
Rebecca Law
86929fd6b6 Create a table for service_sms_senders.
Migration from inbound_number to service_sms_senders.
May need to pull out the migration into another PR.
2017-09-05 17:53:47 +01:00
pyup-bot
33becb9b72 Update sqlalchemy from 1.1.13 to 1.1.14 2017-09-05 17:38:17 +01:00
Leo Hemsted
3d2e788a4d Merge pull request #1226 from alphagov/backfill-perf-stats
Backfill perf stats
2017-09-05 16:55:43 +01:00
Rebecca Law
e32abb0ada Merge pull request #1221 from alphagov/ken-no-letters-when-trial
Stop letters when service is in trial
2017-09-05 15:33:50 +01:00
Katie Smith
dbeec6c88b Remove unused fixtures from tests 2017-09-05 11:50:39 +01:00
Rebecca Law
19f964a90b Added a check that the call is not using a test api key.
Removed the tests for trial mode service for the scheduled tasks and the process job.
Having the validation in the POST notification and create job endpoint is enough.
Updated the test_service_whitelist test because the order of the array is not gaurenteed.
2017-09-04 17:24:41 +01:00
Leo Hemsted
b2436b3e02 add command to application.py 2017-08-31 15:01:38 +01:00
Leo Hemsted
378b131c59 add batch task to backfill processing time data
give it a start date and an end date, and it'll send data to the
performance platform for all dates in that (inclusive)
2017-08-31 14:41:05 +01:00
Leo Hemsted
9fcd54c12b unindent old fn 2017-08-31 14:41:05 +01:00
Imdad Ahad
3f34f8fa3e Merge pull request #1222 from alphagov/get-performance-stats
Get performance stats
2017-08-31 14:17:42 +01:00
Imdad Ahad
96443f5d6e Combine test to query notifications within date range instead 2017-08-31 13:52:56 +01:00
Imdad Ahad
72de309b26 Make perf platform processing stats query the NotificationHistory table 2017-08-31 12:52:59 +01:00
Imdad Ahad
ea2f838510 Fix typo 2017-08-31 11:10:54 +01:00
Imdad Ahad
e39c202a01 Merge pull request #1195 from alphagov/imdad-refactor-remove-unused-billing-code
Remove unused billing usage code
2017-08-31 10:39:12 +01:00
Ken Tsang
d391919677 Refactored to check trial when running scheduled job 2017-08-30 22:30:05 +01:00
Ken Tsang
225c85832c Refactored to update job status and not build dvla file 2017-08-30 16:04:10 +01:00
Ken Tsang
01830b7e59 Push letter job to research queue in research mode 2017-08-30 16:04:10 +01:00
Ken Tsang
ff860ec242 403 when creating a letter job in trial mode 2017-08-30 16:04:10 +01:00
Ken Tsang
7e70b44113 Error in task when letter template and in trial mode 2017-08-30 16:04:10 +01:00
Ken Tsang
41a71c703b Refactor test 2017-08-30 16:04:10 +01:00
Ken Tsang
8f82642422 Prevent v2 notifications POST when in trial mode 2017-08-30 16:04:10 +01:00
Katie Smith
49a6bfc06b Send '0', not 'null', to perf platform if no notifications are sent 2017-08-30 16:02:30 +01:00
Chris Hill-Scott
b346d5d173 Merge pull request #1219 from alphagov/international-sms-notify
Allow Notify service to send international sms
2017-08-30 15:53:19 +01:00
Chris Hill-Scott
2244ae8ccd Merge pull request #1218 from alphagov/pyup-update-flask-migrate-2.1.0-to-2.1.1
Update flask-migrate to 2.1.1
2017-08-30 15:53:03 +01:00
Chris Hill-Scott
9716172164 Merge pull request #1217 from alphagov/pyup-update-psycopg2-2.7.3-to-2.7.3.1
Update psycopg2 to 2.7.3.1
2017-08-30 15:52:55 +01:00
Chris Hill-Scott
6fc645cd55 Merge pull request #1220 from alphagov/pyup-update-boto3-1.4.6-to-1.4.7
Update boto3 to 1.4.7
2017-08-30 15:52:48 +01:00