Interface ApiTestStep

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    ApiTestStep.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.102.0 (build e354887)",
               date="2024-08-06T18:16:18.997Z")
    @Stability(Experimental)
    public interface ApiTestStep
    extends software.amazon.jsii.JsiiSerializable
    • Method Detail

      • getName

        @Stability(Experimental)
        @NotNull
        String getName()
        (experimental) Name of test.
      • getPath

        @Stability(Experimental)
        @NotNull
        String getPath()
        (experimental) Path of HTTP request, relative to baseUrl.
      • getBody

        @Stability(Experimental)
        @Nullable
        default String getBody()
        (experimental) Optional body to include in HTTP request.

        Default: - no body included.

      • getExpectedValue

        @Stability(Experimental)
        @Nullable
        default Object getExpectedValue()
        (experimental) Expected value to compare against the jmesPath.

        Default: - undefined

      • getHeaders

        @Stability(Experimental)
        @Nullable
        default Map<String,​String> getHeaders()
        (experimental) Optional headers to include in HTTP request.

        Default: - no headers included.

      • getJmesPath

        @Stability(Experimental)
        @Nullable
        default String getJmesPath()
        (experimental) JMESPath to apply against the response from the HTTP request and compare against expected value.

        Default: - no JMESPath assertion will be performed.

      • getMethod

        @Stability(Experimental)
        @Nullable
        default String getMethod()
        (experimental) Optional method to for HTTP request.

        Default: - GET