PostNewBookingItem

4

tests

0

failures

0

ignored

7.428s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canPostNewBookingItem() 1.544s passed
projectAgent_canAddDomainSetupBookingItemWithHostingAsset() 1.959s passed
projectAgent_canAddManagedWebspaceBookingItemWithHostingAsset() 2.367s passed
projectAgent_canPostNewBookingItemEvenIfHostingAssetCreationFails() 1.558s 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:35729/api/hs/booking/items/f5ba6470-d18a-4525-9de9-e8cf401dbda6
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:37:25 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "f5ba6470-d18a-4525-9de9-e8cf401dbda6",
    "type": "MANAGED_WEBSPACE",
    "caption": "some managed webspace",
    "validFrom": "2026-08-10",
    "validTo": null,
    "resources": {
        "SSD": 25,
        "Traffic": 250
    }
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
2026-08-10T16:37:25.233Z  WARN 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:37:25.233Z ERROR 380 --- [    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)=(f5ba6470-d18a-4525-9de9-e8cf401dbda6) is still referenced from table "asset".
DELETING leaked hs_booking.item#f5ba6470-d18a-4525-9de9-e8cf401dbda6 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)=(f5ba6470-d18a-4525-9de9-e8cf401dbda6) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#db75f74c-d630-413d-bd45-5d716e8d5388 SUCCEEDED
DELETING leaked hs_hosting.asset#db75f74c-d630-413d-bd45-5d716e8d5388 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)=(db75f74c-d630-413d-bd45-5d716e8d5388) is still referenced from table "asset".
DELETING leaked hs_hosting.asset#eb297029-0d8f-41a9-8c6c-3a7cad39a62f SUCCEEDED
2026-08-10T16:37:25.271Z  WARN 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:37:25.271Z ERROR 380 --- [    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)=(f5ba6470-d18a-4525-9de9-e8cf401dbda6) is still referenced from table "asset".
DELETING leaked hs_booking.item#f5ba6470-d18a-4525-9de9-e8cf401dbda6 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)=(f5ba6470-d18a-4525-9de9-e8cf401dbda6) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#db75f74c-d630-413d-bd45-5d716e8d5388 SUCCEEDED
DELETING leaked hs_booking.item#f5ba6470-d18a-4525-9de9-e8cf401dbda6 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:35729/api/hs/booking/items/d7aca950-4f0b-4b95-9447-a32eded143d6
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:37:26 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "d7aca950-4f0b-4b95-9447-a32eded143d6",
    "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#d7aca950-4f0b-4b95-9447-a32eded143d6 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:35729/api/hs/booking/items/9a838d04-8e59-4c0a-80de-698ea4f4b970
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:37:28 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "9a838d04-8e59-4c0a-80de-698ea4f4b970",
    "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#9a838d04-8e59-4c0a-80de-698ea4f4b970 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:35729/api/hs/booking/items/20f8833b-0ad7-472f-88a3-35f2f8e8ff5b
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:37:30 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "20f8833b-0ad7-472f-88a3-35f2f8e8ff5b",
    "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:37:30.291Z  WARN 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:37:30.291Z ERROR 380 --- [    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)=(20f8833b-0ad7-472f-88a3-35f2f8e8ff5b) is still referenced from table "asset".
DELETING leaked hs_booking.item#20f8833b-0ad7-472f-88a3-35f2f8e8ff5b 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)=(20f8833b-0ad7-472f-88a3-35f2f8e8ff5b) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#fe55f6fa-68aa-4739-a4e1-a26e563f5262 SUCCEEDED
DELETING leaked hs_hosting.asset#fe55f6fa-68aa-4739-a4e1-a26e563f5262 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)=(fe55f6fa-68aa-4739-a4e1-a26e563f5262) is still referenced from table "asset".
DELETING leaked hs_hosting.asset#80ada711-c1fa-4ac4-9c74-5183cc02ac64 SUCCEEDED
DELETING leaked hs_hosting.asset#06aa347a-5903-43de-9a0b-3df6da9bc3ca SUCCEEDED
DELETING leaked hs_hosting.asset#ea986a99-5b96-4934-96b4-d887b6c3ddb9 SUCCEEDED
2026-08-10T16:37:30.345Z  WARN 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:37:30.345Z ERROR 380 --- [    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)=(20f8833b-0ad7-472f-88a3-35f2f8e8ff5b) is still referenced from table "asset".
DELETING leaked hs_booking.item#20f8833b-0ad7-472f-88a3-35f2f8e8ff5b 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)=(20f8833b-0ad7-472f-88a3-35f2f8e8ff5b) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#fe55f6fa-68aa-4739-a4e1-a26e563f5262 SUCCEEDED
DELETING leaked hs_booking.item#20f8833b-0ad7-472f-88a3-35f2f8e8ff5b SUCCEEDED
projectAgent_canAddDomainSetupBookingItemWithHostingAsset(): TOTAL OBJECT COUNT (after): 210 -> 210