Skip to content

Commit 2e01489

Browse files
committed
test: add instructions for running the smoketest
1 parent ce28865 commit 2e01489

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Diff for: TESTING.md

+33
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,36 @@ The `Makefile` also provides a `build-and-publish` command which will perform th
5454
AWS_ACCESS_KEY_ID=A...X \
5555
AWS_SECRET_ACCESS_KEY=h...E \
5656
make build-and-publish
57+
58+
## Running smoketests
59+
60+
If you haven't yet, go to https://elastic-observability.signin.aws.amazon.com/console ,
61+
login and and create an API key (drop down your login on the right top corner, select "Security credentials").
62+
63+
On the command line, export the environment variables
64+
```
65+
export EC_API_KEY="..."
66+
export AWS_PROFILE=observability
67+
```
68+
The `AWS_PROFILE` value is the profile that you created with `aws configure --profile observability`.
69+
In `~/.aws/config` there should be an entry like this
70+
```
71+
[profile observability]
72+
region = eu-central-1
73+
```
74+
75+
Now run the smoke tests with
76+
```
77+
make smoketest/run
78+
```
79+
80+
If you want to keep the AWS Lambda test environment for manual testing
81+
```
82+
make smoketest/run SKIP_DESTROY=1
83+
```
84+
Now you can find your environment under Lambda/Functions in the AWS console.
85+
86+
Destroy the environment with
87+
```
88+
make smoketest/destroy
89+
```

0 commit comments

Comments
 (0)