PostNewDebitor

4

tests

0

failures

0

ignored

5.515s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canAddDebitorWithoutJustRequiredData() 1.562s passed
globalAdmin_canNotAddDebitor_ifContactDoesNotExist() 1.250s passed
globalAdmin_canNotAddDebitor_ifDebitorRelDoesNotExist() 1.281s passed
globalAdmin_withoutAssumedRole_canAddDebitorWithBankAccount() 1.422s passed

Standard output

ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canAddDebitorWithoutJustRequiredData(): 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:35729/api/hs/office/debitors/c39f7105-081a-4f73-822b-ea4523beac26
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:29 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "c39f7105-081a-4f73-822b-ea4523beac26",
    "debitorRel": {
        "uuid": "5a1461b4-4e1b-4442-bf31-82e20e6f9083",
        "anchor": {
            "uuid": "f86823d2-1cc6-4790-ac23-c6acd2e03ea5",
            "personType": "INCORPORATED_FIRM",
            "tradeName": "Third OHG",
            "salutation": null,
            "title": null,
            "givenName": null,
            "familyName": null
        },
        "holder": {
            "uuid": "f86823d2-1cc6-4790-ac23-c6acd2e03ea5",
            "personType": "INCORPORATED_FIRM",
            "tradeName": "Third OHG",
            "salutation": null,
            "title": null,
            "givenName": null,
            "familyName": null
        },
        "type": "DEBITOR",
        "mark": null,
        "contact": {
            "uuid": "962d5cd8-ed42-44d8-9457-ce769697d113",
            "caption": "fourth contact",
            "postalAddress": {
                "country": "Germany"
            },
            "emailAddresses": {
                "main": "contact-admin@fourthcontact.example.com"
            },
            "phoneNumbers": {
                "phone_office": "+49 123 1234567"
            }
        }
    },
    "debitorNumber": "D-1000396",
    "debitorNumberSuffix": "96",
    "partner": {
        "uuid": "bac88e19-e82f-4078-90dc-d13ac9848c03",
        "partnerNumber": "P-10003",
        "partnerRel": {
            "uuid": "fd0593e1-e3ca-4923-a959-bff639edd725",
            "anchor": {
                "uuid": "cdee26c7-a241-4a3c-99cc-1138917c252b",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "f86823d2-1cc6-4790-ac23-c6acd2e03ea5",
                "personType": "INCORPORATED_FIRM",
                "tradeName": "Third OHG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "20cced45-0d3a-40c7-b999-0d668dd65d54",
                "caption": "third contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@thirdcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "0cc78967-ce92-44b9-be06-8e590c70589f",
            "registrationOffice": "Hamburg",
            "registrationNumber": "RegNo123456789",
            "birthName": null,
            "birthPlace": null,
            "birthday": null,
            "dateOfDeath": null
        }
    },
    "billable": true,
    "vatId": null,
    "vatCountryCode": null,
    "vatBusiness": false,
    "vatReverseCharge": false,
    "refundBankAccount": null,
    "defaultPrefix": "for"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
2026-08-10T16:39:29.734Z  WARN 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:39:29.734Z ERROR 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "relation" violates foreign key constraint "debitor_debitorreluuid_fkey" on table "debitor"
  Detail: Key (uuid)=(5a1461b4-4e1b-4442-bf31-82e20e6f9083) is still referenced from table "debitor".
DELETING leaked hs_office.relation#5a1461b4-4e1b-4442-bf31-82e20e6f9083 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 "debitor_debitorreluuid_fkey" on table "debitor"
  Detail: Key (uuid)=(5a1461b4-4e1b-4442-bf31-82e20e6f9083) is still referenced from table "debitor".] [n/a]
DELETING leaked hs_office.debitor#c39f7105-081a-4f73-822b-ea4523beac26 SUCCEEDED
globalAdmin_canAddDebitorWithoutJustRequiredData(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canNotAddDebitor_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:30 GMT
Connection: close

{
    "timestamp": "2026-08-10 04:39:30",
    "path": "",
    "statusCode": 400,
    "statusPhrase": "Bad Request",
    "message": "ERROR: [400] Unable to find debitorRel.contact.uuid: 00000000-0000-0000-0000-000000000000"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
globalAdmin_canNotAddDebitor_ifContactDoesNotExist(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_withoutAssumedRole_canAddDebitorWithBankAccount(): 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:35729/api/hs/office/debitors/015d48bc-0f3d-4edd-b24b-40097b4d1b47
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:32 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "015d48bc-0f3d-4edd-b24b-40097b4d1b47",
    "debitorRel": {
        "uuid": "591bccc8-5d97-4b06-be9f-61e98a1c80f4",
        "anchor": {
            "uuid": "f86823d2-1cc6-4790-ac23-c6acd2e03ea5",
            "personType": "INCORPORATED_FIRM",
            "tradeName": "Third OHG",
            "salutation": null,
            "title": null,
            "givenName": null,
            "familyName": null
        },
        "holder": {
            "uuid": "60f14923-28d0-4c1f-983e-4bf0224dc4e4",
            "personType": "LEGAL_PERSON",
            "tradeName": "Fourth eG",
            "salutation": null,
            "title": null,
            "givenName": null,
            "familyName": null
        },
        "type": "DEBITOR",
        "mark": null,
        "contact": {
            "uuid": "962d5cd8-ed42-44d8-9457-ce769697d113",
            "caption": "fourth contact",
            "postalAddress": {
                "country": "Germany"
            },
            "emailAddresses": {
                "main": "contact-admin@fourthcontact.example.com"
            },
            "phoneNumbers": {
                "phone_office": "+49 123 1234567"
            }
        }
    },
    "debitorNumber": "D-1000398",
    "debitorNumberSuffix": "98",
    "partner": {
        "uuid": "bac88e19-e82f-4078-90dc-d13ac9848c03",
        "partnerNumber": "P-10003",
        "partnerRel": {
            "uuid": "fd0593e1-e3ca-4923-a959-bff639edd725",
            "anchor": {
                "uuid": "cdee26c7-a241-4a3c-99cc-1138917c252b",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "f86823d2-1cc6-4790-ac23-c6acd2e03ea5",
                "personType": "INCORPORATED_FIRM",
                "tradeName": "Third OHG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "20cced45-0d3a-40c7-b999-0d668dd65d54",
                "caption": "third contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@thirdcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "0cc78967-ce92-44b9-be06-8e590c70589f",
            "registrationOffice": "Hamburg",
            "registrationNumber": "RegNo123456789",
            "birthName": null,
            "birthPlace": null,
            "birthday": null,
            "dateOfDeath": null
        }
    },
    "billable": true,
    "vatId": "VAT123456",
    "vatCountryCode": "DE",
    "vatBusiness": true,
    "vatReverseCharge": false,
    "refundBankAccount": {
        "uuid": "789f85d7-f102-4ac5-9028-d79e56aae419",
        "holder": "Fourth eG",
        "iban": "DE02200505501015871393",
        "bic": "HASPDEHH"
    },
    "defaultPrefix": "for"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
2026-08-10T16:39:32.385Z  WARN 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
2026-08-10T16:39:32.386Z ERROR 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "relation" violates foreign key constraint "debitor_debitorreluuid_fkey" on table "debitor"
  Detail: Key (uuid)=(591bccc8-5d97-4b06-be9f-61e98a1c80f4) is still referenced from table "debitor".
DELETING leaked hs_office.relation#591bccc8-5d97-4b06-be9f-61e98a1c80f4 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 "debitor_debitorreluuid_fkey" on table "debitor"
  Detail: Key (uuid)=(591bccc8-5d97-4b06-be9f-61e98a1c80f4) is still referenced from table "debitor".] [n/a]
DELETING leaked hs_office.debitor#015d48bc-0f3d-4edd-b24b-40097b4d1b47 SUCCEEDED
globalAdmin_withoutAssumedRole_canAddDebitorWithBankAccount(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canNotAddDebitor_ifDebitorRelDoesNotExist(): 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:33 GMT
Connection: close

{
    "timestamp": "2026-08-10 04:39:33",
    "path": "",
    "statusCode": 400,
    "statusPhrase": "Bad Request",
    "message": "ERROR: [400] Unable to find debitorRel.uuid: 00000000-0000-0000-0000-000000000000"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
globalAdmin_canNotAddDebitor_ifDebitorRelDoesNotExist(): TOTAL OBJECT COUNT (after): 210 -> 210