update readme for aws integration tests

This commit is contained in:
Christoph Hartmann 2015-12-11 13:07:13 +01:00 committed by Dominik Richter
parent b24ed632a1
commit b1d6906d16
2 changed files with 88 additions and 2 deletions

View file

@ -214,13 +214,32 @@ You will require:
* vagrant with virtualbox
* test-kitchen
Run `integration` tests with
**Run `integration` tests with vagrant:**
```bash
cd test/integration
bundle exec kitchen test -t .
bundle exec kitchen test
```
**Run `integration` tests with AWS EC2:**
```bash
export AWS_ACCESS_KEY_ID=enteryouryourkey
export AWS_SECRET_ACCESS_KEY=enteryoursecreykey
export AWS_SSH_KEY_ID=enteryoursshkeyid
cd test/integration
KITCHEN_LOCAL_YAML=.kitchen.ec2.yml bundle exec kitchen test
```
In addition you may need to add your ssh key to `.kitchen.ec2.yml`
```
transport:
ssh_key: /Users/chartmann/aws/aws_chartmann.pem
username: ec2-user
```
### Chef Delivery Tests
It may be informative to look at what [tests Chef Delivery](https://github.com/chef/inspec/blob/master/.delivery/build-cookbook/recipes/unit.rb) is running for CI.

View file

@ -0,0 +1,67 @@
driver:
name: ec2
region: eu-central-1
instance_type: m3.large
associate_public_ip: true
interface: dns
transport:
ssh_key: /Users/chartmann/Development/key/aws_chartmann.pem
username: ec2-user
platforms:
- name: windows-2012
driver:
image_id: ami-58f7fb45
transport:
username: administrator
- name: windows-2012r2
driver:
image_id: ami-f2f5f9ef
transport:
username: administrator
- name: suse-11sp3
driver:
image_id: ami-fc0033e1
- name: suse-12
driver:
image_id: ami-a22610bf
- name: redhat-65
driver:
image_id: ami-008ebf1d
- name: redhat-71
driver:
image_id: ami-dafdcfc7
- name: ubuntu-1204
driver:
image_id: ami-24232f39
transport:
username: ubuntu
- name: ubuntu-1404
driver:
image_id: ami-48272b55
transport:
username: ubuntu
- name: ubuntu-1510
driver:
image_id: ami-1b4a5977
transport:
username: ubuntu
- name: fedora-22
driver:
image_id: ami-a88eb0b5
transport:
username: fedora
- name: debian-8
driver:
image_id: ami-b092aaad
transport:
username: admin
- name: centos-7
driver:
image_id: ami-e68f82fb
transport:
username: centos
- name: aws-linux
driver:
image_id: ami-daaeaec7