File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
internal/acceptance/openstack/networking/v2/extensions Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ import (
1616 th "github.com/gophercloud/gophercloud/v2/testhelper"
1717)
1818
19- func TestAgentsRUD (t * testing.T ) {
20- t .Skip ("TestAgentsRUD needs to be re-worked to work with both ML2/OVS and OVN" )
19+ func TestAgentsCRUD (t * testing.T ) {
20+ t .Skip ("TestAgentsCRUD needs to be re-worked to work with both ML2/OVS and OVN" )
2121 clients .RequireAdmin (t )
2222
2323 client , err := clients .NewNetworkV2Client ()
@@ -96,13 +96,16 @@ func TestAgentsRUD(t *testing.T) {
9696 th .AssertNoErr (t , err )
9797}
9898
99- func TestBGPAgentRUD (t * testing.T ) {
99+ func TestBGPAgentCRUD (t * testing.T ) {
100100 timeout := 15 * time .Minute
101101 clients .RequireAdmin (t )
102102
103103 client , err := clients .NewNetworkV2Client ()
104104 th .AssertNoErr (t , err )
105105
106+ // Skip these tests if we don't have the required extension
107+ networking .RequireNeutronExtension (t , client , "bgp" )
108+
106109 // List BGP Agents
107110 listOpts := & agents.ListOpts {
108111 AgentType : "BGP Dynamic Routing Agent" ,
Original file line number Diff line number Diff line change 77 "testing"
88
99 "github.com/gophercloud/gophercloud/v2/internal/acceptance/clients"
10+ networking "github.com/gophercloud/gophercloud/v2/internal/acceptance/openstack/networking/v2"
1011 "github.com/gophercloud/gophercloud/v2/internal/acceptance/tools"
1112 "github.com/gophercloud/gophercloud/v2/openstack/networking/v2/extensions/bgp/peers"
1213 th "github.com/gophercloud/gophercloud/v2/testhelper"
@@ -18,6 +19,9 @@ func TestBGPPeerCRUD(t *testing.T) {
1819 client , err := clients .NewNetworkV2Client ()
1920 th .AssertNoErr (t , err )
2021
22+ // Skip these tests if we don't have the required extension
23+ networking .RequireNeutronExtension (t , client , "bgp" )
24+
2125 // Create a BGP Peer
2226 bgpPeerCreated , err := CreateBGPPeer (t , client )
2327 th .AssertNoErr (t , err )
Original file line number Diff line number Diff line change @@ -17,9 +17,13 @@ import (
1717
1818func TestBGPSpeakerCRUD (t * testing.T ) {
1919 clients .RequireAdmin (t )
20+
2021 client , err := clients .NewNetworkV2Client ()
2122 th .AssertNoErr (t , err )
2223
24+ // Skip these tests if we don't have the required extension
25+ networking .RequireNeutronExtension (t , client , "bgp" )
26+
2327 // Create a BGP Speaker
2428 bgpSpeaker , err := CreateBGPSpeaker (t , client )
2529 th .AssertNoErr (t , err )
You can’t perform that action at this time.
0 commit comments