Skip to content

Commit

Permalink
testing time of alias test case
Browse files Browse the repository at this point in the history
Signed-off-by: Ronnak Saxena <[email protected]>
  • Loading branch information
ronnaksaxena committed Sep 7, 2023
1 parent 79f68e5 commit 768a2bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/multi-node-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Run integration tests with multi node config
run: ./gradlew integTest -Dtests.class="org.opensearch.indexmanagement.rollup.interceptor.ResponseInterceptorIT"
run: ./gradlew integTest -Dtests.class="org.opensearch.indexmanagement.rollup.interceptor.ResponseInterceptorIT" -Dtests.method="test search multiple live data indices and a rollup data index with overlap" -PcustomDistributionUrl="https://artifacts.opensearch.org/snapshots/core/opensearch/2.9.0-SNAPSHOT/opensearch-min-2.9.0-SNAPSHOT-darwin-x64-latest.tar.gz"
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ class ResponseInterceptorIT : RollupRestTestCase() {
val expectedAvg = expectedAggs.getValue("avg_passenger_count")["value"]
refreshAllIndices()
// Validate result from searching rollup-nyc-taxi-data, searching nyc-taxi-data
val start = System.currentTimeMillis()
var searchAllResponse = client().makeRequest("POST", "/rollup-nyc-taxi-data,nyc-taxi-data/_search", emptyMap(), StringEntity(aggReq, ContentType.APPLICATION_JSON))
assertTrue(searchAllResponse.restStatus() == RestStatus.OK)
var responseAggs = searchAllResponse.asMap()["aggregations"] as Map<String, Map<String, Any>>
Expand Down Expand Up @@ -748,5 +749,7 @@ class ResponseInterceptorIT : RollupRestTestCase() {
expectedAvg,
responseAggs.getValue("avg_passenger_count")["value"]
)
val elapsedTimeMs = System.currentTimeMillis() - start
assertEquals("ronsax search reqeust took $elapsedTimeMs ms", true, false)
}
}

0 comments on commit 768a2bc

Please sign in to comment.