removed auth from picture upload

This commit is contained in:
verboomp
2026-02-02 08:13:28 +01:00
parent 94c6becf9f
commit 33ee33d55c
7 changed files with 29 additions and 31 deletions

View File

@@ -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();