예제 #1
0
 def tearDownClass(cls):
     if cls.ca_dir:
         rmtree_without_raise(cls.ca_dir)
     if cls.cluster:
         cls._delete_cluster(cls.cluster.uuid)
     if cls.cluster_template:
         cls._delete_cluster_template(cls.cluster_template.uuid)
     super(ClusterTest, cls).tearDownClass()
예제 #2
0
 def tearDownClass(cls):
     if cls.ca_dir:
         rmtree_without_raise(cls.ca_dir)
     if cls.bay:
         cls._delete_bay(cls.bay.uuid)
     if cls.baymodel:
         cls._delete_baymodel(cls.baymodel.uuid)
     super(BayTest, cls).tearDownClass()
예제 #3
0
 def tearDownClass(cls):
     if cls.ca_dir:
         rmtree_without_raise(cls.ca_dir)
     if cls.bay:
         cls._delete_bay(cls.bay.uuid)
     if cls.baymodel:
         cls._delete_baymodel(cls.baymodel.uuid)
     super(BayTest, cls).tearDownClass()
    def tearDownClass(cls):

        if cls.ca_dir:
            rmtree_without_raise(cls.ca_dir)

        cls._delete_bay(cls.bay.uuid)
        try:
            cls._wait_on_status(cls.bay,
                                ["CREATE_COMPLETE",
                                 "DELETE_IN_PROGRESS", "CREATE_FAILED"],
                                ["DELETE_FAILED", "DELETE_COMPLETE"])
        except exceptions.NotFound:
            pass
        cls._delete_baymodel(cls.baymodel.uuid)
예제 #5
0
    def tearDownClass(cls):

        if cls.ca_dir:
            rmtree_without_raise(cls.ca_dir)

        cls._delete_bay(cls.bay.uuid)
        try:
            cls._wait_on_status(cls.bay,
                                ["CREATE_COMPLETE",
                                 "DELETE_IN_PROGRESS", "CREATE_FAILED"],
                                ["DELETE_FAILED", "DELETE_COMPLETE"])
        except exceptions.NotFound:
            pass
        cls._delete_baymodel(cls.baymodel.uuid)

        super(BayAPITLSTest, cls).tearDownClass()
예제 #6
0
    def tearDownClass(cls):
        try:
            cls._copy_logs()
        except Exception as e:
            print("WARNING: Failed to copy logs. Error: " + repr(e))

        if cls.ca_dir:
            rmtree_without_raise(cls.ca_dir)

        cls._delete_bay(cls.bay.uuid)
        try:
            cls._wait_on_status(cls.bay,
                                ["CREATE_COMPLETE",
                                 "DELETE_IN_PROGRESS", "CREATE_FAILED"],
                                ["DELETE_FAILED", "DELETE_COMPLETE"])
        except exceptions.NotFound:
            pass
        cls._delete_baymodel(cls.baymodel.uuid)

        super(BayAPITLSTest, cls).tearDownClass()