| Index: scripts/slave/recipe_modules/chromite/test_api.py
|
| diff --git a/scripts/slave/recipe_modules/chromite/test_api.py b/scripts/slave/recipe_modules/chromite/test_api.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cce615989597a7cf8084f302d10226b13df046ff
|
| --- /dev/null
|
| +++ b/scripts/slave/recipe_modules/chromite/test_api.py
|
| @@ -0,0 +1,19 @@
|
| +# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import base64
|
| +import hashlib
|
| +
|
| +from recipe_engine import recipe_test_api
|
| +
|
| +DEPS = [
|
| + 'gitiles',
|
| +]
|
| +
|
| +class ChromiteTestApi(recipe_test_api.RecipeTestApi):
|
| + def seed_chromite_config(self, data, branch='master'):
|
| + """Seeds step data for the Chromite configuration fetch.
|
| + """
|
| + return self.m.step.step_data('read chromite config',
|
| + self.m.json.output(data))
|
|
|