コード例 #1
0
ファイル: sahara_edp.py プロジェクト: linhuacheng/rally
    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
ファイル: test_manager.py プロジェクト: linhuacheng/rally
    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
ファイル: test_manager.py プロジェクト: x-ion-de/rally
    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
ファイル: servers.py プロジェクト: linhuacheng/rally
 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", []))