-
Notifications
You must be signed in to change notification settings - Fork 454
IMDS Mock Server Testing #1108
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
IMDS Mock Server Testing #1108
Conversation
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.
I am not familiar with ctest fixtures. I left some questions, but this looks good overall.
I encountered an unexplained error running locally, and left a comment with the traceback.
build/cmake/LoadTests.cmake
Outdated
@@ -26,6 +26,12 @@ endif () | |||
# Split lines on newlines | |||
string (REPLACE "\n" ";" lines "${tests_out}") | |||
|
|||
# XXX: Allow individual test cases to specify the fixtures they want. |
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.
What does the XXX
mean?
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.
I've use this convention as a weaker form of "TODO
". Some editors will mark it as such an annotation. I'm fine to change it, since it isn't obvious what it means.
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.
TODO
, or another alternative may be preferable. This is the first I have seen of XXX
.
This is a follow-up to #1104. This changeset introduces automated testing of the IMDS server via CTest test fixtures. CTest will handle spawning and stopping the IMDS server as it is needed for executing tests. The
fake_azure.py
script was cleaned up for older Python compatibility in anticipation of sharing with other driver codebases and other platforms.