Skip to content

Commit

Permalink
try with pulumi logs
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinFairise2 committed Aug 1, 2024
1 parent b73f095 commit d68d058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,14 @@ prod-deploy-demo-eks:
E2E_PRIVATE_KEY_PATH: /tmp/agent-qa-ssh-key
E2E_KEY_PAIR_NAME: ci.open-elemetry-collector-contrib
E2E_OUTPUT_DIR: $CI_PROJECT_DIR/e2e-output
E2E_PULUMI_VERBOSE_PROGRESS_STREAMS: true
script:
- cd e2e-tests && go test $TARGETS/... -v timeout 0 --args -docker_secret $(aws ecr get-login-password)

new-e2e-otel-collector:
extends: .new_e2e_template
needs: ['push-image-agent-qa']
variables:
TARGETS: ./
TARGETS: ./tests
TEAM: otel

8 changes: 4 additions & 4 deletions e2e-tests/otel_test.go → e2e-tests/tests/otel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ func (v *otelSuite) TestExecute() {
}
assert.EventuallyWithT(v.T(), func(t *assert.CollectT) {
metricsName, err := v.Env().FakeIntake.Client().GetMetricNames()
assert.NoError(v.T(), err)
assert.NoError(t, err)
fmt.Printf("metriiiics: %v", metricsName)
logs, err := v.Env().FakeIntake.Client().FilterLogs("")
for _, l := range logs {
fmt.Printf("logs : %v", l.Tags)
}

assert.NoError(v.T(), err)
assert.NotEmpty(v.T(), metricsName)
assert.NotEmpty(v.T(), logs)
assert.NoError(t, err)
assert.NotEmpty(t, metricsName)
assert.NotEmpty(t, logs)

}, 1*time.Minute, 10*time.Second)

Expand Down

0 comments on commit d68d058

Please sign in to comment.