Optionally support the removal of instances tags within returned metadata #189
Labels
enhancement
New feature or request
stalebot-ignore
To NOT let stalebot update or close the Issue / PR
Describe the feature
It would be great if the mock could simulate the optional inclusion of instances tags within the returned metadata. To ensure backwards compatibility, the proposal would be to include a flag for omitting the inclusion of instance tags,
--exclude-instance-tags
. In doing so, the mock would need to respond in the same way as the real IMDS service by returning a404
upon any request to the/tags
instance category.Bizarrely if you curl IMDS using the
/tags/instance
path, you get a200
and a blank response. So I guess this behaviour will need to be also mimicked.Is the feature request related to a problem?
It is an enhancement to better align the mock with the real IMDS service. It also expands the possible testing use cases
Describe alternatives you've considered
Alternative solutions for me would be to use a hybrid approach in my testing, which is cumbersome.
The text was updated successfully, but these errors were encountered: