Mailinglist Archive: zypp-commit (232 mails)

< Previous Next >
[zypp-commit] <libzypp> master : testcase updated
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Mon, 30 Nov 2009 18:09:24 +0100
  • Message-id: <E1NF9o1-0003O5-J8@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 07e292915928a2e0db23eb4f737af60ce1a04fcb
Author: Michael Andres <ma@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages