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 (
16
16
th "github.com/gophercloud/gophercloud/v2/testhelper"
17
17
)
18
18
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" )
21
21
clients .RequireAdmin (t )
22
22
23
23
client , err := clients .NewNetworkV2Client ()
@@ -96,13 +96,16 @@ func TestAgentsRUD(t *testing.T) {
96
96
th .AssertNoErr (t , err )
97
97
}
98
98
99
- func TestBGPAgentRUD (t * testing.T ) {
99
+ func TestBGPAgentCRUD (t * testing.T ) {
100
100
timeout := 15 * time .Minute
101
101
clients .RequireAdmin (t )
102
102
103
103
client , err := clients .NewNetworkV2Client ()
104
104
th .AssertNoErr (t , err )
105
105
106
+ // Skip these tests if we don't have the required extension
107
+ networking .RequireNeutronExtension (t , client , "bgp" )
108
+
106
109
// List BGP Agents
107
110
listOpts := & agents.ListOpts {
108
111
AgentType : "BGP Dynamic Routing Agent" ,
Original file line number Diff line number Diff line change 7
7
"testing"
8
8
9
9
"github.com/gophercloud/gophercloud/v2/internal/acceptance/clients"
10
+ networking "github.com/gophercloud/gophercloud/v2/internal/acceptance/openstack/networking/v2"
10
11
"github.com/gophercloud/gophercloud/v2/internal/acceptance/tools"
11
12
"github.com/gophercloud/gophercloud/v2/openstack/networking/v2/extensions/bgp/peers"
12
13
th "github.com/gophercloud/gophercloud/v2/testhelper"
@@ -18,6 +19,9 @@ func TestBGPPeerCRUD(t *testing.T) {
18
19
client , err := clients .NewNetworkV2Client ()
19
20
th .AssertNoErr (t , err )
20
21
22
+ // Skip these tests if we don't have the required extension
23
+ networking .RequireNeutronExtension (t , client , "bgp" )
24
+
21
25
// Create a BGP Peer
22
26
bgpPeerCreated , err := CreateBGPPeer (t , client )
23
27
th .AssertNoErr (t , err )
Original file line number Diff line number Diff line change @@ -17,9 +17,13 @@ import (
17
17
18
18
func TestBGPSpeakerCRUD (t * testing.T ) {
19
19
clients .RequireAdmin (t )
20
+
20
21
client , err := clients .NewNetworkV2Client ()
21
22
th .AssertNoErr (t , err )
22
23
24
+ // Skip these tests if we don't have the required extension
25
+ networking .RequireNeutronExtension (t , client , "bgp" )
26
+
23
27
// Create a BGP Speaker
24
28
bgpSpeaker , err := CreateBGPSpeaker (t , client )
25
29
th .AssertNoErr (t , err )
You can’t perform that action at this time.
0 commit comments