2026-08-10T15:02:08.848Z INFO 235 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [net.hostsharing.hsadminng.hs.booking.item.HsBookingItemControllerRestTest$PostNewBookingItem]: PostNewBookingItem does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-08-10T15:02:08.852Z INFO 235 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration net.hostsharing.hsadminng.HsadminNgApplication for test class net.hostsharing.hsadminng.hs.booking.item.HsBookingItemControllerRestTest$PostNewBookingItem
MockHttpServletRequest:
HTTP Method = POST
Request URI = /api/hs/booking/items
Parameters = {}
Headers = [Content-Type:"application/json;charset=UTF-8", Authorization:"Bearer eyJraWQiOiJ0ZXN0LWtleSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzc3MjgsImp0aSI6ImM1Mzk2NGMwLTZjMWQtNGFlZC1hZWQ5LWYzMjAyNTgyMThmZiJ9.H-VrWeurRWVm5ugXQ5JzEOPArBNc_SE13Ch82QaF5GRqdiRUQewyE_ou5EPlmrWr7R34DkjmNAyDk5ji4pUGbgzISaMJITVZXqCieusWQGtTMVSe1H9F9lu-ewKDdgOTuZpH8uMJtUzhDhq_tHf9ptDHOtyiLZidEYK6V0FN4j1VN44bly20Ck6TzNl-796UNlP1IYAQC9CkfEgVoSBRSTwEht1Uds3N_iggi2d_7nHzgUnWqCP_ryIGN7_6jO_Rg9MmT5CAhyynUdB94vhcR0wxWHljtXsPkNxGUorRFfScLBnNjKRypNHFTshsPAeJFBQYXHhQ0w-Zbi56bI8LBA", Accept:"application/json", Content-Length:"227"]
Body = {
"project.uuid": "adfd073d-ec5c-4bb5-b81a-fb04c709b5ba",
"type": "MANAGED_SERVER",
"caption": "some new booking",
"validTo": "2026-09-10",
"resources": { "CPU": 12, "RAM": 4, "SSD": 100, "Traffic": 250 }
}
Session Attrs = {}
Handler:
Type = net.hostsharing.hsadminng.hs.booking.item.HsBookingItemController
Method = net.hostsharing.hsadminng.hs.booking.item.HsBookingItemController#postNewBookingItem(String, HsBookingItemInsertResource)
Async:
Async started = false
Async result = null
Resolved Exception:
Type = null
ModelAndView:
View name = null
View = null
Model = null
FlashMap:
Attributes = null
MockHttpServletResponse:
Status = 201
Error message = null
Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Location:"http://localhost/api/hs/booking/items/443239d4-16d2-49f0-a673-2b37e8b4f7d2", Content-Type:"application/json", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY"]
Content type = application/json
Body = {"uuid":"443239d4-16d2-49f0-a673-2b37e8b4f7d2","type":"MANAGED_SERVER","caption":"some new booking","validFrom":"2026-08-10","validTo":"2026-09-10","resources":{"CPU":12,"SSD":100,"RAM":4,"Traffic":250}}
Forwarded URL = null
Redirected URL = http://localhost/api/hs/booking/items/443239d4-16d2-49f0-a673-2b37e8b4f7d2
Cookies = []
MockHttpServletRequest:
HTTP Method = POST
Request URI = /api/hs/booking/items
Parameters = {}
Headers = [Content-Type:"application/json;charset=UTF-8", Authorization:"Bearer eyJraWQiOiJ0ZXN0LWtleSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzc3MjgsImp0aSI6ImIwNzgyMjc5LTM5Y2QtNDllMC04MWYxLTgwNWVhMzA0NzYyZCJ9.vsXlQRp_G4r9dlESJqtKlwd55eaVZb8Xct2R_NGe7_6ZCNV2sOA-zG-0KZePPuBXV4ZPsrsbJDI5ZtemtszCcAvCKYbjov5dpmzTEkNnYqMisxCMTLkfh2X3iOq_Ztwf1U2XPp2vHxBvBsmTTcbfb9FHW-18w7mDUYaw0tf7248Sor98uLpymGETUQhlxm2Y1cp_dX3IGCMejS6L8QpE4iLXzMWBriQ0RkFJH80_BJBh6wuZRDuwT10kKuMDefQuxOPCyj4i2HXXBRkCFsUhFmZvPWi4syH2wcGNm3JNAR21u44JWQ2fjjgGM0FvDrzECQ3pNS5v848gHA8d62OJgw", Accept:"application/json", Content-Length:"262"]
Body = {
"project.uuid": "e55cb494-f6c5-42ed-9f96-c7fda3613d25",
"type": "MANAGED_SERVER",
"caption": "some new booking",
"validFrom": "2026-09-10", // not specified => not accepted
"resources": { "CPU": 12, "RAM": 4, "SSD": 100, "Traffic": 250 }
}
Session Attrs = {}
Handler:
Type = net.hostsharing.hsadminng.hs.booking.item.HsBookingItemController
Method = net.hostsharing.hsadminng.hs.booking.item.HsBookingItemController#postNewBookingItem(String, HsBookingItemInsertResource)
Async:
Async started = false
Async result = null
Resolved Exception:
Type = org.springframework.http.converter.HttpMessageNotReadableException
ModelAndView:
View name = null
View = null
Model = null
FlashMap:
Attributes = null
MockHttpServletResponse:
Status = 400
Error message = null
Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Content-Type:"application/json", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY"]
Content type = application/json
Body = {"timestamp":"2026-08-10 03:02:08","path":"","statusCode":400,"statusPhrase":"Bad Request","message":"ERROR: [400] property \"validFrom\": JSON parse error: Unrecognized field \"validFrom\" (class net.hostsharing.hsadminng.hs.booking.generated.api.v1.model.HsBookingItemInsertResource), not marked as ignorable"}
Forwarded URL = null
Redirected URL = null
Cookies = []