PostNewBookingItem

4

tests

0

failures

0

ignored

8.249s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canPostNewBookingItem() 1.635s passed
projectAgent_canAddDomainSetupBookingItemWithHostingAsset() 1.870s passed
projectAgent_canAddManagedWebspaceBookingItemWithHostingAsset() 2.927s passed
projectAgent_canPostNewBookingItemEvenIfHostingAssetCreationFails() 1.817s 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:39879/api/hs/booking/items/588bf0d2-db37-4fee-8bdb-5e6125f1ef7e
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 13:32:59 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "588bf0d2-db37-4fee-8bdb-5e6125f1ef7e",
    "type": "MANAGED_WEBSPACE",
    "caption": "some managed webspace",
    "validFrom": "2026-08-10",
    "validTo": null,
    "resources": {
        "SSD": 25,
        "Traffic": 250
    }
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
2026-08-10T13:33:00.084Z  WARN 378 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T13:33:00.084Z ERROR 378 --- [    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)=(588bf0d2-db37-4fee-8bdb-5e6125f1ef7e) is still referenced from table "asset".
DELETING leaked hs_booking.item#588bf0d2-db37-4fee-8bdb-5e6125f1ef7e 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)=(588bf0d2-db37-4fee-8bdb-5e6125f1ef7e) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#668f49de-448e-4049-8e48-fff43db829f1 SUCCEEDED
DELETING leaked hs_hosting.asset#668f49de-448e-4049-8e48-fff43db829f1 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)=(668f49de-448e-4049-8e48-fff43db829f1) is still referenced from table "asset".
DELETING leaked hs_hosting.asset#6ec2a109-d517-48c7-92c3-2c6b4d2b2cfb SUCCEEDED
2026-08-10T13:33:00.140Z  WARN 378 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T13:33:00.140Z ERROR 378 --- [    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)=(588bf0d2-db37-4fee-8bdb-5e6125f1ef7e) is still referenced from table "asset".
DELETING leaked hs_booking.item#588bf0d2-db37-4fee-8bdb-5e6125f1ef7e 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)=(588bf0d2-db37-4fee-8bdb-5e6125f1ef7e) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#668f49de-448e-4049-8e48-fff43db829f1 SUCCEEDED
DELETING leaked hs_booking.item#588bf0d2-db37-4fee-8bdb-5e6125f1ef7e 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:39879/api/hs/booking/items/4e95b191-4868-4088-a9ad-ed220c941b2e
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 13:33:01 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "4e95b191-4868-4088-a9ad-ed220c941b2e",
    "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#4e95b191-4868-4088-a9ad-ed220c941b2e 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:39879/api/hs/booking/items/3e403066-4bc1-4976-a5b1-6ed53f7e3f29
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 13:33:03 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "3e403066-4bc1-4976-a5b1-6ed53f7e3f29",
    "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#3e403066-4bc1-4976-a5b1-6ed53f7e3f29 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:39879/api/hs/booking/items/9219b511-d731-4ad2-bcc2-6b0fd0431f31
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 13:33:05 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "9219b511-d731-4ad2-bcc2-6b0fd0431f31",
    "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-10T13:33:05.302Z  WARN 378 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T13:33:05.302Z ERROR 378 --- [    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)=(9219b511-d731-4ad2-bcc2-6b0fd0431f31) is still referenced from table "asset".
DELETING leaked hs_booking.item#9219b511-d731-4ad2-bcc2-6b0fd0431f31 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)=(9219b511-d731-4ad2-bcc2-6b0fd0431f31) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#130185c5-806d-47af-a3b5-189f454037a7 SUCCEEDED
DELETING leaked hs_hosting.asset#130185c5-806d-47af-a3b5-189f454037a7 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)=(130185c5-806d-47af-a3b5-189f454037a7) is still referenced from table "asset".
DELETING leaked hs_hosting.asset#208b4f2a-3888-4228-9467-939f0845de94 SUCCEEDED
DELETING leaked hs_hosting.asset#cc477214-a5b4-442e-963a-440cda2507ba SUCCEEDED
DELETING leaked hs_hosting.asset#2dc22729-091b-4e40-afaf-2684ba7e7224 SUCCEEDED
2026-08-10T13:33:05.367Z  WARN 378 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T13:33:05.368Z ERROR 378 --- [    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)=(9219b511-d731-4ad2-bcc2-6b0fd0431f31) is still referenced from table "asset".
DELETING leaked hs_booking.item#9219b511-d731-4ad2-bcc2-6b0fd0431f31 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)=(9219b511-d731-4ad2-bcc2-6b0fd0431f31) is still referenced from table "asset".] [n/a]
DELETING leaked hs_hosting.asset#130185c5-806d-47af-a3b5-189f454037a7 SUCCEEDED
DELETING leaked hs_booking.item#9219b511-d731-4ad2-bcc2-6b0fd0431f31 SUCCEEDED
projectAgent_canAddDomainSetupBookingItemWithHostingAsset(): TOTAL OBJECT COUNT (after): 210 -> 210