PostNewPartner

3

tests

0

failures

0

ignored

3.956s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canNotPostNewPartner_ifContactDoesNotExist() 1.354s passed
globalAdmin_canNotPostNewPartner_ifPersonDoesNotExist() 1.288s passed
globalAdmin_withoutAssumedRole_canPostNewPartner() 1.314s 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:31:49 GMT
Connection: close

{
    "timestamp": "2026-08-10 04:31:49",
    "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:31:50 GMT
Connection: close

{
    "timestamp": "2026-08-10 04:31:50",
    "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": "0c1d58b6-52f5-4098-aa26-bc652b80582a",
    "partnerNumber": "P-20002",
    "partnerRel": {
        "uuid": "3ecd5aa5-a49a-4e86-939c-d8a40362fe4c",
        "anchor": {
            "uuid": "69c868e1-4950-40e0-aacf-85704d6e2c59",
            "personType": "LEGAL_PERSON",
            "tradeName": "Hostsharing eG",
            "salutation": null,
            "title": null,
            "givenName": null,
            "familyName": null
        },
        "holder": {
            "uuid": "c96f9f19-97ce-43d6-a74e-073dac84e7cc",
            "personType": "NATURAL_PERSON",
            "tradeName": null,
            "salutation": null,
            "title": null,
            "givenName": "Paul",
            "familyName": "Winkler"
        },
        "type": "PARTNER",
        "mark": null,
        "contact": {
            "uuid": "2a2c91a0-ee65-496c-b37d-1dc118e88d69",
            "caption": "fourth contact",
            "postalAddress": {
                "country": "Germany"
            },
            "emailAddresses": {
                "main": "contact-admin@fourthcontact.example.com"
            },
            "phoneNumbers": {
                "phone_office": "+49 123 1234567"
            }
        }
    },
    "details": {
        "uuid": "17e95139-de8e-4389-b12b-1c739bb3f364",
        "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:31:51.718Z  WARN 368 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:31:51.718Z ERROR 368 --- [    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)=(3ecd5aa5-a49a-4e86-939c-d8a40362fe4c) is still referenced from table "partner".
DELETING leaked hs_office.relation#3ecd5aa5-a49a-4e86-939c-d8a40362fe4c 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)=(3ecd5aa5-a49a-4e86-939c-d8a40362fe4c) is still referenced from table "partner".] [n/a]
2026-08-10T16:31:51.720Z  WARN 368 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:31:51.720Z ERROR 368 --- [    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)=(17e95139-de8e-4389-b12b-1c739bb3f364) is still referenced from table "partner".
DELETING leaked hs_office.partner_details#17e95139-de8e-4389-b12b-1c739bb3f364 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)=(17e95139-de8e-4389-b12b-1c739bb3f364) is still referenced from table "partner".] [n/a]
DELETING leaked hs_office.partner#0c1d58b6-52f5-4098-aa26-bc652b80582a SUCCEEDED
globalAdmin_withoutAssumedRole_canPostNewPartner(): TOTAL OBJECT COUNT (after): 210 -> 210