Class ClientYamlDocsTestClient

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public final class ClientYamlDocsTestClient
    extends ClientYamlTestClient
    Used to execute REST requests according to the docs snippets that need to be tests. Wraps a RestClient instance used to send the REST requests. Holds the ClientYamlSuiteRestSpec used to translate api calls into REST calls. Supports raw requests besides the usual api calls based on the rest spec.
    • Method Detail

      • callApi

        public ClientYamlTestResponse callApi​(java.lang.String apiName,
                                              java.util.Map<java.lang.String,​java.lang.String> params,
                                              org.apache.http.HttpEntity entity,
                                              java.util.Map<java.lang.String,​java.lang.String> headers,
                                              NodeSelector nodeSelector)
                                       throws java.io.IOException
        Description copied from class: ClientYamlTestClient
        Calls an api with the provided parameters and body
        Overrides:
        callApi in class ClientYamlTestClient
        Throws:
        java.io.IOException