GetMembership

3

tests

0

failures

0

ignored

3.688s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canGetArbitraryMembership() 1.225s passed
normalUser_canNotGetUnrelatedMembership() 1.229s passed
partnerRelAgent_canGetRelatedMembership() 1.234s passed

Standard output

ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canGetArbitraryMembership(): TOTAL OBJECT COUNT (initial): 210 -> 210
{
    "uuid": "77063bdf-3f8a-4a48-9e39-5975fd574d6a",
    "partner": {
        "uuid": "6f4db4f4-bb38-4e9e-8350-38cdd83f2f60",
        "partnerNumber": "P-10001",
        "partnerRel": {
            "uuid": "63c7c2e5-f2f4-411e-824d-14e5b206442c",
            "anchor": {
                "uuid": "44e140ca-f710-4650-a391-7dfebef0ac09",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "2941408c-00e0-4949-9d51-2a18fa5a742c",
                "personType": "LEGAL_PERSON",
                "tradeName": "First GmbH",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "a97abf81-8e91-4a3d-8de2-9575d73b5178",
                "caption": "first contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@firstcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "c9ab0e68-946e-4b8e-bb30-3e1d9a7659ee",
            "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": "5f36f6ee-31bc-4ff8-ad4e-f4810d54e62a",
    "partner": {
        "uuid": "ea393e95-ed3b-4005-84f9-3e08f8019837",
        "partnerNumber": "P-10003",
        "partnerRel": {
            "uuid": "e82c3619-71d5-413d-a4cb-5404c7140d33",
            "anchor": {
                "uuid": "44e140ca-f710-4650-a391-7dfebef0ac09",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "65eaa333-cc93-4692-86a9-84c85d992d04",
                "personType": "INCORPORATED_FIRM",
                "tradeName": "Third OHG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "3e9a633a-beda-46e3-a634-ce0d96b5d47b",
                "caption": "third contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@thirdcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "2585a043-5f8a-4f72-be46-07b661b942f0",
            "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