Skip to content

Commit

Permalink
Make sure read from system index also uses adminClient
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks committed Sep 10, 2024
1 parent 0248bd4 commit 9d7b811
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ abstract class TransformRestTestCase : IndexManagementRestTestCase() {

protected fun getTransformMetadata(metadataId: String): TransformMetadata {
val response =
client().makeRequest(
adminClient().makeRequest(
"GET", "$INDEX_MANAGEMENT_INDEX/_doc/$metadataId", null, BasicHeader(HttpHeaders.CONTENT_TYPE, "application/json"),
)
assertEquals("Unable to get transform metadata $metadataId", RestStatus.OK, response.restStatus())
Expand Down

0 comments on commit 9d7b811

Please sign in to comment.