-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds client class for KeystoneApi (#240)
* Start on building a usage table with info from keystone instead of crc-bank * utility functions for interacting with keystone * pull function for getting allocations by primary key * add requests * verify provided slurm account against keystone as well as slurm * properly handle dates and pretty table rows * split output into summary and usage tables, keep track of per cluster usage * PEP fixes and comments * Update crc_sus.py Output remaining SUs on each clsuter using keystone requests and sreport * adjustments from meeting * filter on active and expiration date in request for allocations * add and move slurm functions for gathering usage data into utils.system_info * move slurm functions out of utils.keystone * add usage table setup * small fix with field_names * fix imports, use account_name in checking for whether slurm account exists * fix adding total to out_data * clean up usage output formatting * small formatting changes to crc_sus * formatting adjustment * add request primary key as query param for requests * use cluster totals instead of allocation totals, other review items * use request pk when gathering allocations * use check_slurm_account_exists * working state for crc-sus and crc-usage * fix crc_usage test that wa failing * pull duplicate functionality for running subprocesses * small typo in crc_usage test string * crc-proposal-end (#232) * Update crc_proposal_end.py Added authentication procedure * Update crc_proposal_end.py * Update crc_proposal_end.py * Update crc_proposal_end.py Updated requests with group_id * Update crc_proposal_end.py Update requests * working version of crc_proposal_end * remove unused imports --------- Co-authored-by: Nickolas Comeau <[email protected]> * fix expected output string * codacy / PEP8 items * pull crc-bank from dependencies * add prettytable to deps * needs to be an f string * fix conversion to percent that was broken * more broken division * Adds API client class * Minor doc updates * Adds support for multiple content types * Restores API class * Defines default API client settings --------- Co-authored-by: Comeani <[email protected]> Co-authored-by: chnixi <[email protected]>
- Loading branch information
1 parent
d08a662
commit fd454fc
Showing
1 changed file
with
224 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters