John-Mark Gurney
66757740c6
normalize errors, and use a global var for board manager...
I cannot figure out how to make this work w/ dep injection
due to needing to use asyncio to do DB accesses... This will
work reliably, and is easy to understand...
4 years ago
John-Mark Gurney
474ff60901
add standard args, and increase timeout to 20, as the default of 5 is
too short for startup/teardown..
4 years ago
John-Mark Gurney
5fc747a9d4
Document what ORM we use, and how to manually manipulate data..
4 years ago
John-Mark Gurney
c81261af12
add logging when the release script fails...
4 years ago
John-Mark Gurney
efe0bd2177
add support to the client for setting attributes..
4 years ago
John-Mark Gurney
d7c38c1c3c
implement updating of board attributes...
4 years ago
John-Mark Gurney
cce8384d3c
the type is internal to this class...
4 years ago
John-Mark Gurney
55620d1f26
move the database tests to the respective file...
4 years ago
John-Mark Gurney
285acdae01
move the main client to __main__..
it'll be getting more complex soon, and I'm trying to simplify __init__
4 years ago
John-Mark Gurney
569a688ebf
add code for snmpset
4 years ago
John-Mark Gurney
b162960603
limit what gets imported when importing *
4 years ago
John-Mark Gurney
05cdde6969
pull the SNMP tests directly instead of indirect...
4 years ago
John-Mark Gurney
069312de52
add missing Copyright statement..
4 years ago
John-Mark Gurney
12a6162d4b
refactor things a bit.. break out from one large file..
4 years ago
John-Mark Gurney
1fedb30959
refactor code a bit, break things out, and make a static function global
4 years ago
John-Mark Gurney
fd506c5b64
Only make the environment if it doesn't exist..
4 years ago
John-Mark Gurney
f185c3a39e
handle that subprocess_exec takes/returns bytes...
4 years ago
John-Mark Gurney
7dfa0973f5
add notes on things that are known issues that will take some work
to fix..
4 years ago
John-Mark Gurney
f5f9966430
make sure we get the output from the setup script..
4 years ago
John-Mark Gurney
ccfc232d67
sort attributes... properly post for reserve, and add release support...
genericize error handling for the CLI...
4 years ago
John-Mark Gurney
fd750987cd
have the CLI handle auth errors... enforce proper return values...
properly close the httpx client...
marking get_data no cover was bad, had a bug in this, need to get
coverage..
4 years ago
John-Mark Gurney
a23705327a
add missing comma... this causes issue as they get concatenated together
4 years ago
John-Mark Gurney
0d16204436
add FreeBSD Foundation copyright
4 years ago
John-Mark Gurney
1ef71d4561
add tests for running script at reserve/release
4 years ago
John-Mark Gurney
3b8ef85052
add starting point of UI...
4 years ago
John-Mark Gurney
0007ed5dfb
prepare for making a client available...
4 years ago
John-Mark Gurney
f5e318ea25
implement basic reserve/release... need to call the functions to
implement them... add warning about other databases...
4 years ago
John-Mark Gurney
cfcb417eba
add comments and name functions correct.. get ready for reserving a board...
4 years ago
John-Mark Gurney
5586a6132b
change the paths to be a bit more hierarchical
4 years ago
John-Mark Gurney
39e9ced170
add snmpget routines, and basic power status fetching..
4 years ago
John-Mark Gurney
f8a0dd2790
add an BoardImpl that will contain the implementation...
wrap lines to 80 cols
4 years ago
John-Mark Gurney
7260db1d6b
make sure a bad api key is unauthorized
4 years ago
John-Mark Gurney
c2e59e761f
switch to using an sqlite db instead of flat file...
it'll make other parts of the system easier to manage having
this infrastructure in place...
4 years ago
John-Mark Gurney
0b5546dd8e
Initial work on the API for the lab...
This gets the basic framework together, and testing infrastructure.
Basic bearer authentication is implemented and working.
4 years ago