Commit 2f51f1a9 authored by Łukasz Nowak's avatar Łukasz Nowak

software/kvm: Flake8ize test

parent fd23a4f6
Pipeline #33865 failed with stage
in 0 seconds
......@@ -234,10 +234,14 @@ class TestInstance(KVMTestCase, KvmMixin):
{
'ipv6': self.computer_partition_ipv6_address,
'maximum-extra-disk-amount': '0',
'monitor-base-url': f'https://[{self.computer_partition_ipv6_address}]:8026',
'nat-rule-port-tcp-22': f'{self.computer_partition_ipv6_address} : 10022',
'nat-rule-port-tcp-443': f'{self.computer_partition_ipv6_address} : 10443',
'nat-rule-port-tcp-80': f'{self.computer_partition_ipv6_address} : 10080',
'monitor-base-url':
f'https://[{self.computer_partition_ipv6_address}]:8026',
'nat-rule-port-tcp-22':
f'{self.computer_partition_ipv6_address} : 10022',
'nat-rule-port-tcp-443':
f'{self.computer_partition_ipv6_address} : 10443',
'nat-rule-port-tcp-80':
f'{self.computer_partition_ipv6_address} : 10080',
}
)
self.assertEqual(set(present_key_list), set(assert_key_list))
......@@ -713,7 +717,8 @@ class TestInstanceResilient(KVMTestCase, KvmMixin):
connection_parameter_dict,
{
'ipv6': self.kvm0_ipv6,
'monitor-base-url': f'https://[{self.computer_partition_ipv6_address}]:8160',
'monitor-base-url':
f'https://[{self.computer_partition_ipv6_address}]:8160',
'monitor-user': 'admin',
'takeover-kvm-1-url': f'http://[{self.kvm1_ipv6}]:9263/',
}
......@@ -2212,7 +2217,8 @@ class TestExternalDiskModernCluster(TestExternalDiskModern):
return 'kvm-cluster'
def getExternalDiskInstanceParameterDict(self, *args, **kwargs):
partition_dict = super().getExternalDiskInstanceParameterDict(*args, **kwargs)
partition_dict = super().getExternalDiskInstanceParameterDict(
*args, **kwargs)
partition_dict.update({"disable-ansible-promise": True})
return {
"kvm-partition-dict": {
......@@ -2366,10 +2372,14 @@ vm""",
{
'ipv6': self.computer_partition_ipv6_address,
'maximum-extra-disk-amount': '0',
'monitor-base-url': f'https://[{self.computer_partition_ipv6_address}]:8026',
'nat-rule-port-tcp-22': f'{self.computer_partition_ipv6_address} : 10022',
'nat-rule-port-tcp-443': f'{self.computer_partition_ipv6_address} : 10443',
'nat-rule-port-tcp-80': f'{self.computer_partition_ipv6_address} : 10080',
'monitor-base-url':
f'https://[{self.computer_partition_ipv6_address}]:8026',
'nat-rule-port-tcp-22':
f'{self.computer_partition_ipv6_address} : 10022',
'nat-rule-port-tcp-443':
f'{self.computer_partition_ipv6_address} : 10443',
'nat-rule-port-tcp-80':
f'{self.computer_partition_ipv6_address} : 10080',
}
)
self.assertEqual(set(present_key_list), set(assert_key_list))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment