From 01a5ff6d3234457fd0f8268be13fca487a1793c2 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Sun, 12 Oct 2014 22:55:41 -0500 Subject: Add more session/api examples * examples/object_api.py - Example of using the Object_Store API * examples/osc-lib.py - Minimal client to use ClientManager as a library Also add matching functional tests Change-Id: I4243a21141a821420951d4b6352d41029cdcccbc --- functional/tests/test_examples.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'functional') diff --git a/functional/tests/test_examples.py b/functional/tests/test_examples.py index fdaa26b8..6e0e5867 100644 --- a/functional/tests/test_examples.py +++ b/functional/tests/test_examples.py @@ -20,3 +20,9 @@ class ExampleTests(test.TestCase): # NOTE(stevemar): If an examples has a non-zero return # code, then execute will raise an error by default. test.execute('python', test.EXAMPLE_DIR + '/common.py --debug') + + def test_object_api(self): + test.execute('python', test.EXAMPLE_DIR + '/object_api.py --debug') + + def test_osc_lib(self): + test.execute('python', test.EXAMPLE_DIR + '/osc-lib.py --debug') -- cgit v1.2.1