Skip to content

Commit

Permalink
Add test farm tests requirements file (#7061)
Browse files Browse the repository at this point in the history
* Add requirements.txt.

* update readme
  • Loading branch information
bmw authored and adferrand committed May 17, 2019
1 parent 7cfbeae commit 26d0153
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
19 changes: 11 additions & 8 deletions tests/letstest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,28 @@ Simple AWS testfarm scripts for certbot client testing
- AWS EC2 has a default limit of 20 t2/t1 instances, if more
are needed, they need to be requested via online webform.

## Usage
- To install the necessary dependencies on Ubuntu 16.04, run:
## Installation and configuration
These tests require Python 2.7, awscli, boto3, PyYAML, and fabric<2.0. If you
have Python 2.7 and virtualenv installed, you can use requirements.txt to
create a virtual environment with a known set of dependencies by running:
```
sudo apt install awscli python-yaml python-boto3 fabric
virtualenv --python $(command -v python2.7 || command -v python2 || command -v python) venv
. ./venv/bin/activate
pip install --requirement requirements.txt
```

- Requires AWS IAM secrets to be set up with aws cli
- Requires an AWS associated keyfile <keyname>.pem

You can then configure AWS credentials and create a key by running:
```
>aws configure --profile <profile name>
[interactive: enter secrets for IAM role]
>aws ec2 create-key-pair --profile <profile name> --key-name <key name> --query 'KeyMaterial' --output text > whatever/path/you/want.pem
```
Note: whatever you pick for `<key name>` will be shown to other users with AWS access.

When prompted for a default region name, enter: `us-east-1`
When prompted for a default region name, enter: `us-east-1`.

then:
## Usage
To run tests, activate the virtual environment you created above and run:
```
>python multitester.py targets.yaml /path/to/your/key.pem <profile name> scripts/<test to run>
```
Expand Down
25 changes: 25 additions & 0 deletions tests/letstest/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
asn1crypto==0.24.0
awscli==1.16.157
bcrypt==3.1.6
boto3==1.9.146
botocore==1.12.147
cffi==1.12.3
colorama==0.3.9
cryptography==2.4.2
docutils==0.14
enum34==1.1.6
Fabric==1.14.1
futures==3.2.0
idna==2.8
ipaddress==1.0.22
jmespath==0.9.4
paramiko==2.4.2
pyasn1==0.4.5
pycparser==2.19
PyNaCl==1.3.0
python-dateutil==2.8.0
PyYAML==3.10
rsa==3.4.2
s3transfer==0.2.0
six==1.12.0
urllib3==1.24.3

0 comments on commit 26d0153

Please sign in to comment.