summaryrefslogtreecommitdiff
path: root/functional
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2014-10-12 22:55:41 -0500
committerDean Troyer <dtroyer@gmail.com>2014-11-15 16:29:14 -0600
commit01a5ff6d3234457fd0f8268be13fca487a1793c2 (patch)
treeb08cbb849c669ec99b73961dd52b9ec18a11a605 /functional
parent126b2c543617866e9e1ea45ef9c5770ce5f5dda9 (diff)
downloadpython-openstackclient-01a5ff6d3234457fd0f8268be13fca487a1793c2.tar.gz
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
Diffstat (limited to 'functional')
-rw-r--r--functional/tests/test_examples.py6
1 files changed, 6 insertions, 0 deletions
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')