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

Commit 6e2a25d

Browse files
author
Sebastian Gumprich
committed
update readme
1 parent bf03862 commit 6e2a25d

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

README.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,20 @@ Further information is already available at [Deutsche Telekom (German)](http://w
5050

5151
## Local Testing
5252

53-
For local testing you can use vagrant and Virtualbox of VMWare to run tests locally. You will have to install Virtualbox and Vagrant on your system. See [Vagrant Downloads](http://downloads.vagrantup.com/) for a vagrant package suitable for your system. For all our tests we use `test-kitchen`. If you are not familiar with `test-kitchen` please have a look at [their guide](http://kitchen.ci/docs/getting-started).
53+
The preferred way of locally testing the role is to use Docker. You will have to install Docker on your system. See [Get started](https://docs.docker.com/) for a Docker package suitable to for your system.
54+
55+
You can also use vagrant and Virtualbox or VMWare to run tests locally. You will have to install Virtualbox and Vagrant on your system. See [Vagrant Downloads](http://downloads.vagrantup.com/) for a vagrant package suitable for your system. For all our tests we use `test-kitchen`. If you are not familiar with `test-kitchen` please have a look at [their guide](http://kitchen.ci/docs/getting-started).
5456

5557
Next install test-kitchen:
5658

5759
```bash
5860
# Install dependencies
5961
gem install bundler
6062
bundle install
63+
```
6164

62-
# Fetch tests
63-
bundle exec thor kitchen:fetch-remote-tests
64-
65-
# download a MySQL-installation role
66-
ansible-galaxy install -p roles/ bennojoy.mysql
67-
68-
# change password in MySQL-installation role to match the one from testing
69-
sed -i 's/foobar/iloverandompasswordsbutthiswilldo/g' roles/bennojoy.mysql/defaults/main.yml
70-
65+
### Testing with Docker
66+
```
7167
# fast test on one machine
7268
bundle exec kitchen test default-ubuntu-1204
7369
@@ -79,8 +75,19 @@ bundle exec kitchen create default-ubuntu-1204
7975
bundle exec kitchen converge default-ubuntu-1204
8076
```
8177

82-
For more information see [test-kitchen](http://kitchen.ci/docs/getting-started)
78+
### Testing with Virtualbox
79+
```
80+
# fast test on one machine
81+
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen test default-ubuntu-1404
82+
83+
# test on all machines
84+
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen test
8385
86+
# for development
87+
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen create default-ubuntu-1404
88+
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen converge default-ubuntu-1404
89+
```
90+
For more information see [test-kitchen](http://kitchen.ci/docs/getting-started)
8491

8592
## License and Author
8693

0 commit comments

Comments
 (0)