From 7889a9ecca726fb5f8c15b4f9bc903ea739f195f Mon Sep 17 00:00:00 2001 From: Ruixin Date: Fri, 28 Jul 2017 14:32:39 +0000 Subject: [PATCH] fixup! Deployment: add endoflife --- tests/vmcheck/test-basic.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/vmcheck/test-basic.sh b/tests/vmcheck/test-basic.sh index afe1d1a2b1..af80124c53 100755 --- a/tests/vmcheck/test-basic.sh +++ b/tests/vmcheck/test-basic.sh @@ -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"