GetMembership

3

tests

0

failures

0

ignored

3.779s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canGetArbitraryMembership() 1.289s passed
normalUser_canNotGetUnrelatedMembership() 1.262s passed
partnerRelAgent_canGetRelatedMembership() 1.228s passed

Standard output

ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canGetArbitraryMembership(): TOTAL OBJECT COUNT (initial): 210 -> 210
{
    "uuid": "3995a914-611c-4fba-abeb-9ca14ecd37d3",
    "partner": {
        "uuid": "9e20edf7-8f82-4350-a87f-9cd7f6115073",
        "partnerNumber": "P-10001",
        "partnerRel": {
            "uuid": "fec12b6c-831a-4b5c-87a4-2935037c3878",
            "anchor": {
                "uuid": "8cc07dcc-afc5-48a9-984e-bf084051d416",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "51aa8be4-097b-4007-863d-136f7b9525c1",
                "personType": "LEGAL_PERSON",
                "tradeName": "First GmbH",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "eafb9bdb-bf05-463b-bd03-dd3cae11aa69",
                "caption": "first contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@firstcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "c63f607b-c8e9-4848-a6bc-0df668c0b69f",
            "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": "e38f8dee-4a01-40bd-8ce5-792ce3454648",
    "partner": {
        "uuid": "e95a021b-1518-4110-af46-e49f44588d1e",
        "partnerNumber": "P-10003",
        "partnerRel": {
            "uuid": "23c0327b-9dcc-4716-8a4f-7d084448fa6b",
            "anchor": {
                "uuid": "8cc07dcc-afc5-48a9-984e-bf084051d416",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "968db17e-982d-4253-91af-4fbdcf694a99",
                "personType": "INCORPORATED_FIRM",
                "tradeName": "Third OHG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "6aed69ca-cc5a-4609-8668-d13e6f45ef54",
                "caption": "third contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@thirdcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "5a0247c5-c62b-40b0-a094-0b3757832796",
            "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