From 1403c94ef114912c5eef3700e123b137b030c2c7 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Wed, 26 Apr 2017 10:14:59 +0800 Subject: Add support for result aggregation Change-Id: I678b765f3f430cb6a5d130d94960273b8eea85e7 Signed-off-by: Yujun Zhang --- tests/data/results/expected.json | 7 +++++++ tests/data/results/host1/qpi.json | 3 +++ tests/data/results/host2/qpi.json | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 tests/data/results/expected.json create mode 100644 tests/data/results/host1/qpi.json create mode 100644 tests/data/results/host2/qpi.json (limited to 'tests/data') diff --git a/tests/data/results/expected.json b/tests/data/results/expected.json new file mode 100644 index 00000000..a495d999 --- /dev/null +++ b/tests/data/results/expected.json @@ -0,0 +1,7 @@ +{ + "score": 150, + "host_results": [ + {"host": "host1", "result": {"score": 100}}, + {"host": "host2", "result": {"score": 200}} + ] +} diff --git a/tests/data/results/host1/qpi.json b/tests/data/results/host1/qpi.json new file mode 100644 index 00000000..ff8cbf80 --- /dev/null +++ b/tests/data/results/host1/qpi.json @@ -0,0 +1,3 @@ +{ + "score": 100 +} \ No newline at end of file diff --git a/tests/data/results/host2/qpi.json b/tests/data/results/host2/qpi.json new file mode 100644 index 00000000..1b848ba5 --- /dev/null +++ b/tests/data/results/host2/qpi.json @@ -0,0 +1,3 @@ +{ + "score": 200 +} \ No newline at end of file -- cgit 1.2.3-korg