ref: refs/heads/master
commit 07e292915928a2e0db23eb4f737af60ce1a04fcb
Author: Michael Andres
Date: Mon Nov 30 18:09:24 2009 +0100
testcase updated
---
tests/parser/ProductFileReader_test.cc | 2 ++
tests/parser/ProductFileReader_test.dat | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
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
<name>openSUSE_11.1</name>
<summary>openSUSE 11.1</summary>
<repository>http://download.opensuse.org/distribution/openSUSE/11.1</repository>
+ <product>used on entreprise products</product>
<notify>true</notify>
<status>stable</status>
</upgrade>
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org