Tags: HydrologicEngineeringCenter/cwms-python
Tags
Add Additional Args for Store Multiple TS Function (#276) * Ensure we expose the multi thread option and enable store_multi_ts to handle needed params * Update the multi ts tests to include the new kwargs * Patch bump * Set multithread default to true
Add ALL Methods for Users Endpoints (#268) * 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 <[email protected]>
Http Error Hint Additions + Blob Test Fixes (#246) * Add 401 and ensure status code and hint are always returned for errors * Patch bump * Forgot to install black precommit locally on this system * Make 401 clear and give response text * Correct for empty response/ 400s * Handle excel response process * Ensure correct mime_type is sent even if OS does not have it in guess_types * Correct issue for tests with static json response in hint in favor of getattr
PreviousNext