sahaya / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

KeyStoreSpec with non-fully qualified uri doesn't seem to work. #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

       RestAssured.baseURI="https://xx.xx.xx.xx";
       RestAssured.keystore("test","test1234");
       given().keystore("test", "test1234")
              .body("......")
              .post("/rest/a/login");

This ought to work but it doesn't. The reason is probably because the port is 
defaulted to 8080 for the keystorespec:

keyStoreSpec.apply(http, isFullyQualifiedUri == true && port == 
DEFAULT_HTTP_TEST_PORT ? DEFAULT_HTTPS_PORT : port)

in RequestSpecificationImpl.

A work-around is probably to specify a port using RestAssured.port = 443;

Original issue reported on code.google.com by johan.ha...@gmail.com on 30 May 2012 at 6:38

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 18 Jan 2014 at 5:04