[tracker] functional-tests: Removed commented code (old tests not valid anymore)



commit 5b1752a00ce5e941c1875c98642fe76f7c36c25f
Author: Ivan Frade <ivan frade nokia com>
Date:   Mon Nov 8 14:14:03 2010 +0200

    functional-tests: Removed commented code (old tests not valid anymore)

 tests/functional-tests/200-backup-restore.py |   83 --------------------------
 1 files changed, 0 insertions(+), 83 deletions(-)
---
diff --git a/tests/functional-tests/200-backup-restore.py b/tests/functional-tests/200-backup-restore.py
index 4124c57..96ec099 100755
--- a/tests/functional-tests/200-backup-restore.py
+++ b/tests/functional-tests/200-backup-restore.py
@@ -217,89 +217,6 @@ class BackupRestoreTest (CommonTrackerStoreTest):
               # DB to the original state
               self.__delete_test_instance ()
               
-
-## 	def test_backup_09(self):
-## 	      """
-## 	      1.Insert a contact.
-## 	      2.Take backup of db.
-## 	      3.Corrupt the databse.
-## 	      4.Restore the db.
-## 	      5.Search for the contact inserted. 
-## 	      Expected:Contact should be listed in tracker search.	
-## 	      """
-
-## 	      urn = 'urn:uuid:'+`random.randint(0, sys.maxint)`
-## 	      insert_sparql = "INSERT { <%s> a nco:Contact } "
-## 	      insert = insert_sparql %(urn)
-## 	      self.sparql_update(insert)
-
-## 	      result = commands.getoutput('tracker-stats | grep nco:Contact')
-## 	      stats1 = result.split()
-
-## 	      self.backup.Save(BACKUP_1)
-
-##               delete_sparql = "DELETE { <%s> a nco:Contact } "                                                            
-##               delete = delete_sparql %(urn)                                                                               
-##               self.sparql_update(delete)  	
-		
-## 	      print ("Corrupting the database")
-
-## 	      commands.getoutput('cp  ' + configuration.TEST_DATA_IMAGES +'test-image-1.jpg' + ' ' + database +'meta.db' )
-## 	      try :
-##                  self.db_restore(BACKUP_1)
-## 	      except :
-## 		 print "Restore is not scuccessful"
-
-## 	      print "querying for the contact"
-## 	      query_sparql = "SElECT ?c WHERE {?c a nco:Contact .FILTER (REGEX(?c, '%s' )) }"
-##               query = query_sparql %(urn)                                             
-##               result = self.query(query)                                                     
-## 	      self.assert_(result[0][0].find(urn)!=-1 , "Restore is not successful" )
-
-## 	def test_backup_10(self):
-
-## 	      """
-## 	      1.Insert a contact.
-## 	      2.Take backup of db.
-## 	      3.Kill tracker-store process.
-## 	      4.Corrupt the databse.
-## 	      5.Restore the db.
-## 	      6.Search for the contact inserted. 
-## 	      Expected:Contact should be listed in tracker search.	
-## 	      """
-
-## 	      urn = random.randint(0, sys.maxint)	
-
-## 	      insert_sparql = "INSERT { <%s> a nco:Contact } "
-## 	      insert = insert_sparql %(urn)
-
-## 	      self.sparql_update(insert)
-
-## 	      result = commands.getoutput('tracker-stats | grep nco:Contact')
-## 	      stats1 = result.split()
-
-## 	      self.backup.Save(BACKUP_1)
-
-## 	      delete_sparql = "DELETE { <%s> a nco:Contact } "                                                            
-##               delete = delete_sparql %(urn)                                                                               
-##               self.sparql_update(delete)  
-
-## 	      self.kill_store() 
-
-## 	      print ("corrupting the database")
-## 	      commands.getoutput('cp  ' + configuration.TEST_DATA_IMAGES +'test-image-1.jpg' + ' ' + database +'meta.db' )
-
-## 	      try :
-##                  self.db_restore(BACKUP_1)
-## 	      except :
-## 		 print "Restore is not scuccessful"
-
-##               result = commands.getoutput('tracker-stats | grep nco:Contact ')
-## 	      query_sparql = "SElECT ?c WHERE {?c a nco:Contact .FILTER (REGEX(?c, '%s' )) }"
-##               query = query_sparql %(urn)                                                    
-##               result = self.query(query)                                                     
-## 	      self.assert_(result[0][0].find(urn)!=-1 , "Restore is not successful")
-
         def test_backup_11(self):
 	      """
               Backup ignores the file extension



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]