@@ -79,8 +79,8 @@ func TestListPortWithSubports(t *testing.T) {
7979 th .AssertEquals (t , 1 , len (allPorts ))
8080 port := allPorts [0 ]
8181
82- th .AssertEquals (t , trunk .ID , port .TrunkDetails . TrunkID )
83- th .AssertEquals (t , 2 , len (port .TrunkDetails . SubPorts ))
82+ th .AssertEquals (t , trunk .ID , port .TrunkID )
83+ th .AssertEquals (t , 2 , len (port .SubPorts ))
8484
8585 // Note that MAC address is not (currently) returned in list queries. We
8686 // exclude it from the comparison here in case it's ever added. MAC
@@ -92,32 +92,32 @@ func TestListPortWithSubports(t *testing.T) {
9292 SegmentationID : 1 ,
9393 SegmentationType : "vlan" ,
9494 PortID : subport1 .ID ,
95- }, port .TrunkDetails . SubPorts [0 ].Subport )
95+ }, port .SubPorts [0 ].Subport )
9696 th .AssertDeepEquals (t , trunks.Subport {
9797 SegmentationID : 2 ,
9898 SegmentationType : "vlan" ,
9999 PortID : subport2 .ID ,
100- }, port .TrunkDetails . SubPorts [1 ].Subport )
100+ }, port .SubPorts [1 ].Subport )
101101
102102 // Test GET port with trunk details
103103 err = ports .Get (context .TODO (), client , parentPort .ID ).ExtractInto (& port )
104104 th .AssertNoErr (t , err )
105- th .AssertEquals (t , trunk .ID , port .TrunkDetails . TrunkID )
106- th .AssertEquals (t , 2 , len (port .TrunkDetails . SubPorts ))
105+ th .AssertEquals (t , trunk .ID , port .TrunkID )
106+ th .AssertEquals (t , 2 , len (port .SubPorts ))
107107 th .AssertDeepEquals (t , trunk_details.Subport {
108108 Subport : trunks.Subport {
109109 SegmentationID : 1 ,
110110 SegmentationType : "vlan" ,
111111 PortID : subport1 .ID ,
112112 },
113113 MACAddress : subport1 .MACAddress ,
114- }, port .TrunkDetails . SubPorts [0 ])
114+ }, port .SubPorts [0 ])
115115 th .AssertDeepEquals (t , trunk_details.Subport {
116116 Subport : trunks.Subport {
117117 SegmentationID : 2 ,
118118 SegmentationType : "vlan" ,
119119 PortID : subport2 .ID ,
120120 },
121121 MACAddress : subport2 .MACAddress ,
122- }, port .TrunkDetails . SubPorts [1 ])
122+ }, port .SubPorts [1 ])
123123}
0 commit comments