GetMembership

3

tests

0

failures

0

ignored

3.923s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canGetArbitraryMembership() 1.253s passed
normalUser_canNotGetUnrelatedMembership() 1.300s passed
partnerRelAgent_canGetRelatedMembership() 1.370s passed

Standard output

ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canGetArbitraryMembership(): TOTAL OBJECT COUNT (initial): 210 -> 210
{
    "uuid": "d56877a7-472c-465c-b39a-0f1b4e9c46d3",
    "partner": {
        "uuid": "9c2fb972-05af-4a63-9722-796062a7e0d8",
        "partnerNumber": "P-10001",
        "partnerRel": {
            "uuid": "aa349f3a-4b45-4a74-859a-7a71b6744800",
            "anchor": {
                "uuid": "df8e028d-0e98-46bb-9d4e-1c587d37a6ba",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "cbf4fc6a-b1a2-434d-8795-27fc7d0656d6",
                "personType": "LEGAL_PERSON",
                "tradeName": "First GmbH",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "d9e72a79-7ac8-4857-ab9d-43f951ee9ca2",
                "caption": "first contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@firstcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "47b5f7a8-663a-403a-9873-ece39724171a",
            "registrationOffice": "Hamburg",
            "registrationNumber": "RegNo123456789",
            "birthName": null,
            "birthPlace": null,
            "birthday": null,
            "dateOfDeath": null
        }
    },
    "mainDebitor": null,
    "memberNumber": "M-1000101",
    "memberNumberSuffix": "01",
    "validFrom": "2022-10-01",
    "validTo": "2024-12-30",
    "status": "CANCELLED",
    "membershipFeeBillable": true
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
globalAdmin_canGetArbitraryMembership(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
normalUser_canNotGetUnrelatedMembership(): TOTAL OBJECT COUNT (initial): 210 -> 210

ContextBasedTestWithCleanup.cleanupAndCheckCleanup
normalUser_canNotGetUnrelatedMembership(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
partnerRelAgent_canGetRelatedMembership(): TOTAL OBJECT COUNT (initial): 210 -> 210
{
    "uuid": "8530787e-142c-4a66-985c-ad1fcb891d9d",
    "partner": {
        "uuid": "adba61bb-2535-4ed1-bd6e-df1fd06cb0ce",
        "partnerNumber": "P-10003",
        "partnerRel": {
            "uuid": "0a89a585-f4c1-43c8-b8dc-1fe3a282a346",
            "anchor": {
                "uuid": "df8e028d-0e98-46bb-9d4e-1c587d37a6ba",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "75a5b28b-2cc0-4752-9c54-9c0dacfea3ba",
                "personType": "INCORPORATED_FIRM",
                "tradeName": "Third OHG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "ffbb0888-a432-4469-9882-3000dce9a0a5",
                "caption": "third contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@thirdcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "81c5362b-d076-4c0c-b4c5-c78e9c3b0fc2",
            "registrationOffice": "Hamburg",
            "registrationNumber": "RegNo123456789",
            "birthName": null,
            "birthPlace": null,
            "birthday": null,
            "dateOfDeath": null
        }
    },
    "mainDebitor": null,
    "memberNumber": "M-1000303",
    "memberNumberSuffix": "03",
    "validFrom": "2022-10-01",
    "validTo": null,
    "status": "ACTIVE",
    "membershipFeeBillable": true
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
partnerRelAgent_canGetRelatedMembership(): TOTAL OBJECT COUNT (after): 210 -> 210