PostNewPartner

3

tests

0

failures

0

ignored

4.066s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canNotPostNewPartner_ifContactDoesNotExist() 1.380s passed
globalAdmin_canNotPostNewPartner_ifPersonDoesNotExist() 1.313s passed
globalAdmin_withoutAssumedRole_canPostNewPartner() 1.373s 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 16:39:54 GMT
Connection: close

{
    "timestamp": "2026-08-10 04:39:54",
    "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 16:39:55 GMT
Connection: close

{
    "timestamp": "2026-08-10 04:39:55",
    "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": "248dfca0-408d-40c3-b2de-26ef823eab3d",
    "partnerNumber": "P-20002",
    "partnerRel": {
        "uuid": "9d0b33c1-98b8-43f8-ba82-8d72d9207c4e",
        "anchor": {
            "uuid": "9ee6188c-3e59-4b98-8aa3-5a6a81ffaac3",
            "personType": "LEGAL_PERSON",
            "tradeName": "Hostsharing eG",
            "salutation": null,
            "title": null,
            "givenName": null,
            "familyName": null
        },
        "holder": {
            "uuid": "72b5e0c6-e1c6-4516-b8af-49eb8653da32",
            "personType": "NATURAL_PERSON",
            "tradeName": null,
            "salutation": null,
            "title": null,
            "givenName": "Paul",
            "familyName": "Winkler"
        },
        "type": "PARTNER",
        "mark": null,
        "contact": {
            "uuid": "783b408c-9a36-430a-8d67-6c85fbbb20a2",
            "caption": "fourth contact",
            "postalAddress": {
                "country": "Germany"
            },
            "emailAddresses": {
                "main": "contact-admin@fourthcontact.example.com"
            },
            "phoneNumbers": {
                "phone_office": "+49 123 1234567"
            }
        }
    },
    "details": {
        "uuid": "6caa2063-51dd-4f66-8415-860afeb99ad5",
        "registrationOffice": "Temp Registergericht Aurich",
        "registrationNumber": "111111",
        "birthName": null,
        "birthPlace": null,
        "birthday": null,
        "dateOfDeath": null
    }
}
executing cleanupAllNew: HsOfficePartnerRbacEntity
executing cleanupAllNew: HsOfficeRelationRealEntity
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
2026-08-10T16:39:57.003Z  WARN 369 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:39:57.003Z ERROR 369 --- [    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)=(9d0b33c1-98b8-43f8-ba82-8d72d9207c4e) is still referenced from table "partner".
DELETING leaked hs_office.relation#9d0b33c1-98b8-43f8-ba82-8d72d9207c4e 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)=(9d0b33c1-98b8-43f8-ba82-8d72d9207c4e) is still referenced from table "partner".] [n/a]
2026-08-10T16:39:57.006Z  WARN 369 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:39:57.006Z ERROR 369 --- [    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)=(6caa2063-51dd-4f66-8415-860afeb99ad5) is still referenced from table "partner".
DELETING leaked hs_office.partner_details#6caa2063-51dd-4f66-8415-860afeb99ad5 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)=(6caa2063-51dd-4f66-8415-860afeb99ad5) is still referenced from table "partner".] [n/a]
DELETING leaked hs_office.partner#248dfca0-408d-40c3-b2de-26ef823eab3d SUCCEEDED
globalAdmin_withoutAssumedRole_canPostNewPartner(): TOTAL OBJECT COUNT (after): 210 -> 210