Plugin REST API

General Info

  • Validation of HTTP responses (headers, codes, content, etc.)

  • Validation of application/json content in response using JSON Path

  • Constructing and sending of HTTP requests

Installation

Example 1. build.gradle
implementation(group: 'org.vividus', name: 'vividus-plugin-rest-api', version: '0.2.3')

Properties

To be implemented

Steps

Verify secure protocols supported by server

Info

Checks that a server defined by the hostname supports secure protocols listed in the protocols parameter.

Wording

Then server `$hostname` supports secure protocols that $rule `$protocols`

Parameters

  1. $hostname - server hostname.

  2. $rule - Collection Comparison Rule

  3. $protocols - secure protocols that are expected to match specified $rule

Usage

Example 2. Sample.story
Scenario: Verify that the server supports TLSv1.3 and TLSv1.2 protocols
Then server `vividus-test-site.herokuapp.com` supports secure protocols that contain `TLSv1.3,TLSv1.2`