PostNewBookingItem

4

tests

0

failures

0

ignored

8.049s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canPostNewBookingItem() 1.829s passed
projectAgent_canAddDomainSetupBookingItemWithHostingAsset() 1.761s passed
projectAgent_canAddManagedWebspaceBookingItemWithHostingAsset() 2.732s passed
projectAgent_canPostNewBookingItemEvenIfHostingAssetCreationFails() 1.727s passed

Standard output

ContextBasedTestWithCleanup.retrieveInitialTestData
projectAgent_canAddManagedWebspaceBookingItemWithHostingAsset(): TOTAL OBJECT COUNT (initial): 210 -> 210
HTTP/1.1 201 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: http://localhost:44731/api/hs/booking/items/97416378-4c0a-4e82-b117-f61c5482b420
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
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 16:29:26 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "97416378-4c0a-4e82-b117-f61c5482b420",
    "type": "MANAGED_WEBSPACE",
    "caption": "some managed webspace",
    "validFrom": "2026-08-10",
    "validTo": null,
    "resources": {
        "SSD": 25,
        "Traffic": 250
    }
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
2026-08-10T16:29:26.262Z  WARN 382 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:29:26.262Z ERROR 382 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "item" violates foreign key constraint "asset_bookingitemuuid_fkey" on table "asset"
  Detail: Key (uuid)=(97416378-4c0a-4e82-b117-f61c5482b420) is still referenced from table "asset".
DELETING leaked hs_booking.item#97416378-4c0a-4e82-b117-f61c5482b420 FAILED org.hibernate.exception.ConstraintViolationException: JDBC exception executing SQL [DELETE FROM hs_booking.item WHERE uuid=?] [ERROR: update or delete on table "item" violates foreign key constraint "asset_bookingitemuuid_fkey" on table "asset"
  Detail: Key (uuid)=(97416378-4c0a-4e82-b117-f61c5482b420) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#85c65f37-f42f-4aef-98c3-266c351dddb9 SUCCEEDED
DELETING leaked hs_hosting.asset#85c65f37-f42f-4aef-98c3-266c351dddb9 FAILED org.springframework.dao.DataIntegrityViolationException: Hibernate transaction: Unable to commit against JDBC Connection; ERROR: update or delete on table "asset" violates foreign key constraint "asset_parentassetuuid_fkey" on table "asset"
  Detail: Key (uuid)=(85c65f37-f42f-4aef-98c3-266c351dddb9) is still referenced from table "asset".
DELETING leaked hs_hosting.asset#4aec1da0-20eb-41d6-8a71-807ddd8cad98 SUCCEEDED
2026-08-10T16:29:26.380Z  WARN 382 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:29:26.380Z ERROR 382 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "item" violates foreign key constraint "asset_bookingitemuuid_fkey" on table "asset"
  Detail: Key (uuid)=(97416378-4c0a-4e82-b117-f61c5482b420) is still referenced from table "asset".
DELETING leaked hs_booking.item#97416378-4c0a-4e82-b117-f61c5482b420 FAILED org.hibernate.exception.ConstraintViolationException: JDBC exception executing SQL [DELETE FROM hs_booking.item WHERE uuid=?] [ERROR: update or delete on table "item" violates foreign key constraint "asset_bookingitemuuid_fkey" on table "asset"
  Detail: Key (uuid)=(97416378-4c0a-4e82-b117-f61c5482b420) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#85c65f37-f42f-4aef-98c3-266c351dddb9 SUCCEEDED
DELETING leaked hs_booking.item#97416378-4c0a-4e82-b117-f61c5482b420 SUCCEEDED
projectAgent_canAddManagedWebspaceBookingItemWithHostingAsset(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canPostNewBookingItem(): TOTAL OBJECT COUNT (initial): 210 -> 210
HTTP/1.1 201 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: http://localhost:44731/api/hs/booking/items/91bf5b2a-8f4d-4631-9da5-0a7bd2284ffa
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
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 16:29:28 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "91bf5b2a-8f4d-4631-9da5-0a7bd2284ffa",
    "type": "MANAGED_SERVER",
    "caption": "some new booking",
    "validFrom": "2026-08-10",
    "validTo": "2026-09-10",
    "resources": {
        "CPU": 12,
        "SSD": 100,
        "RAM": 4,
        "Traffic": 250
    }
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING leaked hs_booking.item#91bf5b2a-8f4d-4631-9da5-0a7bd2284ffa SUCCEEDED
globalAdmin_canPostNewBookingItem(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
projectAgent_canPostNewBookingItemEvenIfHostingAssetCreationFails(): TOTAL OBJECT COUNT (initial): 210 -> 210
HTTP/1.1 201 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: http://localhost:44731/api/hs/booking/items/c8886b15-451f-408a-8935-5ad40d2d1553
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
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 16:29:29 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "c8886b15-451f-408a-8935-5ad40d2d1553",
    "type": "DOMAIN_SETUP",
    "caption": "some new domain-setup booking",
    "validFrom": "2026-08-10",
    "validTo": null,
    "resources": {
        "domainName": "example.org",
        "verificationCode": "just-a-fake-verification-code"
    }
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING leaked hs_booking.item#c8886b15-451f-408a-8935-5ad40d2d1553 SUCCEEDED
projectAgent_canPostNewBookingItemEvenIfHostingAssetCreationFails(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
projectAgent_canAddDomainSetupBookingItemWithHostingAsset(): TOTAL OBJECT COUNT (initial): 210 -> 210
HTTP/1.1 201 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: http://localhost:44731/api/hs/booking/items/34a5f730-8fb5-4314-ae6b-5fbeb0ac5aea
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
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 16:29:31 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "34a5f730-8fb5-4314-ae6b-5fbeb0ac5aea",
    "type": "DOMAIN_SETUP",
    "caption": "Domain-Setup for example.org",
    "validFrom": "2026-08-10",
    "validTo": null,
    "resources": {
        "domainName": "example.org",
        "verificationCode": "just-a-fake-verification-code"
    }
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
2026-08-10T16:29:31.665Z  WARN 382 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:29:31.665Z ERROR 382 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "item" violates foreign key constraint "asset_bookingitemuuid_fkey" on table "asset"
  Detail: Key (uuid)=(34a5f730-8fb5-4314-ae6b-5fbeb0ac5aea) is still referenced from table "asset".
DELETING leaked hs_booking.item#34a5f730-8fb5-4314-ae6b-5fbeb0ac5aea FAILED org.hibernate.exception.ConstraintViolationException: JDBC exception executing SQL [DELETE FROM hs_booking.item WHERE uuid=?] [ERROR: update or delete on table "item" violates foreign key constraint "asset_bookingitemuuid_fkey" on table "asset"
  Detail: Key (uuid)=(34a5f730-8fb5-4314-ae6b-5fbeb0ac5aea) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#5f07d409-fedf-4f80-8185-8d3311563beb SUCCEEDED
DELETING leaked hs_hosting.asset#5f07d409-fedf-4f80-8185-8d3311563beb FAILED org.springframework.dao.DataIntegrityViolationException: Hibernate transaction: Unable to commit against JDBC Connection; ERROR: update or delete on table "asset" violates foreign key constraint "asset_parentassetuuid_fkey" on table "asset"
  Detail: Key (uuid)=(5f07d409-fedf-4f80-8185-8d3311563beb) is still referenced from table "asset".
DELETING leaked hs_hosting.asset#d11524f5-6f41-4bb2-8931-077d0b196096 SUCCEEDED
DELETING leaked hs_hosting.asset#f1529c6d-dbe5-44de-9964-820c556b9cfa SUCCEEDED
DELETING leaked hs_hosting.asset#fdaaa284-0690-448e-811d-8e2fa913e5bc SUCCEEDED
2026-08-10T16:29:31.709Z  WARN 382 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:29:31.709Z ERROR 382 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "item" violates foreign key constraint "asset_bookingitemuuid_fkey" on table "asset"
  Detail: Key (uuid)=(34a5f730-8fb5-4314-ae6b-5fbeb0ac5aea) is still referenced from table "asset".
DELETING leaked hs_booking.item#34a5f730-8fb5-4314-ae6b-5fbeb0ac5aea FAILED org.hibernate.exception.ConstraintViolationException: JDBC exception executing SQL [DELETE FROM hs_booking.item WHERE uuid=?] [ERROR: update or delete on table "item" violates foreign key constraint "asset_bookingitemuuid_fkey" on table "asset"
  Detail: Key (uuid)=(34a5f730-8fb5-4314-ae6b-5fbeb0ac5aea) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#5f07d409-fedf-4f80-8185-8d3311563beb SUCCEEDED
DELETING leaked hs_booking.item#34a5f730-8fb5-4314-ae6b-5fbeb0ac5aea SUCCEEDED
projectAgent_canAddDomainSetupBookingItemWithHostingAsset(): TOTAL OBJECT COUNT (after): 210 -> 210