testcase updated
authorMichael Andres <ma@suse.de>
Mon, 30 Nov 2009 17:09:24 +0000 (18:09 +0100)
committerMichael Andres <ma@suse.de>
Mon, 30 Nov 2009 17:09:24 +0000 (18:09 +0100)
tests/parser/ProductFileReader_test.cc
tests/parser/ProductFileReader_test.dat

index 5cba770..3904883 100644 (file)
@@ -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" );
 }
index e57bc1d..3fe0033 100644 (file)
@@ -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>