Skip to content

test: add instructions for running the smoketest #519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,36 @@ The `Makefile` also provides a `build-and-publish` command which will perform th
AWS_ACCESS_KEY_ID=A...X \
AWS_SECRET_ACCESS_KEY=h...E \
make build-and-publish

## Running smoketests

If you haven't yet, go to https://elastic-observability.signin.aws.amazon.com/console ,
login and and create an API key (drop down your login on the right top corner, select "Security credentials").

On the command line, export the environment variables
```
export EC_API_KEY="..."
export AWS_PROFILE=observability
```
The `AWS_PROFILE` value is the profile that you created with `aws configure --profile observability`.
In `~/.aws/config` there should be an entry like this
```
[profile observability]
region = eu-central-1
```

Now run the smoke tests with
```
make smoketest/run
```

If you want to keep the AWS Lambda test environment for manual testing
```
make smoketest/run SKIP_DESTROY=1
```
Now you can find your environment under Lambda/Functions in the AWS console.

Destroy the environment with
```
make smoketest/destroy
```
Loading