mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
update readme for aws integration tests
This commit is contained in:
parent
b24ed632a1
commit
b1d6906d16
2 changed files with 88 additions and 2 deletions
23
README.md
23
README.md
|
@ -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.
|
||||
|
|
67
test/integration/.kitchen.ec2.yml
Normal file
67
test/integration/.kitchen.ec2.yml
Normal 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
|
Loading…
Reference in a new issue