Chris Hill-Scott
96aac519cc
Extend user client to count users with permission
...
One of the things we need to know for a service to go live is whether
they have at least two users with the ‘manage service’ permission.
So this commit adds a method to the client to count how many users have
a given permission. We can do logic on this count later. But having the
counting done in the client feels like a cleaner separation of concerns.
Meant some refactoring of the way `service_id` is extracted from the
request, in order to make it easier to mock.
2018-02-26 08:53:45 +00:00
Chris Hill-Scott
56833b1d10
Add test for existing get users client method
...
Want to make sure it’s doing what I expect before I build another method
that calls through to it.
2018-02-26 08:53:45 +00:00
Chris Hill-Scott
52241b8f3e
Use client from app in tests
...
Means we don’t have to instantiate it in every test, keeps things
consistent with parent commit.
2018-02-09 15:04:52 +00:00
Chris Hill-Scott
1908e7b091
Tell API what URL to use for email auth links
...
So that we can keep people on the prototype URL when doing user
research.
Depends on:
- [ ] https://github.com/alphagov/notifications-api/pull/1645
2018-02-09 15:01:20 +00:00
Leo Hemsted
fcefd2a80c
pass in data to posts
2017-11-09 15:02:59 +00:00
Leo Hemsted
2f37b00989
use active-endpoint
2017-11-09 14:58:44 +00:00
Leo Hemsted
b9eca67b0d
Revert "use new activate endpoint"
2017-11-09 14:55:08 +00:00
Leo Hemsted
7b0fcf8c08
use active-endpoint
2017-11-09 14:37:33 +00:00
Imdad Ahad
7ad56df78b
Change user api client to update password with new endpoint
2017-02-07 13:31:46 +00:00
Imdad Ahad
f3ca33dad3
Revert original update user method and add new attribute update (with strict checking)
2016-11-09 15:06:02 +00:00
Leo Hemsted
5bd90bba64
make test folder structure align with app folder structure
2016-07-15 15:23:40 +01:00