Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit e934020

Browse files
author
Travis Truman
committed
unit testing allowed_address_pairs
1 parent 69e88e9 commit e934020

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

openstack/networking/v2/ports/requests_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@ func TestUpdate(t *testing.T) {
284284
"ip_address": "10.0.0.3"
285285
}
286286
],
287+
"allowed_address_pairs": [
288+
{
289+
"ip_address": "10.0.0.4",
290+
"mac_address": "fa:16:3e:c9:cb:f0"
291+
}
292+
],
287293
"id": "65c0ee9f-d634-4522-8954-51021b570b0d",
288294
"security_groups": [
289295
"f0ac4394-7e4a-4409-9701-ba8be283dbc3"
@@ -312,6 +318,9 @@ func TestUpdate(t *testing.T) {
312318
th.AssertDeepEquals(t, s.FixedIPs, []IP{
313319
IP{SubnetID: "a0304c3a-4f08-4c43-88af-d796509c97d2", IPAddress: "10.0.0.3"},
314320
})
321+
th.AssertDeepEquals(t, s.AllowedAddressPairs, []AddressPair{
322+
AddressPair{IPAddress: "10.0.0.4", MACAddress: "fa:16:3e:c9:cb:f0"},
323+
})
315324
th.AssertDeepEquals(t, s.SecurityGroups, []string{"f0ac4394-7e4a-4409-9701-ba8be283dbc3"})
316325
}
317326

0 commit comments

Comments
 (0)