GetMembership

3

tests

0

failures

0

ignored

4.033s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canGetArbitraryMembership() 1.358s passed
normalUser_canNotGetUnrelatedMembership() 1.340s passed
partnerRelAgent_canGetRelatedMembership() 1.335s passed

Standard output

ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canGetArbitraryMembership(): TOTAL OBJECT COUNT (initial): 210 -> 210
{
    "uuid": "fcd597da-fce6-447a-924e-c96831fe8bfe",
    "partner": {
        "uuid": "bfd0eaf3-9c62-4829-b1c6-09bc7bc6a645",
        "partnerNumber": "P-10001",
        "partnerRel": {
            "uuid": "ad914af4-fd44-453b-a627-bf920c375d01",
            "anchor": {
                "uuid": "91f5d8e2-b455-4243-b7b0-c87ef91fb6fb",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "f737d879-51f9-4f03-b3f5-e5f4a12fab73",
                "personType": "LEGAL_PERSON",
                "tradeName": "First GmbH",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "b5a02c46-485c-4cf7-8ecc-b2ff3a00aa93",
                "caption": "first contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@firstcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "c0d83794-f767-4be0-9430-39bc4e359bc4",
            "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": "16e8abf2-0c42-457d-b30a-30c42417e53b",
    "partner": {
        "uuid": "81f4bfc8-f51b-4186-a0ef-fa6fb0e55c05",
        "partnerNumber": "P-10003",
        "partnerRel": {
            "uuid": "0ec197e1-c9db-410f-8b98-7314bd24b9e5",
            "anchor": {
                "uuid": "91f5d8e2-b455-4243-b7b0-c87ef91fb6fb",
                "personType": "LEGAL_PERSON",
                "tradeName": "Hostsharing eG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "holder": {
                "uuid": "c5118020-823a-4aa7-9489-e30e02b7e56f",
                "personType": "INCORPORATED_FIRM",
                "tradeName": "Third OHG",
                "salutation": null,
                "title": null,
                "givenName": null,
                "familyName": null
            },
            "type": "PARTNER",
            "mark": null,
            "contact": {
                "uuid": "98369d61-c76c-456b-ad8b-fad0c0b00d4e",
                "caption": "third contact",
                "postalAddress": {
                    "country": "Germany"
                },
                "emailAddresses": {
                    "main": "contact-admin@thirdcontact.example.com"
                },
                "phoneNumbers": {
                    "phone_office": "+49 123 1234567"
                }
            }
        },
        "details": {
            "uuid": "7ef1cdb1-cd5d-40ae-841d-d4d685165bcd",
            "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