Skip to content

Commit df9032a

Browse files
committed
tests: Configure policy in fwaas functional workflow
We already do this for the networking workflow. Now do it for the fwaas-specific workflow. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 8314ff1 commit df9032a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/functional-fwaas_v2.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# TODO(stephenfin): neutron-fwaas may support OVN now. If so, we can combine
2+
# this job with the functional-networking job. See [1]
3+
#
4+
# [1] https://bugs.launchpad.net/neutron/+bug/1971958
15
name: functional-fwaas_v2
26
on:
37
pull_request:
@@ -29,6 +33,14 @@ jobs:
2933
steps:
3034
- name: Checkout Gophercloud
3135
uses: actions/checkout@v4
36+
- name: Create additional neutron policies
37+
run: |
38+
mkdir /tmp/neutron-policies
39+
cat << EOF >> /tmp/neutron-policies/port_binding.yaml
40+
---
41+
"create_port:binding:profile": "rule:admin_only or rule:service_api"
42+
"update_port:binding:profile": "rule:admin_only or rule:service_api"
43+
EOF
3244
- name: Deploy devstack
3345
uses: gophercloud/devstack-action@v0.17
3446
with:
@@ -40,6 +52,10 @@ jobs:
4052
Q_ML2_PLUGIN_TYPE_DRIVERS=flat,gre,vlan,vxlan
4153
Q_ML2_TENANT_NETWORK_TYPE=vxlan
4254
Q_TUNNEL_TYPES=vxlan,gre
55+
56+
[[post-config|\$NEUTRON_CONF]]
57+
[oslo_policy]
58+
policy_dirs = /tmp/neutron-policies
4359
enabled_services: 'q-svc,q-agt,q-dhcp,q-l3,q-meta,q-fwaas-v2,-cinder,-horizon,-tempest,-swift,-c-sch,-c-api,-c-vol,-c-bak,-ovn,-ovn-controller,-ovn-northd,-q-ovn-metadata-agent,${{ matrix.additional_services }}'
4460
- name: Checkout go
4561
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)