List amphora: use test's loadbalancer
Test `test_amphora_list_and_show` gets amphoras of loadbalancer
created in resource setup, but it could be not ready and amphorae
fileds aren't filled out.
Related-PRODX: PRODX-17934
Change-Id: I58fc8add761279af1307bb5b0e964697d79ab36a
(cherry picked from commit 81bf51e3c07213922358575821790ea645f3e78c)
(cherry picked from commit 25d0c7591ecbb5094dc2e94d8c3c43c400726e37)
diff --git a/octavia_tempest_plugin/tests/api/v2/test_amphora.py b/octavia_tempest_plugin/tests/api/v2/test_amphora.py
index 6d73bf0..67e2565 100644
--- a/octavia_tempest_plugin/tests/api/v2/test_amphora.py
+++ b/octavia_tempest_plugin/tests/api/v2/test_amphora.py
@@ -112,9 +112,9 @@
# Test filtering by loadbalancer_id
amphorae = self.lb_admin_amphora_client.list_amphorae(
query_params='{loadbalancer_id}={lb_id}'.format(
- loadbalancer_id=const.LOADBALANCER_ID, lb_id=self.lb_id))
+ loadbalancer_id=const.LOADBALANCER_ID, lb_id=lb_id))
self.assertEqual(self._expected_amp_count(amphorae), len(amphorae))
- self.assertEqual(self.lb_id, amphorae[0][const.LOADBALANCER_ID])
+ self.assertEqual(lb_id, amphorae[0][const.LOADBALANCER_ID])
# Test RBAC for show amphora
if expected_allowed: