From 109d261e19c6a819bb7a6702c6280890beddc4ff Mon Sep 17 00:00:00 2001 From: liyingjun Date: Thu, 8 Jan 2015 09:28:12 +0800 Subject: [PATCH] Move JSON_SCHEMA to rally.consts Change-Id: I918999306bbc6577b2b86761ea9da5e61dfa5a58 --- rally/consts.py | 3 +++ tests/unit/fakes.py | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rally/consts.py b/rally/consts.py index f3473f82..cba7f26c 100644 --- a/rally/consts.py +++ b/rally/consts.py @@ -39,6 +39,9 @@ TEMPEST_TEST_SETS = ("full", "volume") +JSON_SCHEMA = "http://json-schema.org/draft-04/schema" + + class _TaskStatus(utils.ImmutableMixin, utils.EnumMixin): INIT = "init" VERIFYING = "verifying" diff --git a/tests/unit/fakes.py b/tests/unit/fakes.py index fb281f5a..e7bcadfa 100644 --- a/tests/unit/fakes.py +++ b/tests/unit/fakes.py @@ -29,6 +29,7 @@ import six from rally.benchmark.context import base as base_ctx from rally.benchmark.scenarios import base from rally.common import utils as rally_utils +from rally import consts from rally import objects @@ -1268,7 +1269,7 @@ class FakeRunner(object): CONFIG_SCHEMA = { "type": "object", - "$schema": rally_utils.JSON_SCHEMA, + "$schema": consts.JSON_SCHEMA, "properties": { "type": { "type": "string", @@ -1319,7 +1320,7 @@ class FakeContext(base_ctx.Context): CONFIG_SCHEMA = { "type": "object", - "$schema": rally_utils.JSON_SCHEMA, + "$schema": consts.JSON_SCHEMA, "properties": { "test": { "type": "integer"