Skip to content

Commit

Permalink
fixup! Deployment: add endoflife
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbaouoft committed Jul 28, 2017
1 parent 50afe9f commit 7889a9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/vmcheck/test-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ vm_cmd runuser -u bin rpm-ostree status
echo "ok status doesn't require active PAM session"

# Add metadata string containing EnfOfLife attribtue
META_ENDOFLIFE_MESSAGE="this_is_a_test"
META_ENDOFLIFE_MESSAGE="this is a test for metadata message"
commit=$(vm_cmd ostree commit -b vmcheck \
--tree=ref=vmcheck --add-metadata-string=ostree.endoflife=$META_ENDOFLIFE_MESSAGE)
--tree=ref=vmcheck --add-metadata-string=ostree.endoflife="${META_ENDOFLIFE_MESSAGE}")
vm_rpmostree upgrade
vm_assert_status_jq ".deployments[0][\"endoflife\"] == \"${META_ENDOFLIFE_MESSAGE}\""
echo "ok endoflife metadata gets parsed correctly"

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

0 comments on commit 7889a9e

Please sign in to comment.