From: Michael Andres Date: Mon, 30 Nov 2009 17:09:24 +0000 (+0100) Subject: testcase updated X-Git-Tag: 6.25.0~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07e292915928a2e0db23eb4f737af60ce1a04fcb;p=platform%2Fupstream%2Flibzypp.git testcase updated --- diff --git a/tests/parser/ProductFileReader_test.cc b/tests/parser/ProductFileReader_test.cc index 5cba770..3904883 100644 --- a/tests/parser/ProductFileReader_test.cc +++ b/tests/parser/ProductFileReader_test.cc @@ -26,12 +26,14 @@ BOOST_AUTO_TEST_CASE(basic) BOOST_CHECK_EQUAL( data.upgrades()[0].name(), "openSUSE_11.1" ); BOOST_CHECK_EQUAL( data.upgrades()[0].summary(), "openSUSE 11.1" ); BOOST_CHECK_EQUAL( data.upgrades()[0].repository(), "http://download.opensuse.org/distribution/openSUSE/11.1" ); + BOOST_CHECK_EQUAL( data.upgrades()[0].product(), "used on entreprise products" ); BOOST_CHECK_EQUAL( data.upgrades()[0].notify(), true ); BOOST_CHECK_EQUAL( data.upgrades()[0].status(), "stable" ); BOOST_CHECK_EQUAL( data.upgrades()[1].name(), "openSUSE_Factory" ); BOOST_CHECK_EQUAL( data.upgrades()[1].summary(), "openSUSE Factory" ); BOOST_CHECK_EQUAL( data.upgrades()[1].repository(), "http://download.opensuse.org/distribution/openSUSE/Factory" ); + BOOST_CHECK_EQUAL( data.upgrades()[1].product(), "" ); BOOST_CHECK_EQUAL( data.upgrades()[1].notify(), false ); BOOST_CHECK_EQUAL( data.upgrades()[1].status(), "unstable" ); } diff --git a/tests/parser/ProductFileReader_test.dat b/tests/parser/ProductFileReader_test.dat index e57bc1d..3fe0033 100644 --- a/tests/parser/ProductFileReader_test.dat +++ b/tests/parser/ProductFileReader_test.dat @@ -23,6 +23,7 @@ This is the Server product of the SUSE Linux Enterprise edition. It is an altern openSUSE_11.1 openSUSE 11.1 http://download.opensuse.org/distribution/openSUSE/11.1 + used on entreprise products true stable