You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
688 B
38 lines
688 B
1 year ago
|
---
|
||
|
test case: Hostname and fqdn can be fetched
|
||
|
in:
|
||
|
hostname: "hostname"
|
||
|
gethostname: "hostname2"
|
||
|
fqdn: "fqdn_string1"
|
||
|
out:
|
||
|
result: "fqdn_string1"
|
||
|
return: "SUCCEED"
|
||
|
---
|
||
|
test case: Hostname cannot be fetched, fqdn can be fetched
|
||
|
in:
|
||
|
hostname: "hostname"
|
||
|
gethostname: ""
|
||
|
fqdn: "fqdn_string2"
|
||
|
out:
|
||
|
result: "fqdn_string2"
|
||
|
return: "SUCCEED"
|
||
|
---
|
||
|
test case: Hostname can be fetched, fqdn cannot be fetched
|
||
|
in:
|
||
|
hostname: "hostname"
|
||
|
gethostname: "hostname2"
|
||
|
fqdn: ""
|
||
|
out:
|
||
|
result: "hostname2"
|
||
|
return: "SUCCEED"
|
||
|
---
|
||
|
test case: Hostname and fqdn cannot be fetched
|
||
|
in:
|
||
|
hostname: "hostname"
|
||
|
gethostname: ""
|
||
|
fqdn: ""
|
||
|
out:
|
||
|
result: "hostname"
|
||
|
return: "SUCCEED"
|
||
|
...
|