Skip to content

Commit ac0774a

Browse files
[ci skip] #15 Update the Travis CI build
1 parent 0e85581 commit ac0774a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DETIK: DevOps e2e Testing in Kubernetes
22
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)]()
3-
[![Build Status](https://travis-ci.org/vincent-zurczak/detik.svg?branch=master)](https://travis-ci.org/vincent-zurczak/detik)
3+
[![Build Status](https://travis-ci.org/bats-core/bats-detik.svg?branch=master)](https://travis-ci.org/bats-core/bats-detik)
44

55
This repository provides utilities to **execute end-to-end tests** of applications in Kubernetes clusters. This includes performing actions on the cluster (with kubectl, oc - for OpenShift - or helm) and verifying assertions by using a natural language, or almost. This reduces the amount of advanced bash commands to master.
66

@@ -178,15 +178,18 @@ It includes...
178178

179179
### Setup
180180

181-
* Install [BATS](https://github.com/sstephenson/bats), a testing framework for scripts.
181+
* Install [BATS](https://github.com/bats-core/bats-core), a testing framework for scripts.
182182
BATS is a test framework for BASH and other scripts.
183183
* Download the **lib/detik.bash** script.
184184
```bash
185-
wget https://raw.githubusercontent.com/vincent-zurczak/devops-e2e-tests-in-kubernetes/master/lib/detik.bash
186-
chmod +x detik.bash
185+
wget https://raw.githubusercontent.com/bats-core/bats-detik/master/lib/detik.bash
186+
wget https://raw.githubusercontent.com/bats-core/bats-detik/master/lib/linter.bash
187+
wget https://raw.githubusercontent.com/bats-core/bats-detik/master/lib/utils.bash
188+
chmod +x *.bash
187189
```
188190
* Write bats scripts with assertions.
189-
Make sure they import the **lib/detik.bash** file.
191+
Make sure they import the **lib/utils.bash** and **lib/detik.bash** files.
192+
* Import the **lib/linter.bash** file to verify the linting of DETIK assertions.
190193

191194

192195
### Executing Tests by Hand
@@ -201,7 +204,7 @@ docker run -ti \
201204
-v $(pwd):/home/testing/sources \
202205
-e http_proxy="proxy.local:3128" \
203206
-e https_proxy="proxy.local:3128" \
204-
detik:LATEST
207+
bats-detik:LATEST
205208

206209
# Log into the cluster
207210
echo "It all depends on your cluster configuration"
@@ -410,4 +413,3 @@ load "lib/linter"
410413

411414
1. **Do not use file descriptors 3 and 4 in your tests.**
412415
They are already used by BATS. And 0, 1 and 2 are default file descriptors. Use 5, 6 and higher values.
413-

0 commit comments

Comments
 (0)