本文整理汇总了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
示例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
示例3: host3
def host3(request):
tracker = HostTracker(u'web5')
return tracker.make_fixture(request)
示例4: host2
def host2(request):
tracker = HostTracker(u'dev1')
return tracker.make_fixture(request)
示例5: indicators_host
def indicators_host(request):
tracker = HostTracker(name=u'testhost1', fqdn=fqdn1)
return tracker.make_fixture(request)
示例6: krb_host
def krb_host(request):
tracker = HostTracker(u'krb-host')
return tracker.make_fixture(request)
示例7: host
def host(request):
tracker = HostTracker(name=u'host')
return tracker.make_fixture(request)
示例8: santest_host_2
def santest_host_2(request):
tr = HostTracker(u'santest-host-2')
return tr.make_fixture(request)
示例9: krbalias_host
def krbalias_host(request):
tracker = HostTracker(u'testhost-krb')
return tracker.make_fixture(request)
示例10: krb_service_host
def krb_service_host(request):
tracker = HostTracker(u'krb-srv-host')
return tracker.make_fixture(request)
示例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)
示例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)
示例13: invalid_host
def invalid_host(request):
tracker = HostTracker(name='foo_bar',)
return tracker.make_fixture(request)
示例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)
示例15: host4
def host4(request):
tracker = HostTracker(name=u'testhost4')
return tracker.make_fixture(request)