-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.13 KB
/
run-e2e-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: E2E Test Workflow For Firehose
on:
pull_request:
branches:
- main
- develop
jobs:
deploy-and-test:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
strategy:
matrix:
test-case: [test-without-filter, test-with-filter, test-with-invalid-log-group, test-with-secret-manager-false]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install AWS SAM CLI
run: |
pip install aws-sam-cli
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.AWS_E2E_TEST_ROLE }}
aws-region: us-east-2
- name: Run end to end tests for Firehose
env:
NEW_RELIC_USER_KEY: ${{ secrets.NEW_RELIC_USER_KEY }}
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
S3_BUCKET: unified-firehose-test-bucket
TEMPLATE_FILE_NAME: firehose-template.yaml
run: |
cd e2e_tests/
./build_template.sh
./firehose_e2e_tests.sh ${{ matrix.test-case }}