Allow custom DNS servers

When running the ServerSignalIntegrationTest in a TLS environment with DNS endpoints,
this test will always fail unless the VM is able to resolve the public Heat endpoints. This
change adds support for configuring this option in the job and increases the number of use
cases that can be tested.

Change-Id: I880ead0dfd793dc2b8011a8547cc12e71e56d52f
Signed-off-by: Brendan Shephard <bshephar@redhat.com>
This commit is contained in:
Brendan Shephard
2024-06-19 10:53:48 +10:00
parent 3e0209ba8b
commit f9f9d82182
2 changed files with 5 additions and 1 deletions

View File

@@ -167,6 +167,9 @@ HeatGroup = [
cfg.StrOpt('credential_secret_id',
help="Barbican secret id which storing cloud credential in "
"remote site."),
cfg.ListOpt('dns_servers',
default=(['8.8.8.8', '8.8.4.4']),
help='Configure custom DNS servers'),
cfg.BoolOpt('vm_to_heat_api_insecure',
default=False,
help="Set this to True if VM images used for tests "

View File

@@ -31,7 +31,8 @@ class ServerSignalIntegrationTest(scenario_base.ScenarioTestsBase):
'image': image,
'public_net': self.conf.floating_network_name,
'timeout': self.conf.build_timeout,
'user_data_format': user_data_format
'user_data_format': user_data_format,
'dns_servers': self.conf.dns_servers
}
if self.conf.vm_to_heat_api_insecure:
parameters['wc_extra_args'] = '--insecure'