Adding OpenShift functional tests for kompose up/down

* This PR adds functional tests for kompose up/down. The test scripts
are hosted under script/test_in_openshift. The directory structure,
as follows:

	script/test_in_openshift/
	├── compose-files
	│   └── docker-compose-command.yml
	├── lib.sh
	├── run.sh
	└── tests
		├── buildconfig.sh
    		├── entrypoint-command.sh
    		├── etherpad.sh
    		└── redis-replica-2.sh

* script/test_in_openshift/run.sh is the master script
  which executes all the tests

* script/test_in_openshift/lib.sh consists of helper functions
  for `kompose up` and `kompose down` checks

* script/test_in_openshift/tests directory consists of test scripts

* The scripts use 'oc cluster up' for setting up a single-machine
  OpenShift cluster. It exits if oc binaries are not installed

* Most of the docker compose files used are the ones already
  available in examples/ or script/test/fixtures.

* How to run the tests: 'make test-openshift'
This commit is contained in:
Anush Shetty
2017-05-02 12:02:30 +05:30
parent 0464d24b40
commit 1b3d876a62
9 changed files with 431 additions and 3 deletions
@@ -0,0 +1,10 @@
version: '2'
services:
base1:
image: busybox
command: ['sleep','10000']
base2:
image: busybox
entrypoint: ['sleep','10000']