-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Move to query package #290
Conversation
Replace openstack query to use new package
Remove openstack_query files from lib and respective unit tests, these are now in a dedicated repository, stfc/openstack-query-library
2f983a0
to
1062dc8
Compare
Fix broken import in test Change naming to be consistant Update links in docs
1062dc8
to
aeebed9
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #290 +/- ##
==========================================
- Coverage 98.24% 97.68% -0.57%
==========================================
Files 239 135 -104
Lines 9028 4875 -4153
Branches 529 266 -263
==========================================
- Hits 8870 4762 -4108
+ Misses 137 102 -35
+ Partials 21 11 -10 ☔ View full report in Codecov by Sentry. |
Bump query library version to v0.1.3
Bump query library version to v0.1.4
e4a734d
to
798a31a
Compare
Update HypervisorSate enum so it's easier to understand and use Refactor check valid sate into separate function Return HypervisorState instead of string from get_hypervisor_state Update tests Update to work with new version of query library
798a31a
to
5363a77
Compare
Add new server query to find number of servers on a hypervisor
81397f6
to
8a78c64
Compare
Change current state to use the name of hypervisorstate enum as expected
8a78c64
to
d964134
Compare
|
||
|
||
def test_get_state_unkown_status(): | ||
""" | ||
Test hypervisor state is unknown when missing status | ||
""" | ||
hypervisor = { | ||
"hypervisor_uptime": "13:37:30 up 100 days, 4:29, 19 users, load average: 0.04, 0.04, 0.0", | ||
"hypervisor_uptime_days": 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an upper and/or lower limit to this or can it be any amount of days?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the value return by the hypervisor for time since its last update so has no upper limit, I guess the lower limit is 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool cool, was just wondering if there was a test case for 0 or an upper limit if it existed.
Remove line about query library development
Description:
Query Library has been moved to its own dedicated repository: https://github.com/stfc/openstack-query-library
This PR removes the query library directories and changes the stackstorm workflows to use the new package from the query library repository
Special Notes:
Submitter:
Have you (where applicable):
Reviewer
Does this PR:
lib
directory?lib
layers?