org.opengis.cite.ogcapiprocesses10.general.GeneralHttp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ets-ogcapi-processes10 Show documentation
Show all versions of ets-ogcapi-processes10 Show documentation
Describe purpose of test suite.
package org.opengis.cite.ogcapiprocesses10.general;
import static io.restassured.http.Method.GET;
import static org.hamcrest.CoreMatchers.containsString;
import org.opengis.cite.ogcapiprocesses10.CommonFixture;
import org.testng.annotations.Test;
import io.restassured.response.Response;
/**
* A.2.1. General Tests
*
* @author Lyn Goltz
*/
public class GeneralHttp extends CommonFixture {
/**
*
* A.2.1.1. HTTP
*
* Abstract Test 1: /ats/core/http
* Test Purpose: Validate that the resource paths advertised through the API conform with HTTP 1.1 and, where
* appropriate, TLS.
* Requirement: /req/core/http
*
* Test Method:
* 1. All compliance tests shall be configured to use the HTTP 1.1 protocol exclusively.
* 2. For APIs which support HTTPS, all compliance tests shall be configured to use HTTP over TLS (RFC 2818) with
* their HTTP 1.1 protocol. (untested)
*
*/
@Test(description = "Implements A.2.1.1. HTTP, Abstract Test 1 (Requirement /req/core/http)")
public void testHttp() {
Response response = init().baseUri(rootUri.toString()).when().request(GET, "/");
this.rspEntity = response.getBody().asInputStream();
response.then().statusLine(containsString("HTTP/1.1"));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy