You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -5,26 +5,30 @@ This is a test runner for localstack and terraform. It will run a test cases fro
5
5
Purpose of this project is to externalize the test cases from the localstack repo and run them against localstack to gather parity metrics.
6
6
7
7
## Installation
8
-
1. Clone the repository
9
-
2. Run `python -m virtualenv venv` to create a virtual environment
10
-
3. Run `source venv/bin/activate` to activate the virtual environment
11
-
4. Run `pip install -r requirements.txt` to install the dependencies
8
+
1. Clone the repository with submodules`
9
+
2. Run `make venv` to create a virtual environment
10
+
3. Run `make install` to install the dependencies
12
11
13
12
## How to run?
14
-
1. Run `python main.py patch` to apply the patch to the terraform provider aws
15
-
2. Now you are ready to use `pytest` commands to list and run test cases from golang
13
+
1. Run `python -m terraform_pytest.main patch` to apply the patch to the terraform provider aws
14
+
2. Run `python -m terraform_pytest.main build -s s3` to build testing binary for the golang module
15
+
3Now you are ready to use `python -m pytest` commands to list and run test cases from golang
16
16
17
17
## How to run test cases?
18
-
- To list down all the test case from a specific service, run `pytest terraform-provider-aws/internal/service/<service> --collect-only -q`
19
-
- To run a specific test case, run `pytest terraform-provider-aws/internal/service/<service>/<test-file> -k <test-case-name> --ls-start` or `pytest terraform-provider-aws/internal/service/<service>/<test-file>::<test-case-name> --ls-start`
20
-
- Additional environment variables can be added by appending it in the start of the command, i.e. `AWS_ALTERNATE_REGION='us-west-2' pytest terraform-provider-aws/internal/service/<service>/<test-file>::<test-case-name> --ls-start`
18
+
- To list down all the test case from a specific service, run `python -m pytest terraform-provider-aws/internal/service/<service> --collect-only -q`
19
+
- To run a specific test case, run `python -m pytest terraform-provider-aws/internal/service/<service>/<test-file> -k <test-case-name> --ls-start` or `python -m pytest terraform-provider-aws/internal/service/<service>/<test-file>::<test-case-name> --ls-start`
20
+
- Additional environment variables can be added by appending it in the start of the command, i.e. `AWS_ALTERNATE_REGION='us-west-2' python -m pytest terraform-provider-aws/internal/service/<service>/<test-file>::<test-case-name> --ls-start`
21
21
22
22
## Default environment variables
23
-
-**TF_LOG**: ``debug``,
24
-
-**TF_ACC**: ``1``,
25
-
-**AWS_ACCESS_KEY_ID**: ``test``,
26
-
-**AWS_SECRET_ACCESS_KEY**: ``test``,
27
-
-**AWS_DEFAULT_REGION**: ``'us-east-1``'
23
+
-**TF_ACC**: `1`
24
+
-**AWS_ACCESS_KEY_ID**: `test`
25
+
-**AWS_SECRET_ACCESS_KEY**: `test`
26
+
-**AWS_DEFAULT_REGION**: `us-west-1`
27
+
-**AWS_ALTERNATE_ACCESS_KEY_ID**: `test`
28
+
-**AWS_ALTERNATE_SECRET_ACCESS_KEY**: `test`
29
+
-**AWS_ALTERNATE_SECRET_ACCESS_KEY**: `test`
30
+
-**AWS_ALTERNATE_REGION**: `us-east-2`
31
+
-**AWS_THIRD_REGION**: `eu-west-1`
28
32
29
33
## Options
30
34
-`--ls-start`: Start localstack instance before running the test cases
0 commit comments