Exemplo n.º 1
0
def dummy_group(ipa_testing_config):
    ipa_admin.group_add(
        a_cn='dummy-group',
        o_description="A dummy group",
        fasgroup=True,
        fasurl="http://dummygroup.org",
        fasmailinglist="*****@*****.**",
        fasircchannel="irc:///freenode.net/#dummy-group",
    )
    yield
    ipa_admin.group_del(a_cn='dummy-group')
Exemplo n.º 2
0
def make_group(ipa_testing_config, app):
    created = []

    def _make_group(name):
        result = ipa_admin.group_add(
            name,
            o_description=f"The {name} group",
            fasgroup=True,
            fasurl=f"http://{name}.example.com",
            fasmailinglist=f"{name}@lists.example.com",
            fasircchannel=f"irc:///freenode.net/#{name}",
        )
        created.append(name)
        return result

    yield _make_group

    for name in created:
        ipa_admin.group_del(name)
Exemplo n.º 3
0
def nonfas_group(ipa_testing_config, app):
    ipa_admin.group_add(a_cn="nonfas-group")
    yield
    ipa_admin.group_del("nonfas-group")