-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (38 loc) · 1.27 KB
/
otel-integration-e2e-test.yml
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
name: Otel Integration Helm Lint And Install Test
on:
pull_request:
paths:
- 'otel-integration/k8s-helm/**'
jobs:
otel-integration-agent-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.21.x
- name: Setup cluster
uses: ./.github/actions/setup
with:
create-kind-cluster: "true"
cluster-name: "otel-integration-agent-e2e"
- name: Setup Secret
run: kubectl create secret generic coralogix-keys --from-literal=PRIVATE_KEY=123
- name: Install chart for testing
run: |
cd ./otel-integration/k8s-helm
helm dependency build
helm upgrade --install otel-integration-agent-e2e . \
--set global.clusterName="otel-integration-agent-e2e" \
--set global.domain="coralogix.com" \
-f ./values.yaml \
-f ./e2e-test/testdata/values-e2e-test.yaml
- name: Run E2E test
run: |
kubectl wait --for=condition=ready --timeout=300s pod -l component=agent-collector
cd ./otel-integration/k8s-helm/e2e-test/
go test -v -run=TestE2E_Agent ./...