Open sixcorners opened 8 years ago
I think we can emulate this with a header:
curl -X GET -H "Authorization: Basic Y2FybG9zOmNhcmxvcw==" "http://localhost:8080/somepath"
What about a
@When("^I make a DELETE call to \"([^\"]*)\" endpoint with headers:$")
public void iMakeADELETECallToEndpointWithHeaders(final String endpointUrl, final DataTable headers) throws Throwable {
final RequestSpecification spec = create()
.headers(headers.asMap(String.class, String.class));
execute(spec, "DELETE", endpointUrl);
}
step?
Actually.. maybe it would be better if the http verb for the other steps could be changed to arbitrary things?
What about a
step?