Skip to content

Commit

Permalink
fixup! Deployment: add endoflife
Browse files Browse the repository at this point in the history
A test is added for future regression
  • Loading branch information
peterbaouoft committed Jul 27, 2017
1 parent cc63bcb commit 26a380e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/vmcheck/test-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,15 @@ echo "ok layering requires root"
# Assert that we can do status as non-root
vm_cmd "runuser -u bin rpm-ostree status"
echo "ok status doesn't require root"

# Check EndOfLife parsing functionality
META_ENDOFLIFE_MESSAGE="this_is_a_test"
commit=$(vm_cmd ostree commit -b vmcheck \
--tree=ref=vmcheck --add-metadata-string=ostree.endoflife=$META_ENDOFLIFE_MESSAGE)
vm_rpmostree upgrade
vm_assert_status_jq ".deployments[0][\"endoflife\"] == \"${META_ENDOFLIFE_MESSAGE}\""

# Build a layered commit and check if EndOfLife attribute still present
vm_build_rpm foo
vm_rpmostree install foo
vm_assert_status_jq ".deployments[0][\"endoflife\"] == \"${META_ENDOFLIFE_MESSAGE}\""

0 comments on commit 26a380e

Please sign in to comment.