当前位置: 首页>>代码示例>>Python>>正文


Python host_plugin.HostTracker类代码示例

本文整理汇总了Python中ipatests.test_xmlrpc.tracker.host_plugin.HostTracker的典型用法代码示例。如果您正苦于以下问题:Python HostTracker类的具体用法?Python HostTracker怎么用?Python HostTracker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了HostTracker类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: this_host

def this_host(request):
    """Fixture for the current master"""
    tracker = HostTracker(name=api.env.host.partition('.')[0],
                          fqdn=api.env.host)
    # This host is not created/deleted, so don't call make_fixture
    tracker.exists = True
    return tracker
开发者ID:icute1349,项目名称:freeipa,代码行数:7,代码来源:test_host_plugin.py

示例2: this_host

def this_host(request):
    """Fixture for the current master"""
    tracker = HostTracker(name=api.env.host.partition('.')[0],
                          fqdn=api.env.host)
    tracker.exists = True
    # Finalizer ensures that any certificates added to this_host are removed
    tracker.add_finalizer_certcleanup(request)
    # This host is not created/deleted, so don't call make_fixture
    return tracker
开发者ID:stlaz,项目名称:freeipa,代码行数:9,代码来源:test_host_plugin.py

示例3: host3

def host3(request):
    tracker = HostTracker(u'web5')
    return tracker.make_fixture(request)
开发者ID:rmoorman,项目名称:freeipa,代码行数:3,代码来源:test_automember_plugin.py

示例4: host2

def host2(request):
    tracker = HostTracker(u'dev1')
    return tracker.make_fixture(request)
开发者ID:rmoorman,项目名称:freeipa,代码行数:3,代码来源:test_automember_plugin.py

示例5: indicators_host

def indicators_host(request):
    tracker = HostTracker(name=u'testhost1', fqdn=fqdn1)
    return tracker.make_fixture(request)
开发者ID:guanwei,项目名称:freeipa,代码行数:3,代码来源:test_service_plugin.py

示例6: krb_host

def krb_host(request):
    tracker = HostTracker(u'krb-host')

    return tracker.make_fixture(request)
开发者ID:encukou,项目名称:freeipa,代码行数:4,代码来源:test_whoami_plugin.py

示例7: host

def host(request):
    tracker = HostTracker(name=u'host')
    return tracker.make_fixture(request)
开发者ID:icute1349,项目名称:freeipa,代码行数:3,代码来源:test_hostgroup_plugin.py

示例8: santest_host_2

def santest_host_2(request):
    tr = HostTracker(u'santest-host-2')
    return tr.make_fixture(request)
开发者ID:npmccallum,项目名称:freeipa,代码行数:3,代码来源:test_caacl_profile_enforcement.py

示例9: krbalias_host

def krbalias_host(request):
    tracker = HostTracker(u'testhost-krb')

    return tracker.make_fixture(request)
开发者ID:LiptonB,项目名称:freeipa,代码行数:4,代码来源:test_kerberos_principal_aliases.py

示例10: krb_service_host

def krb_service_host(request):
    tracker = HostTracker(u'krb-srv-host')

    return tracker.make_fixture(request)
开发者ID:encukou,项目名称:freeipa,代码行数:4,代码来源:test_kerberos_principal_aliases.py

示例11: ipv6_fromip_host

def ipv6_fromip_host(request):
    name = u'testipv6fromip'
    tracker = HostTracker(name=name, fqdn=u'%s.%s' % (name, dnszone))
    return tracker.make_fixture(request)
开发者ID:stlaz,项目名称:freeipa,代码行数:4,代码来源:test_host_plugin.py

示例12: ipv46both_host

def ipv46both_host(request):
    name = u'testipv4and6host'
    tracker = HostTracker(name=name, fqdn=u'%s.%s' % (name, dnszone))
    return tracker.make_fixture(request)
开发者ID:stlaz,项目名称:freeipa,代码行数:4,代码来源:test_host_plugin.py

示例13: invalid_host

def invalid_host(request):
    tracker = HostTracker(name='foo_bar',)
    return tracker.make_fixture(request)
开发者ID:stlaz,项目名称:freeipa,代码行数:3,代码来源:test_host_plugin.py

示例14: lab_host

def lab_host(request):
    name = u'testhost1'
    tracker = HostTracker(name=name,
                          fqdn=u'%s.lab.%s' % (name, api.env.domain))
    return tracker.make_fixture(request)
开发者ID:stlaz,项目名称:freeipa,代码行数:5,代码来源:test_host_plugin.py

示例15: host4

def host4(request):
    tracker = HostTracker(name=u'testhost4')
    return tracker.make_fixture(request)
开发者ID:stlaz,项目名称:freeipa,代码行数:3,代码来源:test_host_plugin.py


注:本文中的ipatests.test_xmlrpc.tracker.host_plugin.HostTracker类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。