def test_export(self):
        rally = utils.Rally()
        cfg = {
            "Dummy.dummy": [
                {
                    "runner": {
                        "type": "constant",
                        "times": 100,
                        "concurrency": 5
                    }
                }
            ]
        }
        config = utils.TaskConfig(cfg)
        output = rally("task start --task %s" % config.filename)
        uuid = re.search(
            r"(?P<uuid>[0-9a-f\-]{36}): started", output).group("uuid")
        connection = (
            "file-exporter:///" + rally.gen_report_path(extension="json"))
        output = rally("task export --uuid %s --connection %s" % (
            uuid, connection))
        expected = (
            "Task %(uuid)s results was successfully exported to %("
            "connection)s using file-exporter plugin." % {
                "uuid": uuid,
                "connection": connection,
            })
        self.assertIn(expected, output)
dataset/ETHPy150Open openstack/rally/tests/functional/test_cli_task.py/TaskTestCase.test_export/original