summaryrefslogtreecommitdiffstats
path: root/test/integration/README.md
diff options
context:
space:
mode:
authorLuke Meyer <lmeyer@redhat.com>2017-04-04 12:05:20 -0400
committerLuke Meyer <lmeyer@redhat.com>2017-04-25 12:17:38 -0400
commite5f14b515b07bcfa2079c3e68c35fee3e97970c7 (patch)
tree2f3cd2749ead0f19659b46d28f03114a58f803b3 /test/integration/README.md
parentce4c2f0cc0b4766eff28f5fa91eb353301ad9c91 (diff)
downloadopenshift-e5f14b515b07bcfa2079c3e68c35fee3e97970c7.tar.gz
openshift-e5f14b515b07bcfa2079c3e68c35fee3e97970c7.tar.bz2
openshift-e5f14b515b07bcfa2079c3e68c35fee3e97970c7.tar.xz
openshift-e5f14b515b07bcfa2079c3e68c35fee3e97970c7.zip
integration tests: add CI scripts
Add some scripts that can be run from Jenkins to build/push test images and to run the tests. Updated README to expand on running tests.
Diffstat (limited to 'test/integration/README.md')
-rw-r--r--test/integration/README.md35
1 files changed, 31 insertions, 4 deletions
diff --git a/test/integration/README.md b/test/integration/README.md
index 0edbccd74..948e44c50 100644
--- a/test/integration/README.md
+++ b/test/integration/README.md
@@ -1,12 +1,39 @@
# Integration tests
-Integration tests exercise the OpenShift Ansible playbooks by performing
-simulated installations in Docker containers.
+Integration tests exercise the OpenShift Ansible playbooks by running them
+against an inventory with Docker containers as hosts.
+
+## Requirements
+
+The tests assume that:
+
+* docker is running on localhost and the present user has access to use it.
+* golang is installed and the go binary is in PATH.
+* python and tox are installed.
+
+## Building images
+
+The tests rely on images built in the local docker index. You can build them
+from the repository root with:
+
+```
+./test/integration/build-images.sh
+```
+
+Use the `--help` option to view available options.
## Running the tests
-From the repository root, run with:
+From the repository root, run the integration tests with:
+
+```
+./test/integration/run-tests.sh
+```
+
+Use the `--help` option to view available options.
+
+You can also run tests more directly, for example to run a specific check:
```
-tox -e integration
+go test ./test/integration/... -run TestPackageUpdateDepMissing
```