Beispiel #1
0
 def setUp(self):
     '''
     Main function of setup is to instantiate an ebsTestSuite object. With command line args. 
     '''
     self.ebssuite = EbsTestSuite(zone=zone,
                                  config_file=config_file,
                                  password=password,
                                  credpath=credpath,
                                  keypair=keypair,
                                  group=group,
                                  image=emi)
Beispiel #2
0
class ebs_tests(unittest.TestCase):
    
    def setUp(self):
        '''
        Main function of setup is to instantiate an ebsTestSuite object. With command line args. 
        '''
        self.ebssuite = EbsTestSuite(zone= zone, 
                            config_file= config_file, 
                            password=password,
                            credpath=credpath, 
                            keypair=keypair, 
                            group=group, 
                            vmtype=vmtype,
                            image=emi)
        
    def test_ebs_basic_test_suite(self):
        '''
        Full suite of ebs related tests
        '''
        self.ebssuite.run_ebs_basic_test_suite()
        
        
    def tearDown(self):
        '''
        Clean up resource created during test, output results
        '''
        try:
            self.ebssuite.clean_created_resources()
        except:
            self.ebssuite.debug("Cleanup failed. Exiting normally")
        finally:
            self.ebssuite.print_test_list_results()
Beispiel #3
0
class ebs_tests(unittest.TestCase):
    def setUp(self):
        '''
        Main function of setup is to instantiate an ebsTestSuite object. With command line args. 
        '''
        self.ebssuite = EbsTestSuite(zone=zone,
                                     config_file=config_file,
                                     password=password,
                                     credpath=credpath,
                                     keypair=keypair,
                                     group=group,
                                     image=emi)

    def test_ebs_basic_test_suite(self):
        '''
        Full suite of ebs related tests
        '''
        self.ebssuite.run_ebs_basic_test_suite()

    def tearDown(self):
        '''
        Clean up resource created during test, output results
        '''
        try:
            self.ebssuite.clean_created_resources()
        except:
            self.ebssuite.debug("Cleanup failed. Exiting normally")
        finally:
            self.ebssuite.print_test_list_results()
Beispiel #4
0
 def setUp(self):
     '''
     Main function of setup is to instantiate an ebsTestSuite object. With command line args. 
     '''
     self.ebssuite = EbsTestSuite(zone= zone, 
                         config_file= config_file, 
                         password=password,
                         credpath=credpath, 
                         keypair=keypair, 
                         group=group, 
                         image=emi)
Beispiel #5
0
#        -attempt to create a volume of each snapshot, if within a multi-cluster env do 1 in each cluster 
#        -attempt to attach each volume created from the previous snaps to an instance verify md5s
#        -'if' a bfebs instance was used, attempt to stop and detach volumes while in stopped state
#        -terminate all instances used in this test, verify any attached volumes return to available state
#        
#        Properties nephoria_unit_tests:
#        -create a volume of greater than prop size, should fail
#        -create a 2nd volume attempting to exceed the max aggregate size, should fail
#        
#        
#        Cleanup:
#        --remove all volumes, instance, and snapshots created during this test
#
#    @author: clarkmatthew


from ebstestsuite import EbsTestSuite

if __name__ == "__main__":
    # This script is now just a wrapper for ebstestsuite's basic test suite
    testcase= EbsTestSuite()
    testcase.clean_method = testcase.clean_created_resources
    testlist = testcase.ebs_basic_test_suite(run=False)

    ret = testcase.run_test_case_list(testlist,
                                      eof=testcase.args.exit_on_failure,
                                      clean_on_exit=testcase.args.clean_on_exit)
    print "ebs_basic_test exiting:("+str(ret)+")"
    exit(ret)

Beispiel #6
0
#        -create snapshot of attached volume
#        -attempt to create a volume of each snapshot, if within a multi-cluster env do 1 in each cluster
#        -attempt to attach each volume created from the previous snaps to an instance verify md5s
#        -'if' a bfebs instance was used, attempt to stop and detach volumes while in stopped state
#        -terminate all instances used in this test, verify any attached volumes return to available state
#
#        Properties tests:
#        -create a volume of greater than prop size, should fail
#        -create a 2nd volume attempting to exceed the max aggregate size, should fail
#
#
#        Cleanup:
#        --remove all volumes, instance, and snapshots created during this test
#
#    @author: clarkmatthew

from ebstestsuite import EbsTestSuite

if __name__ == "__main__":
    # This script is now just a wrapper for ebstestsuite's basic test suite
    testcase = EbsTestSuite()
    testcase.clean_method = testcase.clean_created_resources
    testlist = testcase.ebs_basic_test_suite(run=False)

    ret = testcase.run_test_case_list(
        testlist,
        eof=testcase.args.exit_on_failure,
        clean_on_exit=testcase.args.clean_on_exit)
    print "ebs_basic_test exiting:(" + str(ret) + ")"
    exit(ret)