Martyn Inglis
4b60c8dada
Fixed faoiling jenkins tests. Mocked the required functions
2017-03-23 15:05:56 +00:00
Martyn Inglis
1c154c4113
Reinstating the 2 task model for API submitted notifications.
...
This is being done for the PaaS migration to allow us to keep traffic coming in whilst we migrate the database.
uses the same tasks as the CSV uploaded notifications. Simple changes to not persist the notification, and call into a different task.
2017-03-23 14:41:00 +00:00
Andras Ferencz-Szabo
5fcc80c7be
Merge pull request #864 from alphagov/paas_production
...
Paas production
2017-03-21 15:29:28 +00:00
bandesz
bacce90ac2
PaaS run script: redirect stderr to stdout
2017-03-21 15:03:03 +00:00
bandesz
974b59a5b7
Add 'production' alias for live environment
2017-03-21 14:43:56 +00:00
Rebecca Law
a4bb1f1f33
Merge pull request #861 from alphagov/secure-endpoints
...
Secure endpoints
2017-03-20 14:59:52 +00:00
Rebecca Law
34412eda9e
Merge pull request #863 from alphagov/create-dvla-file
...
Added logging for any exception thrown in build_dvla_file
2017-03-17 17:37:17 +00:00
Rebecca Law
8225a57d50
reformat execption
2017-03-17 16:57:00 +00:00
Rebecca Law
d831447329
re-raise execption
2017-03-17 16:33:51 +00:00
Rebecca Law
a0ec8af7c9
Added logging for any exception thrown in build_dvla_file
2017-03-17 16:25:27 +00:00
Rebecca Law
37293b6c7a
Added a test to ensure that all blueprints have a registered before_request method.
...
Added a test for the status endpoint.
2017-03-17 16:21:41 +00:00
Rebecca Law
ad9effbe6e
Merge pull request #862 from alphagov/create-dvla-file
...
Update statsd decorator so that it will log on error.
2017-03-17 14:57:59 +00:00
Rebecca Law
26576622b1
Only record the statsd timing on success.
2017-03-17 13:33:57 +00:00
Rebecca Law
f01760f6e6
Update statsd decorator so that it will log on error.
...
Added logging for the build_dvla_file task
2017-03-17 12:38:24 +00:00
Rebecca Law
e4e7a99f40
Merge branch 'master' into secure-endpoints
...
Conflicts:
app/__init__.py
2017-03-17 10:24:12 +00:00
Rebecca Law
502191f500
Merge pull request #860 from alphagov/create-dvla-file
...
Create dvla file for a letter job
2017-03-17 10:21:46 +00:00
Rebecca Law
d090451dd8
Update code as per review comment.
2017-03-17 10:01:28 +00:00
Rebecca Law
78242812ef
Register a before_request event for all blueprints, that defines the authentication requirement.
...
There are three authentication methods:
- requires_no_auth - public endpoint that does not require an Authorisation header
- requires_auth - public endpoints that need an API key in the Authorisation header
- requires_admin_auth - private endpoint that requires an Authorisation header which contains the API key for the defined as the client admin user
2017-03-16 18:15:49 +00:00
bandesz
c032ea5eee
PaaS rollback: check if the rollback app is in a started state
2017-03-16 12:33:10 +00:00
Rebecca Law
f880604c85
First attempt at securing the endpoints.
...
Started with adding a before_request event to the service_blueprint, which executes the requires_admin_auth method rather than the require_auth method.
Obviously this is not done but want to get this in front of people to get an opinion.
2017-03-16 10:42:45 +00:00
Rebecca Law
4e48676607
Remove comment
2017-03-15 17:08:27 +00:00
Rebecca Law
13d1016982
Forgot to make the id unique
2017-03-15 17:07:52 +00:00
Rebecca Law
fd00351ad2
Testing out adding a admin authentication requirement per blueprint.
2017-03-15 16:52:44 +00:00
kentsanggds
bcaed2ac73
Merge pull request #856 from alphagov/add-v2-template-get-id
...
Added v2 template get ID endpoint, schema & tests
2017-03-15 16:40:43 +00:00
Ken Tsang
ea8a3754a0
Updated schema to handle null updated_at
2017-03-15 15:48:28 +00:00
Rebecca Law
6e7482aaac
Increase max_retries for the task.
2017-03-15 15:42:52 +00:00
Rebecca Law
140179b4b6
Create new task to build dvla file.
...
This will transform each notification in a job to a row in a file.
The file is then uploaded to S3.
The files will later be aggregated by the notifications-ftp app to send to dvla.
The method to upload the file to S3 should be pulled into notifications-utils package.
It is the same method used in notifications-admin.
2017-03-15 15:26:58 +00:00
Ken Tsang
7558a7661a
Updated schema description
2017-03-15 09:19:56 +00:00
Ken Tsang
a596a1bb87
Refactored tests and get template endpoint
2017-03-14 17:51:30 +00:00
Ken Tsang
9e4b1b2bfc
Add schemas, endpoints and supporting tests
2017-03-14 15:40:38 +00:00
imdadahad
ac8e55628c
Merge pull request #859 from alphagov/tmp-add-logging-for-report-download-two
...
Add temporary logging where page size is above the config
2017-03-14 11:57:32 +00:00
Imdad Ahad
f213e08a4f
Add temporary logging where page size is above the config
2017-03-14 11:29:12 +00:00
Rebecca Law
ea4214c7d5
Added a jobs_dao method to answer if the all the notifications have been created in the database for the given job.
2017-03-14 10:50:09 +00:00
imdadahad
6d23dfde64
Merge pull request #858 from alphagov/revert-857-tmp-add-logging-for-report-download
...
Revert "Add temporary logging for job notifications' retrieval"
2017-03-13 17:23:19 +00:00
imdadahad
907862be2f
Revert "Add temporary logging for job notifications' retrieval"
2017-03-13 15:53:17 +00:00
imdadahad
05085982e0
Merge pull request #857 from alphagov/tmp-add-logging-for-report-download
...
Add temporary logging for job notifications' retrieval
2017-03-13 15:36:27 +00:00
Imdad Ahad
db97ff5b28
Log key pagination attrs and next download query params
2017-03-13 14:50:56 +00:00
bandesz
81522474ca
Decrease PaaS apps memory to 1G
2017-03-13 11:51:02 +00:00
Rebecca Law
28249fb4e2
Merge pull request #855 from alphagov/create-dvla-file
...
Add new job status for dvla file processing
2017-03-13 11:31:24 +00:00
Rebecca Law
ecb63a8008
Add new job status.
...
ready to send == we have created a dvla file in S3, the job id is in the file name
sent to dvla == we have created an aggregate dvla file to send for the day and have sent the file via sftp
2017-03-10 16:33:15 +00:00
Chris Hill-Scott
761ff86591
Merge pull request #853 from alphagov/ignore-additional-personalisation
...
Quietly ignore extra personalisation
2017-03-10 16:16:27 +00:00
imdadahad
c11f4b5d5d
Merge pull request #829 from alphagov/feat-add-endpoint-for-service-monthly-usage-stats
...
Add endpoint for service monthly usage stats by template
2017-03-09 16:12:22 +00:00
imdadahad
e3203316f5
Merge pull request #854 from alphagov/add-separate-schema-for-providers
...
Split schema for provider and provider history
2017-03-09 11:14:17 +00:00
Imdad Ahad
ed8dcf5fa1
Refactor schemas and add tests to ensure user is returned on provider schema
...
dump
2017-03-09 08:43:44 +00:00
Imdad Ahad
e42b15ac7a
Split schema for provider and provider history
2017-03-08 17:21:02 +00:00
imdadahad
7b110d9ae4
Merge pull request #851 from alphagov/feat-add-who-updated-providers
...
Store who updated providers
2017-03-08 16:23:44 +00:00
Rebecca Law
a684ab5544
Merge pull request #852 from alphagov/receive-sms-messages
...
Initial creation of the endpoint to receive sms messages
2017-03-08 15:10:51 +00:00
Rebecca Law
51ab7a5dbf
Change log message
2017-03-08 14:40:12 +00:00
Imdad Ahad
a4dc614ef7
Restore dao_create_template and use custom template fixture instead
2017-03-08 13:03:44 +00:00
Imdad Ahad
36d52c6e42
Add template type to response and refactor
2017-03-08 12:01:38 +00:00