summaryrefslogtreecommitdiff
path: root/etc/tests
diff options
context:
space:
mode:
authorTim Simpson <tim.simpson@rackspace.com>2014-11-17 13:51:24 -0600
committerTim Simpson <tim.simpson@rackspace.com>2014-11-17 13:51:24 -0600
commit52fc67e51ebcc10404e43205c48080e594886898 (patch)
treedd2fca0f45e1081b24d2cb0901b321635385f1ab /etc/tests
parentfc80208a46323669dc7d7541c8c6100f1bb8f739 (diff)
downloadtrove-52fc67e51ebcc10404e43205c48080e594886898.tar.gz
Create example generator
This code adds a feature to the tests where all of the example snippets are generated and then validated. Tests fail if the new examples don't match the old ones, meaning a dev changing the API must update the snippets, triggering a conversation about the changes during the pull request. Implements: blueprint example-snippet-generator Change-Id: I5f1bfd47558a646a56e519614ae76a55759a4422
Diffstat (limited to 'etc/tests')
-rw-r--r--etc/tests/localhost.test.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/tests/localhost.test.conf b/etc/tests/localhost.test.conf
index 72eb8b57..701fa954 100644
--- a/etc/tests/localhost.test.conf
+++ b/etc/tests/localhost.test.conf
@@ -117,5 +117,16 @@
}
],
+
+ "examples": {
+ "directory":"apidocs/src/samples",
+ "normal_user_name":"hub_cap",
+ "normal_user_tenant":"3000",
+ "admin_user_name":"admin",
+ "admin_user_tenant":"admin-1000",
+ "replace_host":"https://troveapi.org",
+ "replace_dns_hostname": "e09ad9a3f73309469cf1f43d11e79549caf9acf2.troveexampledb.com"
+ },
+
"sentinel": null
}