2019-04-08 08:41:33 +02:00
|
|
|
from tiramisu.option import DomainnameOption, OptionDescription
|
|
|
|
|
|
|
|
def get_description():
|
|
|
|
"""generate description for this test
|
|
|
|
"""
|
|
|
|
option1 = DomainnameOption('hostname1', "Domainname Description")
|
|
|
|
option2 = DomainnameOption('hostname2', "Domainname without dot Description", allow_without_dot=True)
|
2019-12-24 15:24:20 +01:00
|
|
|
option3 = DomainnameOption('hostname3', "Hostname or IP Description", type='hostname', allow_ip=True)
|
|
|
|
option4 = DomainnameOption('hostname4', "Netbios Description", type='netbios')
|
2019-04-08 08:41:33 +02:00
|
|
|
descr1 = OptionDescription("options", "Common configuration", [option1, option2, option3, option4])
|
|
|
|
descr = OptionDescription("hostname1", "Simple hostnames", [descr1])
|
|
|
|
return descr
|