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.
system-tests/templates/800_network-hostname.yaml.tt2

20 lines
344 B

[%-
IF general.ngcp_type == 'spce';
ngcp_hostname_match = "spce";
ELSIF general.ngcp_type == 'sppro';
ngcp_hostname_match = "/sp[12]/";
ELSE;
ngcp_hostname_match = "/[a-z]+[0-9]{2}[ab]/";
END;
-%]
command:
hostname:
exit-status: 0
ngcp-hostname:
exit-status: 0
stdout:
- "[% ngcp_hostname_match %]"
stderr: []