removed auth from picture upload
This commit is contained in:
Binary file not shown.
@@ -44,11 +44,11 @@ public class CustomerPictureResourceTest extends AbstractRestTest {
|
||||
assertEquals(3, customerCount());
|
||||
assertEquals(5, pictureCount());
|
||||
|
||||
String authorization = getBasicHeader();
|
||||
LOG.info("authorization: " + authorization);
|
||||
//String authorization = getBasicHeader();
|
||||
//LOG.info("authorization: " + authorization);
|
||||
String path = deploymentURL + PATH;
|
||||
Request request = Request.Post(path).addHeader("Accept", "application/json; charset=utf-8")
|
||||
.addHeader("Authorization", authorization)
|
||||
//.addHeader("Authorization", authorization)
|
||||
.bodyFile(new File(BASE_UPLOAD + "add.json"), ContentType.APPLICATION_JSON);
|
||||
|
||||
HttpResponse httpResponse = executeRequest(request);
|
||||
@@ -102,6 +102,7 @@ public class CustomerPictureResourceTest extends AbstractRestTest {
|
||||
System.out.println(text);
|
||||
}
|
||||
|
||||
/*
|
||||
@Test
|
||||
@Order(1)
|
||||
public void doAddCustomerPictureNoAuth() throws IOException {
|
||||
@@ -115,7 +116,7 @@ public class CustomerPictureResourceTest extends AbstractRestTest {
|
||||
int code = httpResponse.getStatusLine().getStatusCode();
|
||||
assertEquals(401, code);
|
||||
}
|
||||
|
||||
*/
|
||||
public static void main(String[] args) throws IOException {
|
||||
|
||||
var test = new CustomerPictureResourceTest();
|
||||
|
||||
Reference in New Issue
Block a user