Skip to content

Commit

Permalink
split 04 test suite in two
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Aug 2, 2018
1 parent a385909 commit 29d08da
Show file tree
Hide file tree
Showing 43 changed files with 83 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ install:

# if for some reason we want to avoid the use of travis jobs:
#script: (cd tests && npm run test)
#script: (cd tests && ./bin/runLocal.sh 01 08 07 02 03 04 05)
#script: (cd tests && ./bin/runLocal.sh 01 08 07 02 03 04a 04b 05)

jobs:
include:
Expand All @@ -69,5 +69,7 @@ jobs:
env: EXECUTING=07
- script: (cd tests && ./bin/runLocal.sh 03)
env: EXECUTING=03
- script: (cd tests && ./bin/runLocal.sh 04)
env: EXECUTING=04
- script: (cd tests && ./bin/runLocal.sh 04a)
env: EXECUTING=04a
- script: (cd tests && ./bin/runLocal.sh 04b)
env: EXECUTING=04b
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion tools/travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ grep -vE 'controller1|invoker1' hosts.bak > hosts.j2.ini
# Install OpenWhisk
cd $WHISKDIR/ansible

# smash in our smaller set up required runtimes
cp "$SCRIPTDIR/runtimes.json" "$WHISKDIR/ansible/files"

# note that we increase the quotas on invocations per minute and concurrent invocations (per namespace)
ANSIBLE_CMD="ansible-playbook -i environments/local -e docker_image_prefix=openwhisk -e limit_invocations_per_minute=600 -e limit_invocations_concurrent=100"

Expand All @@ -23,7 +26,7 @@ $ANSIBLE_CMD prereq.yml
#(cd $ROOTDIR/tests/docker && ./build.sh) & # initialize test docker base image, in parallel (!!! must be after prereq, as it restarts docker)
$ANSIBLE_CMD couchdb.yml
$ANSIBLE_CMD initdb.yml
$ANSIBLE_CMD apigateway.yml # not needed directly, but it comes with redis, which we need
$ANSIBLE_CMD apigateway.yml # not needed directly, but it comes with redis if we need it

cd $WHISKDIR
./gradlew -PdockerImagePrefix=openwhisk
Expand Down
6 changes: 4 additions & 2 deletions tools/travis/init_auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ cd $SCRIPTDIR
./wskadmin user delete user01 | grep -v "Failed to delete subject"
./wskadmin user delete user02 | grep -v "Failed to delete subject"
./wskadmin user delete user03 | grep -v "Failed to delete subject"
./wskadmin user delete user04 | grep -v "Failed to delete subject"
./wskadmin user delete user04a | grep -v "Failed to delete subject"
./wskadmin user delete user04ab | grep -v "Failed to delete subject"
./wskadmin user delete user04b | grep -v "Failed to delete subject"
./wskadmin user delete user05 | grep -v "Failed to delete subject"
./wskadmin user delete user06 | grep -v "Failed to delete subject"
Expand All @@ -35,7 +36,8 @@ cd $SCRIPTDIR
./wskadmin user create user01 -ns ns01 > $DIR/01 2> /dev/null
./wskadmin user create user02 -ns ns02 > $DIR/02 2> /dev/null
./wskadmin user create user03 -ns ns03 > $DIR/03 2> /dev/null
./wskadmin user create user04 -ns ns04 > $DIR/04 2> /dev/null
./wskadmin user create user04a -ns ns04a > $DIR/04a 2> /dev/null
./wskadmin user create user04ab -ns ns04ab > $DIR/04ab 2> /dev/null
./wskadmin user create user04b -ns ns04b > $DIR/04b 2> /dev/null
./wskadmin user create user05 -ns ns05 > $DIR/05 2> /dev/null
./wskadmin user create user06 -ns ns06 > $DIR/06 2> /dev/null
Expand Down
69 changes: 69 additions & 0 deletions tools/travis/runtimes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"runtimes": {
"nodejs": [
{
"kind": "nodejs",
"image": {
"prefix": "openwhisk",
"name": "nodejsaction",
"tag": "latest"
},
"deprecated": true
},
{
"kind": "nodejs:6",
"default": true,
"image": {
"prefix": "openwhisk",
"name": "nodejs6action",
"tag": "latest"
},
"deprecated": false,
"stemCells": [{
"count": 2,
"memory": "256 MB"
}]
}
],
"python": [
{
"kind": "python",
"image": {
"prefix": "openwhisk",
"name": "nodejs6action",
"tag": "latest"
},
"deprecated": false
}
],
"swift": [
{
"kind": "swift",
"image": {
"prefix": "openwhisk",
"name": "nodejs6action",
"tag": "latest"
},
"deprecated": true
}
],
"java": [
{
"kind": "java",
"default": true,
"image": {
"prefix": "openwhisk",
"name": "java8action",
"tag": "latest"
},
"deprecated": false,
"attached": {
"attachmentName": "jarfile",
"attachmentType": "application/java-archive"
},
"requireMain": true
}
]
},
"blackboxes": []
}
4 changes: 1 addition & 3 deletions tools/travis/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

SCRIPTDIR=$(cd $(dirname "$0") && pwd)
HOMEDIR="$SCRIPTDIR/../../../"

# install node and npm
#sudo apt-get -y install nodejs npm
WHISKDIR="$ROOTDIR/openwhisk"

cd $HOMEDIR

Expand Down

0 comments on commit 29d08da

Please sign in to comment.