X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fparser%2FRepoFileReader_test.cc;h=7f14cc03df6ff507242a446f30e69f9b3a958466;hb=b1beb1b072b979e151700e9267329918ec03010f;hp=28d7d5cf6fec149c9200760761ff8c4ee7803b48;hpb=e7df77d3f25679515f05aba52f358389f74de9af;p=platform%2Fupstream%2Flibzypp.git diff --git a/tests/parser/RepoFileReader_test.cc b/tests/parser/RepoFileReader_test.cc index 28d7d5c..7f14cc0 100644 --- a/tests/parser/RepoFileReader_test.cc +++ b/tests/parser/RepoFileReader_test.cc @@ -14,24 +14,18 @@ static string suse_repo = "[factory-oss]\n" "enabled=1\n" "autorefresh=0\n" "baseurl=http://download.opensuse.org/factory-tested/repo/oss/\n" -"baseurl=http://download.opensuse.org/factory-tested/repo/oss/2\n" -"plugin:spacewalk?channel=sle-manager-tools12-pool-x86_64-sp1&server=0\n" -"http://download.opensuse.org/factory-tested/repo/=oss/4\n" "type=yast2\n" "keeppackages=0\n"; static string fedora_repo = "[fedora]\n" "name=Fedora $releasever - $basearch\n" "failovermethod=priority\n" -"baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/\n" -" http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os2/\n" -"mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch\n" +"#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/\n" +"#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch\n" "mirrorlist=file:///etc/yum.repos.d/local.mirror\n" "enabled=1\n" "gpgcheck=1\n" -"gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY-$releasever/\n" -"gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-3\n" -"file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-4\n"; +"gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY\n"; struct RepoCollector : private base::NonCopyable { @@ -52,10 +46,6 @@ BOOST_AUTO_TEST_CASE(read_repo_file) RepoCollector collector; parser::RepoFileReader parser( input, bind( &RepoCollector::collect, &collector, _1 ) ); BOOST_CHECK_EQUAL(1, collector.repos.size()); - - const RepoInfo & repo( collector.repos.front() ); - BOOST_CHECK_EQUAL( 4, repo.baseUrlsSize() ); - // cout << repo << endl; } // fedora { @@ -67,14 +57,6 @@ BOOST_AUTO_TEST_CASE(read_repo_file) RepoInfo repo = *collector.repos.begin(); // should have taken the first url if more are present BOOST_CHECK_EQUAL(Url("file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora"), repo.gpgKeyUrl()); - BOOST_CHECK_EQUAL( 4, repo.gpgKeyUrlsSize() ); - // cout << repo << endl; - // cout << "------------------------------------------------------------" << endl; - // repo.dumpOn( cout ) << endl; - // cout << "------------------------------------------------------------" << endl; - // repo.dumpAsIniOn( cout ) << endl; - // cout << "------------------------------------------------------------" << endl; - // repo.dumpAsXmlOn( cout ) << endl; } }