@@ -75,10 +75,10 @@ func TestCreateDevice(t *testing.T) {
7575 //then
7676 assert .Nil (t , err , "Error is not returned" )
7777 assert .Equal (t , uuid , resp .UUID , "UUID matches" )
78- verifyDeviceRequest (t , device , req , false )
78+ verifyDeviceRequest (t , device , req )
7979}
8080
81- func TestCreateZnpdDevice (t * testing.T ) {
81+ func TestCreateDeviceWithConnectivityTypeAsPrivate (t * testing.T ) {
8282 //given
8383 resp := api.DeviceRequestResponse {}
8484 if err := readJSONData ("./test-fixtures/ne_device_create_resp.json" , & resp ); err != nil {
@@ -138,7 +138,7 @@ func TestCreateZnpdDevice(t *testing.T) {
138138 //then
139139 assert .Nil (t , err , "Error is not returned" )
140140 assert .Equal (t , uuid , resp .UUID , "UUID matches" )
141- verifyDeviceRequest (t , device , req , true )
141+ verifyDeviceRequest (t , device , req )
142142}
143143
144144func TestCreateRedundantDevice (t * testing.T ) {
@@ -494,7 +494,7 @@ func verifyDeviceInterface(t *testing.T, inf DeviceInterface, apiInf api.DeviceI
494494 assert .Equal (t , apiInf .Type , inf .Type , "Type matches" )
495495}
496496
497- func verifyDeviceRequest (t * testing.T , device Device , req api.DeviceRequest , isZnpd bool ) {
497+ func verifyDeviceRequest (t * testing.T , device Device , req api.DeviceRequest ) {
498498 assert .Equal (t , device .Throughput , req .Throughput , "Throughput matches" )
499499 assert .Equal (t , device .ThroughputUnit , req .ThroughputUnit , "ThroughputUnit matches" )
500500 assert .Equal (t , device .MetroCode , req .MetroCode , "MetroCode matches" )
@@ -519,11 +519,8 @@ func verifyDeviceRequest(t *testing.T, device Device, req api.DeviceRequest, isZ
519519 assert .Equal (t , device .Version , req .Version , "Version matches" )
520520 assert .Equal (t , device .InterfaceCount , req .InterfaceCount , "InterfaceCount matches" )
521521 if * device .IsSelfManaged {
522- if isZnpd {
523- assert .Equal (t , DeviceManagementTypeSelfZnpd , StringValue (req .DeviceManagementType ), "DeviceManagementType matches" )
524- } else {
525- assert .Equal (t , DeviceManagementTypeSelf , StringValue (req .DeviceManagementType ), "DeviceManagementType matches" )
526- }
522+
523+ assert .Equal (t , DeviceManagementTypeSelf , StringValue (req .DeviceManagementType ), "DeviceManagementType matches" )
527524 } else {
528525 assert .Equal (t , DeviceManagementTypeEquinix , StringValue (req .DeviceManagementType ), "DeviceManagementType matches" )
529526 }
@@ -536,7 +533,7 @@ func verifyDeviceRequest(t *testing.T, device Device, req api.DeviceRequest, isZ
536533}
537534
538535func verifyRedundantDeviceRequest (t * testing.T , primary , secondary Device , req api.DeviceRequest ) {
539- verifyDeviceRequest (t , primary , req , false )
536+ verifyDeviceRequest (t , primary , req )
540537 assert .Equal (t , secondary .MetroCode , req .Secondary .MetroCode , "Secondary MetroCode matches" )
541538 assert .Equal (t , secondary .LicenseToken , req .Secondary .LicenseToken , "LicenseFileID matches" )
542539 assert .Equal (t , secondary .LicenseFileID , req .Secondary .LicenseFileID , "LicenseFileID matches" )
0 commit comments