Skip to content

v1.0.3: Add ALL Methods for Users Endpoints (#268)

Choose a tag to compare

@github-actions github-actions released this 13 Mar 19:25
2ec3c00
* Create users store/update user methods and expose them

* Create mock and CDA tests

* Create notebook example for users methods

* Remove user mock test

* Add other methods to users and make it more clear what the .get method is doing

* Allow the tests to pull our API keys and have the defaults from the users.sql baked in

* - Update test to include other methods
- q0hectest key works for normal data, but user-management
     endpoints require CWMS User Admins; l2hectest is a better
     default for these tests

* web perms container was not running because DB Healthcheck did not have a host/port

* Ensure files save as a specific end of line per the editor config

* If editor does not support saving with a specific eol, make sure it commits with that eol

* Ensure apikey does not bleed out into any stdouts

* Didn't mean to merge other branch in!

* Comment the roles so the coverage is more clear

* Add additional error types and make sure a message can be passed

* Capture the various error codes and wrap with a friendlier user message

* Give q0hectest admin over LRL, SPK, and MVP for users tests

* add a utility method for user error management

* Allow options for admin vs nonadmin api key env imports

* Add a test for friendly roles and a test to ensure roles being set, confirm admin role

* Fix typing error on user profile response

* Add a one-off user for a forbidden lookup test

* Remove debug statement with api key present

* Remove the other printout of the API key

* Fix new line in the docker compose

* Update docker-compose.yml

* Update 403 test key to non-admin user

* Patch bump

---------

Co-authored-by: Eric Novotny <eric.v.novotny@usace.army.mil>