Class ApiCallSection
java.lang.Object
org.elasticsearch.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) voidcopyWithNewApi(String api) getApi()Selects the node on which to run this request.booleanhasBody()voidsetNodeSelector(NodeSelector nodeSelector) Set the selector that decides which node can run this request.
-
Constructor Details
-
ApiCallSection
-
-
Method Details
-
getApi
-
copyWithNewApi
-
getParams
-
addParam
-
addHeaders
-
getHeaders
-
getBodies
-
addBody
-
hasBody
public boolean hasBody() -
getNodeSelector
Selects the node on which to run this request. -
setNodeSelector
Set the selector that decides which node can run this request.
-