PostNewBookingItem

4

tests

0

failures

0

ignored

7.829s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canPostNewBookingItem() 1.526s passed
projectAgent_canAddDomainSetupBookingItemWithHostingAsset() 2.118s passed
projectAgent_canAddManagedWebspaceBookingItemWithHostingAsset() 2.533s passed
projectAgent_canPostNewBookingItemEvenIfHostingAssetCreationFails() 1.652s 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:37195/api/hs/booking/items/56395aa8-26e8-422f-8ab9-894ca96f7890
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 15:03:32 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "56395aa8-26e8-422f-8ab9-894ca96f7890",
    "type": "MANAGED_WEBSPACE",
    "caption": "some managed webspace",
    "validFrom": "2026-08-10",
    "validTo": null,
    "resources": {
        "SSD": 25,
        "Traffic": 250
    }
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
2026-08-10T15:03:33.016Z  WARN 371 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T15:03:33.020Z ERROR 371 --- [    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)=(56395aa8-26e8-422f-8ab9-894ca96f7890) is still referenced from table "asset".
DELETING leaked hs_booking.item#56395aa8-26e8-422f-8ab9-894ca96f7890 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)=(56395aa8-26e8-422f-8ab9-894ca96f7890) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#b41a3ffa-ab53-41f5-87de-5ea93299d9ce SUCCEEDED
DELETING leaked hs_hosting.asset#b41a3ffa-ab53-41f5-87de-5ea93299d9ce 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)=(b41a3ffa-ab53-41f5-87de-5ea93299d9ce) is still referenced from table "asset".
DELETING leaked hs_hosting.asset#3fbc6d7d-1e71-4908-85f8-3233bd923338 SUCCEEDED
2026-08-10T15:03:33.111Z  WARN 371 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T15:03:33.112Z ERROR 371 --- [    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)=(56395aa8-26e8-422f-8ab9-894ca96f7890) is still referenced from table "asset".
DELETING leaked hs_booking.item#56395aa8-26e8-422f-8ab9-894ca96f7890 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)=(56395aa8-26e8-422f-8ab9-894ca96f7890) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#b41a3ffa-ab53-41f5-87de-5ea93299d9ce SUCCEEDED
DELETING leaked hs_booking.item#56395aa8-26e8-422f-8ab9-894ca96f7890 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:37195/api/hs/booking/items/e744d14d-1655-4fb5-8fa5-32843a5a035a
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 15:03:34 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "e744d14d-1655-4fb5-8fa5-32843a5a035a",
    "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#e744d14d-1655-4fb5-8fa5-32843a5a035a 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:37195/api/hs/booking/items/9e67ba78-bc58-4544-92b7-c79f9ccbe032
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 15:03:36 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "9e67ba78-bc58-4544-92b7-c79f9ccbe032",
    "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#9e67ba78-bc58-4544-92b7-c79f9ccbe032 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:37195/api/hs/booking/items/0098cd4c-cd2f-49a7-869a-451e943c525f
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 15:03:38 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "0098cd4c-cd2f-49a7-869a-451e943c525f",
    "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-10T15:03:38.329Z  WARN 371 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T15:03:38.329Z ERROR 371 --- [    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)=(0098cd4c-cd2f-49a7-869a-451e943c525f) is still referenced from table "asset".
DELETING leaked hs_booking.item#0098cd4c-cd2f-49a7-869a-451e943c525f 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)=(0098cd4c-cd2f-49a7-869a-451e943c525f) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#e02d50ee-7809-4931-bed7-0a65e60a9c0f SUCCEEDED
DELETING leaked hs_hosting.asset#e02d50ee-7809-4931-bed7-0a65e60a9c0f 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)=(e02d50ee-7809-4931-bed7-0a65e60a9c0f) is still referenced from table "asset".
DELETING leaked hs_hosting.asset#b69a4872-613d-45a0-bdb6-b45903896c39 SUCCEEDED
DELETING leaked hs_hosting.asset#350d7506-f9c0-43b4-881f-a8e38933f8ff SUCCEEDED
DELETING leaked hs_hosting.asset#45b17798-3e26-4eed-a4ee-b47cf53c3efd SUCCEEDED
2026-08-10T15:03:38.411Z  WARN 371 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T15:03:38.411Z ERROR 371 --- [    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)=(0098cd4c-cd2f-49a7-869a-451e943c525f) is still referenced from table "asset".
DELETING leaked hs_booking.item#0098cd4c-cd2f-49a7-869a-451e943c525f 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)=(0098cd4c-cd2f-49a7-869a-451e943c525f) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#e02d50ee-7809-4931-bed7-0a65e60a9c0f SUCCEEDED
DELETING leaked hs_booking.item#0098cd4c-cd2f-49a7-869a-451e943c525f SUCCEEDED
projectAgent_canAddDomainSetupBookingItemWithHostingAsset(): TOTAL OBJECT COUNT (after): 210 -> 210