Browse Source

Merge "Retrieve KuryrNets CR when supported"

master
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
8c866223b8
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      kuryr_tempest_plugin/tests/scenario/test_network_policy.py

+ 7
- 2
kuryr_tempest_plugin/tests/scenario/test_network_policy.py View File

@@ -85,8 +85,13 @@ class TestNetworkPolicyScenario(base.BaseKuryrScenarioTest):
def test_ipblock_network_policy_allow_except(self):
namespace_name, namespace = self.create_namespace()
self.addCleanup(self.delete_namespace, namespace_name)
cidr = self.get_kuryr_network_crds(
namespace_name)['status']['subnetCIDR']
if CONF.kuryr_kubernetes.kuryrnetworks:
cidr = self.get_kuryr_network_crds(
namespace_name)['status']['subnetCIDR']
else:
crd_name = 'ns-' + namespace_name
cidr = self.get_kuryr_net_crds(
crd_name)['spec']['subnetCIDR']

ipn = netaddr.IPNetwork(cidr)
max_prefixlen = "/32"


Loading…
Cancel
Save