Skip to content

Commit 6cae4d1

Browse files
committed
minor fix
Signed-off-by: Manik Mehta <mehtamanik96@gmail.com>
1 parent db33177 commit 6cae4d1

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

cmd/jaeger/internal/integration/opensearch_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,14 @@ func TestOpenSearchStorage_DataStream(t *testing.T) {
4545
integration.SkipUnlessEnv(t, integration.StorageOpenSearch)
4646
runRotationSmokeTest(t, "../../config-opensearch-data-stream.yaml", "opensearch", func(*testing.T) {})
4747
}
48+
49+
func TestOpenSearch_BackwardCompatibility(t *testing.T) {
50+
integration.SkipUnlessEnv(t, integration.StorageOpenSearch)
51+
s := E2EStorageIntegration{
52+
ConfigFile: "../../config-opensearch.yaml",
53+
StorageIntegration: integration.StorageIntegration{
54+
Fixtures: integration.LoadAndParseQueryTestCases(t, "fixtures/queries_es.json"),
55+
},
56+
}
57+
runBackwardCompatibilityTests(t, "opensearch", s, capabilities.OpenSearch(), capabilities.OpenSearch())
58+
}

scripts/e2e/elasticsearch.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ db_is_up=
1111
success="false"
1212

1313
usage() {
14-
echo "Usage: $0 <backend> <backend_version> <storage_test>"
14+
echo "Usage: $0 <backend> <backend_version> <storage_test> <backward_compatibility>"
1515
echo " backend: elasticsearch | opensearch"
1616
echo " backend_version: major version, e.g. 7.x"
1717
echo " storage_test: direct | e2e"
18+
echo " backward_compatibility: true | false, default=false"
1819
exit 1
1920
}
2021

0 commit comments

Comments
 (0)