예제 #1
0
    def cleanup(self):
        resources = ["job_executions", "jobs", "job_binary_internals",
                     "job_binaries", "data_sources"]

        # TODO(boris-42): Delete only resources created by this context
        resource_manager.cleanup(
            names=map(lambda r: "sahara.%s" % r, resources),
            users=self.context.get("users", []))
예제 #2
0
    def cleanup(self):
        resources = ["job_executions", "jobs", "job_binary_internals",
                     "job_binaries", "data_sources"]

        # TODO(boris-42): Delete only resources created by this context
        resource_manager.cleanup(
            names=["sahara.%s" % res for res in resources],
            users=self.context.get("users", []))
예제 #3
0
    def test_cleanup(self, mock_find, mock_seek_and_destroy):
        manager.cleanup(names=["a", "b"], admin_required=True,
                        admin="admin", users=["user"])

        mock_find.assert_called_once_with(["a", "b"], True)

        mock_seek_and_destroy.assert_has_calls([
            mock.call(mock_find.return_value[0], "admin", ["user"]),
            mock.call().exterminate(),
            mock.call(mock_find.return_value[1], "admin", ["user"]),
            mock.call().exterminate()
        ])
예제 #4
0
    def test_cleanup(self, mock_find, mock_seek_and_destroy):
        manager.cleanup(names=["a", "b"],
                        admin_required=True,
                        admin="admin",
                        users=["user"])

        mock_find.assert_called_once_with(["a", "b"], True)

        mock_seek_and_destroy.assert_has_calls([
            mock.call(mock_find.return_value[0], "admin", ["user"]),
            mock.call().exterminate(),
            mock.call(mock_find.return_value[1], "admin", ["user"]),
            mock.call().exterminate()
        ])
예제 #5
0
파일: images.py 프로젝트: x-ion-de/rally
 def cleanup(self):
     # TODO(boris-42): Delete only resources created by this context
     resource_manager.cleanup(names=["glance.images"],
                              users=self.context.get("users", []))
예제 #6
0
 def cleanup(self):
     resource_manager.cleanup(names=["nova.servers"],
                              users=self.context.get("users", []))
예제 #7
0
파일: images.py 프로젝트: Vaidyanath/rally
 def cleanup(self):
     # TODO(boris-42): Delete only resources created by this context
     resource_manager.cleanup(names=["glance.images"],
                              users=self.context.get("users", []))
예제 #8
0
파일: stacks.py 프로젝트: varunarya10/rally
 def cleanup(self):
     resource_manager.cleanup(names=["heat.stacks"],
                              users=self.context.get("users", []))
예제 #9
0
 def cleanup(self):
     resource_manager.cleanup(names=["nova.servers"],
                              users=self.context.get("users", []))
예제 #10
0
파일: stacks.py 프로젝트: varunarya10/rally
 def cleanup(self):
     resource_manager.cleanup(names=["heat.stacks"], users=self.context.get("users", []))
예제 #11
0
파일: context.py 프로젝트: Vaidyanath/rally
 def cleanup(self):
     manager.cleanup(names=self.config,
                     admin_required=False,
                     users=self.context.get("users", []))
예제 #12
0
파일: context.py 프로젝트: Vaidyanath/rally
 def cleanup(self):
     manager.cleanup(names=self.config,
                     admin_required=True,
                     admin=self.context["admin"],
                     users=self.context.get("users", []))
예제 #13
0
파일: context.py 프로젝트: x-ion-de/rally
 def cleanup(self):
     manager.cleanup(names=self.config,
                     admin_required=False,
                     users=self.context.get("users", []))
예제 #14
0
파일: context.py 프로젝트: x-ion-de/rally
 def cleanup(self):
     manager.cleanup(names=self.config,
                     admin_required=True,
                     admin=self.context["admin"],
                     users=self.context.get("users", []))
예제 #15
0
파일: cloud.py 프로젝트: drgogeta86/haos
 def cleanup(self):
     """This method is called after the task finish."""
     resource_manager.cleanup(names=["nova.servers"],
                              users=self.context.get("users", []))
예제 #16
0
 def cleanup(self):
     resource_manager.cleanup(names=["murano.packages"],
                              users=self.context.get("users", []))