test: add bootc_status to payload #1696
Open
+24
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allow adding hosts for testing with bootc_status information.
When using
make run_inv_mq_service_test_producer
, you can nowprovide the following environment variables to add
bootc_status
fields to the
system_profile
:BOOTC_BOOTED_IMAGE
BOOTC_STAGED_IMAGE
BOOTC_ROLLBACK_IMAGE
Example:
This will cause the payload to have a
bootc_status
field, andthe return value from an api query of system_profile will look like this:
The sha256 digest value is calculated from the image name, so that way the same image name
will have the same digest value.
Signed-off-by: Rich Megginson [email protected]