.pathInfo( path ).queryParam( "user.name", username ).respond()
.status( HttpStatus.SC_OK )
.content( request.getBytes() )
.contentType( contentType.toString() );
ResponseSpecification response = given()
// .log().all()
.auth()
.preemptive()
.basic( username, password )
.header( "X-XSRF-Header", "jksdhfkhdsf" )
.expect()
// .log().all()
.statusCode( HttpStatus.SC_OK )
.contentType( contentType );
if ( running ) {
response.content(
"app.trackingUrl",
anyOf(
startsWith( "http://" + gatewayHostName + ":" + gatewayAddress.getPort() + "/" ),
startsWith( "http://" + gatewayAddrName + ":" + gatewayAddress.getPort() + "/" ) ) );
} else {
response.content( "app.trackingUrl", isEmptyString() );
}
response.content( "app.amContainerLogs", isEmptyString() )
.content( "app.amHostHttpAddress", isEmptyString() )
.when()
.get( gatewayPath );
driver.assertComplete();