def ipaservers(request, xmlrpc_setup): # Track the ipaservers hostgroup # Since the hostgroup is protected, we cannot use 'make_fixture()' because # it will try to delete the object when scope is destroyed and that will # fail. Thus, we only create it here. tracker = HostGroupTracker(name=u'ipaservers', description=u'IPA server hosts') tracker.exists = True tracker.track_create() return tracker
def hostgroup4(request): tracker = HostGroupTracker(name=u'thostgroup4', description=u'Automember test hostgroup4') return tracker.make_fixture(request)
def defaulthostgroup1(request): tracker = HostGroupTracker(name=u'defaulthostgroup1', description=u'Automember test' 'defaulthostgroup1') return tracker.make_fixture(request)
def hostgroup_single(request): tracker = HostGroupTracker(name=u'a') return tracker.make_fixture(request)
def hostgroup_invalid(request): tracker = HostGroupTracker(name=u'@invalid') return tracker.make_fixture(request)
def hostgroup(request): tracker = HostGroupTracker(name=u'hostgroup') return tracker.make_fixture(request)
def hostgroup2(request, xmlrpc_setup): tracker = HostGroupTracker(name=u'hostgroup2') return tracker.make_fixture(request)
def hostgroup2(request): tracker = HostGroupTracker(name=u"hostgroup2") return tracker.make_fixture(request)
def hostgroup2(request): tracker = HostGroupTracker(name=u'thostgroup2', description=u'Automember test hostgroup2') return tracker.make_fixture(request)
def hostgroup_invalid(request, xmlrpc_setup): tracker = HostGroupTracker(name=u'@invalid') return tracker.make_fixture(request)
def hostgroup1(request, xmlrpc_setup): tracker = HostGroupTracker(name=u'thostgroup1', description=u'Automember test hostgroup1') return tracker.make_fixture(request)