mirror of
https://github.com/ceph/ceph
synced 2025-01-15 23:43:06 +00:00
e786e16220
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
23 lines
628 B
Python
23 lines
628 B
Python
import fake_archive
|
|
from .. import report
|
|
|
|
|
|
class TestReport(object):
|
|
def setup(self):
|
|
self.archive = fake_archive.FakeArchive()
|
|
self.archive.setup()
|
|
self.archive_base = self.archive.archive_base
|
|
self.reporter = report.ResultsReporter(archive_base=self.archive_base)
|
|
|
|
def teardown(self):
|
|
self.archive.teardown()
|
|
|
|
def test_all_runs(self):
|
|
run_name = "test_all_runs"
|
|
yaml_path = "examples/3node_ceph.yaml"
|
|
job_count = 3
|
|
self.archive.create_fake_run(run_name, job_count, yaml_path)
|
|
assert [run_name] == self.reporter.serializer.all_runs
|
|
|
|
|