PostNewPartner

3

tests

0

failures

0

ignored

3.938s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canNotPostNewPartner_ifContactDoesNotExist() 1.416s passed
globalAdmin_canNotPostNewPartner_ifPersonDoesNotExist() 1.244s passed
globalAdmin_withoutAssumedRole_canPostNewPartner() 1.278s passed

Standard output

ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canNotPostNewPartner_ifContactDoesNotExist(): TOTAL OBJECT COUNT (initial): 210 -> 210
HTTP/1.1 400 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
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:35:21 GMT
Connection: close

{
    "timestamp": "2026-08-10 01:35:21",
    "path": "",
    "statusCode": 400,
    "statusPhrase": "Bad Request",
    "message": "ERROR: [400] Unable to find net.hostsharing.hsadminng.hs.office.contact.HsOfficeContactRealEntity with id 00000000-0000-0000-0000-000000000000"
}
executing cleanupAllNew: HsOfficePartnerRbacEntity
executing cleanupAllNew: HsOfficeRelationRealEntity
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
globalAdmin_canNotPostNewPartner_ifContactDoesNotExist(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canNotPostNewPartner_ifPersonDoesNotExist(): TOTAL OBJECT COUNT (initial): 210 -> 210
HTTP/1.1 400 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
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:35:22 GMT
Connection: close

{
    "timestamp": "2026-08-10 01:35:22",
    "path": "",
    "statusCode": 400,
    "statusPhrase": "Bad Request",
    "message": "ERROR: [400] Unable to find net.hostsharing.hsadminng.hs.office.person.HsOfficePersonRealEntity with id 00000000-0000-0000-0000-000000000000"
}
executing cleanupAllNew: HsOfficePartnerRbacEntity
executing cleanupAllNew: HsOfficeRelationRealEntity
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
globalAdmin_canNotPostNewPartner_ifPersonDoesNotExist(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_withoutAssumedRole_canPostNewPartner(): TOTAL OBJECT COUNT (initial): 210 -> 210
{
    "uuid": "7da4ea21-b32d-4ee5-a1a4-f4823a5fd61d",
    "partnerNumber": "P-20002",
    "partnerRel": {
        "uuid": "6c03dac0-962b-4d57-beb8-93bc297529ec",
        "anchor": {
            "uuid": "82731678-fdab-4592-a13a-fa40943260da",
            "personType": "LEGAL_PERSON",
            "tradeName": "Hostsharing eG",
            "salutation": null,
            "title": null,
            "givenName": null,
            "familyName": null
        },
        "holder": {
            "uuid": "2df0417d-0113-42b0-be52-66f82442e6c3",
            "personType": "NATURAL_PERSON",
            "tradeName": null,
            "salutation": null,
            "title": null,
            "givenName": "Paul",
            "familyName": "Winkler"
        },
        "type": "PARTNER",
        "mark": null,
        "contact": {
            "uuid": "98c6b635-bcc0-4c00-96e1-dda829f5e55b",
            "caption": "fourth contact",
            "postalAddress": {
                "country": "Germany"
            },
            "emailAddresses": {
                "main": "contact-admin@fourthcontact.example.com"
            },
            "phoneNumbers": {
                "phone_office": "+49 123 1234567"
            }
        }
    },
    "details": {
        "uuid": "8d5aa6ca-f9f8-43dd-a85c-4a1542f87045",
        "registrationOffice": "Temp Registergericht Aurich",
        "registrationNumber": "111111",
        "birthName": null,
        "birthPlace": null,
        "birthday": null,
        "dateOfDeath": null
    }
}
executing cleanupAllNew: HsOfficePartnerRbacEntity
executing cleanupAllNew: HsOfficeRelationRealEntity
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
2026-08-10T13:35:23.697Z  WARN 370 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T13:35:23.697Z ERROR 370 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "relation" violates foreign key constraint "partner_partnerreluuid_fkey" on table "partner"
  Detail: Key (uuid)=(6c03dac0-962b-4d57-beb8-93bc297529ec) is still referenced from table "partner".
DELETING leaked hs_office.relation#6c03dac0-962b-4d57-beb8-93bc297529ec FAILED org.hibernate.exception.ConstraintViolationException: JDBC exception executing SQL [DELETE FROM hs_office.relation WHERE uuid=?] [ERROR: update or delete on table "relation" violates foreign key constraint "partner_partnerreluuid_fkey" on table "partner"
  Detail: Key (uuid)=(6c03dac0-962b-4d57-beb8-93bc297529ec) is still referenced from table "partner".] [n/a]
2026-08-10T13:35:23.698Z  WARN 370 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T13:35:23.699Z ERROR 370 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "partner_details" violates foreign key constraint "partner_detailsuuid_fkey" on table "partner"
  Detail: Key (uuid)=(8d5aa6ca-f9f8-43dd-a85c-4a1542f87045) is still referenced from table "partner".
DELETING leaked hs_office.partner_details#8d5aa6ca-f9f8-43dd-a85c-4a1542f87045 FAILED org.hibernate.exception.ConstraintViolationException: JDBC exception executing SQL [DELETE FROM hs_office.partner_details WHERE uuid=?] [ERROR: update or delete on table "partner_details" violates foreign key constraint "partner_detailsuuid_fkey" on table "partner"
  Detail: Key (uuid)=(8d5aa6ca-f9f8-43dd-a85c-4a1542f87045) is still referenced from table "partner".] [n/a]
DELETING leaked hs_office.partner#7da4ea21-b32d-4ee5-a1a4-f4823a5fd61d SUCCEEDED
globalAdmin_withoutAssumedRole_canPostNewPartner(): TOTAL OBJECT COUNT (after): 210 -> 210