Nicholas Staples
2d35f5f36a
All tests passing and merged with master.
2016-01-27 16:30:33 +00:00
NIcholas Staples
8ff5ee9ffb
Merge pull request #113 from alphagov/real-templates
...
Use real templates when sending text messages
2016-01-27 12:24:52 +00:00
Nicholas Staples
6959d695d3
Working tests, hopefully all code changes done.
2016-01-27 12:22:32 +00:00
Chris Hill-Scott
3a864ad132
Use real templates when sending text messages
...
Sets the value of `template` to the ID of the chosen template when submitting
the form.
2016-01-26 17:17:46 +00:00
Chris Hill-Scott
a6d19ff45b
Show correct default state on service settings page
...
By default a service should be active (ie keys not suspended). For some reason
the API is returning the opposite.
This commit reverses the logic to make it look right for hack day.
2016-01-26 17:16:24 +00:00
Adam Shimali
b394a18b4e
Incrementing of failed logins happens on api side
2016-01-26 12:36:05 +00:00
NIcholas Staples
d89174f322
Merge pull request #108 from alphagov/test-cleanup
...
Test cleanup
2016-01-26 10:53:49 +00:00
Chris Hill-Scott
46a7410839
Add test for template page repopulation
...
A bug was found whereby the body of a template was not being shown in the
on the page when returning to edit an existing template. This bug was caused
by renaming the field in some places, but not in the `Form` class.
This bug has since been fixed, but this commit adds a test to make sure that it
doesn’t happen again.
2016-01-25 07:20:13 +00:00
Adam Shimali
3d14296ae0
Re introduced some tests. Moved update email from db to api.
2016-01-24 15:00:50 +00:00
Adam Shimali
4674bd6b68
Reintroduce some tests. A bit of cleanup of mocks.
...
User object fields made a bit clearer and simple test to
verify user added.
2016-01-23 23:14:50 +00:00
Adam Shimali
ba0d0d49e1
Fixed tests
2016-01-22 19:32:08 +00:00
Adam Shimali
f8fc8e951a
If user is logged in and visits / /sign-in or /register they will
...
be redirected to choose service.
2016-01-22 17:24:14 +00:00
Rebecca Law
6ef9becf8f
Able to get services by user id
2016-01-22 16:46:59 +00:00
Nicholas Staples
96d38b8189
Added check for password on service change page, work in progress.
2016-01-22 16:34:36 +00:00
Chris Hill-Scott
396f8415c6
SKIRMISH MODE
2016-01-22 14:51:01 +00:00
Chris Hill-Scott
9ee8610da0
Rename content to template content
...
WTForms sets the `id` of a `textarea` element to the variable name to which the
form control is assigned.
This conflicts with the page container, which is styled by targeting `#content`.
2016-01-22 14:51:00 +00:00
Rebecca Law
61893c5c7e
Validation on key name is case insenstive
2016-01-21 16:52:01 +00:00
Rebecca Law
81a5164fa5
Fix test to use mock_api_user
2016-01-21 15:56:08 +00:00
Rebecca Law
46e0e3fd1b
Merge branch 'master' into api-keys-flow
...
Conflicts:
tests/app/main/views/test_api_keys.py
2016-01-21 15:50:00 +00:00
Rebecca Law
e7713a8b7f
Added a validator so that the key name is unique per service.
2016-01-21 14:15:36 +00:00
Rebecca Law
2b24909ca6
Fix tests for to use mock user for login
2016-01-21 12:43:11 +00:00
Rebecca Law
8737edfad1
Merge branch 'master' of github.com:alphagov/notifications-admin into api-keys-flow
...
Conflicts:
tests/app/main/views/test_api_keys.py
2016-01-21 12:31:28 +00:00
Adam Shimali
167c7b0f13
Fixed some tests. Some broken mocked tests commented out until later
2016-01-21 12:31:09 +00:00
Rebecca Law
90fca93308
Implementation of api key pages.
...
Revoke page will show the correct key name
Show api keys shows a well formatted expiry date
Fix tests for api key endpoints.
2016-01-21 12:28:05 +00:00
Adam Shimali
ee23df2c73
some tests fixed
2016-01-21 12:12:06 +00:00
Adam Shimali
856b6adb56
First slice full sign in flow
2016-01-21 11:33:53 +00:00
Rebecca Law
41c775cd68
Created api_key_api_client.
...
Implementation of create, revoke and show api keys for service.
These calls work, however we still need to fix the tests.
2016-01-20 17:32:55 +00:00
Adam Shimali
4e28410794
Temporarily comment out tests that are timing out until mocking sorted
2016-01-20 17:24:17 +00:00
Adam Shimali
7af53761d9
fixed some mocks in test
2016-01-20 16:36:06 +00:00
Chris Hill-Scott
9784a9936c
Add pages for create/view/revoke API keys
...
Copying what they’ve done on GOV.UK Pay, we should let users:
- generate as many keys as they want
- only see the key at time of creation
- give keys a name
- revoke any key at any time (this should be a one way operation)
And based on discussions with @minglis and @servingUpAces, the keys should be
used in conjunction with some kind of service ID, which gets encrypted with the
key. In other words the secret itself never gets sent over the wire.
This commit adds the UI (but not the underlying API integration) for doing the
above.
2016-01-20 16:22:23 +00:00
Adam Shimali
fcedae5fe1
Merge conflicts and test fixes
2016-01-20 15:40:06 +00:00
Adam Shimali
ca3d3240a6
Verify activate and login user with sms and email code
2016-01-20 15:34:42 +00:00
Nicholas Staples
75d7110642
Updated to send email through the client send_email.
2016-01-20 14:45:50 +00:00
Adam Shimali
422b1fb5c2
uncomment accidentally commented out tests
2016-01-20 09:43:38 +00:00
Adam Shimali
b5cdf86b40
User registration now creates user via api.
...
Verification flow is still to be completed.
Foreign key constraint on verify codes to user table removed.
2016-01-19 22:49:46 +00:00
Nicholas Staples
f6f4fe15b2
Merge with master.
2016-01-19 16:35:52 +00:00
Adam Shimali
c86b53f7f1
Add user via api
...
Leave original user object in for this slice. Remove on next
2016-01-19 16:07:44 +00:00
Nicholas Staples
cfb3f96b01
Mapped template actions to the api and mocked tests.
2016-01-19 15:54:12 +00:00
Chris Hill-Scott
ba0c9ac6c1
Remove placeholder logs of notifications sent
...
From the:
- dashboard
- activity page
This info will be confusing for users at the hack day, because it will say
they’ve already sent messages when they first sign up.
This involved changing the table macro to have a nice ‘no rows’ message.
2016-01-19 12:04:18 +00:00
Nicholas Staples
a9fead0d82
Merge with master.
2016-01-19 09:49:01 +00:00
Nicholas Staples
609f5f0a8d
Working service integration.
2016-01-18 17:35:28 +00:00
Nicholas Staples
6e19dd7c9c
Added choose_service using services_dao.
2016-01-18 16:01:04 +00:00
Nicholas Staples
a09ac6cbf5
Added choose_service using services_dao.
2016-01-18 11:15:14 +00:00
Chris Hill-Scott
81d4230b61
Page for adding a new service
...
This page is exactly the same as the page for adding your first service, save
the heading text.
So all this commit does is:
- set up two routes (`/add-service`, `/add-service/first`) for each of the two
journeys and change the existing journeys to use the `/add-service/first`
route
- add logic to show different heading text depending on the journey
- add a link to the new (`/add-service`) route in the service chooser dropdown
2016-01-18 11:03:25 +00:00
Chris Hill-Scott
f3459847f1
Move view function into own file, add test
2016-01-16 12:31:01 +00:00
Nicholas Staples
4e2019c949
Work in progress, all tests passing and implemented mocks for services_dao.
2016-01-15 17:46:09 +00:00
Nicholas Staples
262bbbac45
Test add service completed.
2016-01-15 16:10:24 +00:00
Nicholas Staples
3b1d521c10
Tests added for dao.
2016-01-15 15:15:35 +00:00
Adam Shimali
494e49ee45
Changed flow to upload directly to s3 if non empty file.
...
Then on check page file read back from s3 and checked.
2016-01-14 16:07:06 +00:00
Nicholas Staples
d42ee85f93
Added new notification-python-client removed check on old one, fixed tests, live service will be broken.
2016-01-14 14:55:07 +00:00