extras-repoclosure PackageOwnersTests.py,1.8,1.9

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Sun Nov 25 01:05:28 UTC 2007


Author: mschwendt

Update of /cvs/fedora/extras-repoclosure
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18456

Modified Files:
	PackageOwnersTests.py 
Log Message:
disable old CVS and viewcvs test suites // add optional username/password values when testing on a machine where auth is required


Index: PackageOwnersTests.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/PackageOwnersTests.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- PackageOwnersTests.py	29 Aug 2007 20:48:35 -0000	1.8
+++ PackageOwnersTests.py	25 Nov 2007 01:05:26 -0000	1.9
@@ -6,12 +6,18 @@
 
 from PackageOwners import PackageOwners
 
+user = None
+passwd = None
+
 po = PackageOwners()
 
 
 class TestDownloadFromURL(unittest.TestCase):
     def testFromURL(self):
-        po.FromURL(retries=1,retrysecs=1,url='https://admin.fedoraproject.org/pkgdb/acls/bugzilla?tg_format=plain')
+        if user and len(user) and passwd:
+            po.FromURL(retries=1,retrysecs=1,url='https://admin.fedoraproject.org/pkgdb/acls/bugzilla?tg_format=plain',pkgdb=True,repoid='Fedora',username=user,password=passwd)
+        else:
+            po.FromURL(retries=1,retrysecs=1,url='https://admin.fedoraproject.org/pkgdb/acls/bugzilla?tg_format=plain')
 
 
 class TestDownloadFromOldURL(unittest.TestCase):
@@ -58,12 +64,14 @@
 
 if __name__ == '__main__':
     suite1 = unittest.makeSuite(TestDownloadFromCVS)
-    suite2 = unittest.makeSuite(TestDownloadFromOldURL)
-    suite3 = unittest.makeSuite(TestDownloadFromURL)
+    suite2 = unittest.makeSuite(TestDownloadFromOldURL)  # viewcvs
+    suite3 = unittest.makeSuite(TestDownloadFromURL)  # pkgdb
     suitemain1 = unittest.makeSuite(TestSequenceFunctions)
     suitemain2 = unittest.makeSuite(TestSequenceFunctions)
 
-    alltests = unittest.TestSuite((suite1,suitemain1,
-                                   suite2,suitemain1,
-                                   suite3,suitemain2))
+#    alltests = unittest.TestSuite((suite1,suitemain1,
+#                                   suite2,suitemain1,
+#                                   suite3,suitemain2))
+
+    alltests = unittest.TestSuite((suite3,suitemain2))
     unittest.TextTestRunner(verbosity=2).run(alltests)




More information about the fedora-extras-commits mailing list