Class ApiCallSection
java.lang.Object
org.opensearch.test.rest.yaml.section.ApiCallSection
Represents a test fragment that contains the information needed to call an api
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddHeaders(Map<String, String> otherHeaders) voidgetApi()org.opensearch.client.NodeSelectorSelects the node on which to run this request.booleanhasBody()voidsetNodeSelector(org.opensearch.client.NodeSelector nodeSelector) Set the selector that decides which node can run this request.
-
Constructor Details
-
ApiCallSection
-
-
Method Details
-
getApi
-
getParams
-
addParam
-
addHeaders
-
getHeaders
-
getBodies
-
addBody
-
hasBody
public boolean hasBody() -
getNodeSelector
public org.opensearch.client.NodeSelector getNodeSelector()Selects the node on which to run this request. -
setNodeSelector
public void setNodeSelector(org.opensearch.client.NodeSelector nodeSelector) Set the selector that decides which node can run this request.
-