Exemplo n.º 1
0
def test_update_group_memberships_no_purge(identity_client,
                                           get_ids_from_group_names):
    existing_memberships_group_ids = ['ocid1.group.oc1..aaa']
    get_ids_from_group_names.return_value = ['ocid1.group.oc1..aaa']
    result = oci_user.update_group_memberships(
        identity_client, 'test_compartment', ['test_group_1'],
        existing_memberships_group_ids,
        get_user().id, get_module(dict({'purge_group_memberships': True})))
    assert result is False
Exemplo n.º 2
0
def test_update_group_memberships_no_purge(identity_client,
                                           get_ids_from_group_names):
    existing_memberships_group_ids = ["ocid1.group.oc1..aaa"]
    get_ids_from_group_names.return_value = ["ocid1.group.oc1..aaa"]
    result = oci_user.update_group_memberships(
        identity_client,
        "test_compartment",
        ["test_group_1"],
        existing_memberships_group_ids,
        get_user().id,
        get_module(dict({"purge_group_memberships": True})),
    )
    assert result is False