Skip to content
This repository was archived by the owner on May 5, 2020. It is now read-only.

Commit 0b2ed8c

Browse files
authored
Test updates
2 parents a4451ed + 4698a2c commit 0b2ed8c

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

test/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FROM ubuntu:16.04
1616

1717
MAINTAINER Arthur Barr <[email protected]>
1818

19-
ENV NODE_VERSION 6.4.0
19+
ENV NODE_VERSION 6.9.1
2020

2121
RUN export DEBIAN_FRONTEND=noninteractive \
2222
&& apt-get update -y \

test/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Tests
2+
3+
The tests are run in a Docker image, by using the `run.sh` script, passing in the label for the Docker image to test. For example:
4+
5+
```
6+
run.sh ibmcom/mq
7+
```
8+
9+
The `run.sh` script creates a Docker network, then runs a test container on that network. The test container has the Docker socket shared with it, so that it can create containers on the host. It uses this ability to create queue manager containers on the host which are part of the same Docker network.
10+
11+
NOTE: The volume-based tests do not work on Docker for Mac, due to filesystem incompatibilities within the xhyve virtual machine.

test/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "mq-docker-test",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Tests for the sample Docker image for IBM MQ",
55
"license": "Apache-2.0",
66
"main": "test.js",
77
"dependencies": {
88
"chai": "^3.5.0",
9-
"mocha": "^3.0.2"
9+
"mocha": "^3.1.2"
1010
},
1111
"devDependencies": {},
1212
"scripts": {

0 commit comments

Comments
 (0)