forked from jaegertracing/jaeger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jaeger-v2] add elasticsearch & opensearch e2e integration test (jaeg…
…ertracing#5345) ## Which problem is this PR solving? - part of jaegertracing#5254 ## Description of the changes - Utilizing existing `StorageIntegration` to test the jaeger-v2 OTel Collector and gRPC storage backend with the provided config file at `cmd/jaeger/config-elasticsearch.yaml`. ## How was this change tested? - Start a elasticsearch or opensearch docker instance. - Run `STORAGE=elasticsearch SPAN_STORAGE_TYPE=elasticsearch make jaeger-v2-storage-integration-test` ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` --------- Signed-off-by: Pushkar Mishra <[email protected]>
- Loading branch information
1 parent
a15962b
commit fab02d8
Showing
10 changed files
with
148 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) 2024 The Jaeger Authors. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package integration | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/jaegertracing/jaeger/plugin/storage/integration" | ||
) | ||
|
||
func TestESStorage(t *testing.T) { | ||
integration.SkipUnlessEnv(t, "elasticsearch") | ||
|
||
s := &E2EStorageIntegration{ | ||
ConfigFile: "../../config-elasticsearch.yaml", | ||
StorageIntegration: integration.StorageIntegration{ | ||
CleanUp: purge, | ||
Fixtures: integration.LoadAndParseQueryTestCases(t, "fixtures/queries_es.json"), | ||
SkipBinaryAttrs: true, | ||
GetOperationsMissingSpanKind: true, | ||
}, | ||
} | ||
s.e2eInitialize(t, "elasticsearch") | ||
t.Cleanup(func() { | ||
s.e2eCleanUp(t) | ||
}) | ||
s.RunSpanStoreTests(t) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) 2024 The Jaeger Authors. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package integration | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/jaegertracing/jaeger/plugin/storage/integration" | ||
) | ||
|
||
func TestOSStorage(t *testing.T) { | ||
integration.SkipUnlessEnv(t, "opensearch") | ||
s := &E2EStorageIntegration{ | ||
ConfigFile: "../../config-opensearch.yaml", | ||
StorageIntegration: integration.StorageIntegration{ | ||
CleanUp: purge, | ||
Fixtures: integration.LoadAndParseQueryTestCases(t, "fixtures/queries_es.json"), | ||
SkipBinaryAttrs: true, | ||
GetOperationsMissingSpanKind: true, | ||
}, | ||
} | ||
s.e2eInitialize(t, "opensearch") | ||
t.Cleanup(func() { | ||
s.e2eCleanUp(t) | ||
}) | ||
s.RunSpanStoreTests(t) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters