Fix issue with floating ips for test_share_basic_ops
As far as Nova extensions are deprecated we should replace
compute_floating_ips_client on floating_ips_client
Change-Id: I8484a4186609f79b8c501121a7adbffe75f15e30
Closes-Issue: https://mirantis.jira.com/browse/PROD-20608
diff --git a/manila_tempest_tests/tests/scenario/test_share_basic_ops.py b/manila_tempest_tests/tests/scenario/test_share_basic_ops.py
index 7d9b919..af91cfb 100644
--- a/manila_tempest_tests/tests/scenario/test_share_basic_ops.py
+++ b/manila_tempest_tests/tests/scenario/test_share_basic_ops.py
@@ -109,17 +109,18 @@
else:
# Obtain a floating IP
floating_ip = (
- self.compute_floating_ips_client.create_floating_ip()
- ['floating_ip'])
+ self.floating_ips_client.create_floatingip(
+ floating_network_id=CONF.network.public_network_id)
+ ['floatingip'])
self.floatings[instance['id']] = floating_ip
self.addCleanup(
test_utils.call_and_ignore_notfound_exc,
- self.compute_floating_ips_client.delete_floating_ip,
+ self.floating_ips_client.delete_floatingip,
floating_ip['id'])
# Attach a floating IP
self.compute_floating_ips_client.associate_floating_ip_to_server(
- floating_ip['ip'], instance['id'])
- server_ip = floating_ip['ip']
+ floating_ip['floating_ip_address'], instance['id'])
+ server_ip = floating_ip['floating_ip_address']
self.assertIsNotNone(server_ip)
# Check ssh
ssh_client = self.get_remote_client(
@@ -234,7 +235,8 @@
server_ip = self._get_ipv6_server_ip(instance)
else:
server_ip = (CONF.share.override_ip_for_nfs_access or
- self.floatings[instance['id']]['ip'])
+ self.floatings[instance['id']]
+ ['floating_ip_address'])
self.assertIsNotNone(server_ip)
self.allow_access_ip(
share['id'], ip=server_ip,