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()Gets the HTTP method override for this request, or null if not specified to randomly pick one of the methods specified in the spec.Selects the node on which to run this request.booleanhasBody()voidSets the HTTP method override for this request.voidsetNodeSelector(NodeSelector nodeSelector) Set the selector that decides which node can run this request.
-
Constructor Details
-
ApiCallSection
-
-
Method Details
-
getApi
-
copyWithNewApi
-
getMethod
Gets the HTTP method override for this request, or null if not specified to randomly pick one of the methods specified in the spec. -
setMethod
Sets the HTTP method override for this request. If null, a method will be randomly picked from the ones specified in the spec. -
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.
-