Merge "Add devstack plugin to ease integration tests"
diff --git a/devstack/README.rst b/devstack/README.rst
new file mode 100644
index 0000000..a78b7f7
--- /dev/null
+++ b/devstack/README.rst
@@ -0,0 +1,21 @@
+====================
+Enabling in Devstack
+====================
+
+**WARNING**: the stack.sh script must be run in a disposable VM that is not
+being created automatically, see the README.md file in the "devstack"
+repository.  See contrib/vagrant to create a vagrant VM.
+
+1. Download DevStack::
+
+    git clone https://git.openstack.org/openstack-dev/devstack.git
+    cd devstack
+
+2. Add this repo as an external repository::
+
+     > cat local.conf
+     [[local|localrc]]
+     enable_plugin manila-tempest-plugin https://git.openstack.org/openstack/manila-tempest-plugin
+
+3. run ``stack.sh``
+
diff --git a/devstack/plugin.sh b/devstack/plugin.sh
new file mode 100644
index 0000000..4ee1622
--- /dev/null
+++ b/devstack/plugin.sh
@@ -0,0 +1,16 @@
+# Directory where this plugin.sh file is
+MANILA_TEMPEST_PLUGIN_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
+
+# install_manila_tempest_plugin
+function install_manila_tempest_plugin {
+    setup_dev_lib "manila-tempest-plugin"
+}
+
+if [[ "$1" == "stack" ]]; then
+    case "$2" in
+        install)
+            echo_summary "Installing manila-tempest-plugin"
+            install_manila_tempest_plugin
+            ;;
+    esac
+fi
diff --git a/devstack/settings b/devstack/settings
new file mode 100644
index 0000000..8b95762
--- /dev/null
+++ b/devstack/settings
@@ -0,0 +1,3 @@
+GITREPO["manila-tempest-plugin"]=${MANILA_TEMPEST_REPO:-${GIT_BASE}/openstack/manila-tempest-plugin.git}
+GITDIR["manila-tempest-plugin"]=$DEST/manila-tempest-plugin
+GITBRANCH["manila-tempest-plugin"]=master