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)
# -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)