@@ -20,6 +20,9 @@ func TestBGPVPNCRUD(t *testing.T) {
20
20
client , err := clients .NewNetworkV2Client ()
21
21
th .AssertNoErr (t , err )
22
22
23
+ // Skip these tests if we don't have the required extension
24
+ networking .RequireNeutronExtension (t , client , "bgpvpn" )
25
+
23
26
// Create a BGP VPN
24
27
bgpVpnCreated , err := CreateBGPVPN (t , client )
25
28
th .AssertNoErr (t , err )
@@ -60,12 +63,15 @@ func TestBGPVPNCRUD(t *testing.T) {
60
63
t .Logf ("BGP VPN %s deleted" , bgpVpnUpdated .Name )
61
64
}
62
65
63
- func TestBGPVPNNetworkAssociationCRD (t * testing.T ) {
66
+ func TestBGPVPNNetworkAssociationCRUD (t * testing.T ) {
64
67
clients .RequireAdmin (t )
65
68
66
69
client , err := clients .NewNetworkV2Client ()
67
70
th .AssertNoErr (t , err )
68
71
72
+ // Skip these tests if we don't have the required extension
73
+ networking .RequireNeutronExtension (t , client , "bgpvpn" )
74
+
69
75
// Create a BGP VPN
70
76
bgpVpnCreated , err := CreateBGPVPN (t , client )
71
77
th .AssertNoErr (t , err )
@@ -117,6 +123,9 @@ func TestBGPVPNRouterAssociationCRUD(t *testing.T) {
117
123
client , err := clients .NewNetworkV2Client ()
118
124
th .AssertNoErr (t , err )
119
125
126
+ // Skip these tests if we don't have the required extension
127
+ networking .RequireNeutronExtension (t , client , "bgpvpn" )
128
+
120
129
// Create a BGP VPN
121
130
bgpVpnCreated , err := CreateBGPVPN (t , client )
122
131
th .AssertNoErr (t , err )
@@ -182,6 +191,9 @@ func TestBGPVPNPortAssociationCRUD(t *testing.T) {
182
191
client , err := clients .NewNetworkV2Client ()
183
192
th .AssertNoErr (t , err )
184
193
194
+ // Skip these tests if we don't have the required extension
195
+ networking .RequireNeutronExtension (t , client , "bgpvpn" )
196
+
185
197
// Create a BGP VPN
186
198
bgpVpnCreated , err := CreateBGPVPN (t , client )
187
199
th .AssertNoErr (t , err )
0 commit comments