@@ -27,7 +27,7 @@ describe("Message v2 API", function () {
2727 method : "DELETE"
2828 } ) ;
2929 options . should . containDeep ( {
30- url : "https://dashboard.bandwidth.com/v1.0/ api/accounts/id/test" ,
30+ url : "https://dashboard.bandwidth.com/api/accounts/id/test" ,
3131 headers : {
3232 "User-Agent" : "agent" ,
3333 "Content-Type" : "application/xml"
@@ -62,7 +62,7 @@ describe("Message v2 API", function () {
6262 body : templates . irisError1 ,
6363 statusCode : 200
6464 } ) ;
65- } , "Code: Description" ) ;
65+ } , "Fails with Code: Description" ) ;
6666 } ) ;
6767 it ( "should handle iris error 2" , function ( ) {
6868 var message = new Message ( { } ) ;
@@ -71,7 +71,7 @@ describe("Message v2 API", function () {
7171 body : templates . irisError2 ,
7272 statusCode : 200
7373 } ) ;
74- } , "Code: Description" ) ;
74+ } , "Fails with Code: Description" ) ;
7575 } ) ;
7676 it ( "should handle iris error 3" , function ( ) {
7777 var message = new Message ( { } ) ;
@@ -80,7 +80,7 @@ describe("Message v2 API", function () {
8080 body : templates . irisError3 ,
8181 statusCode : 200
8282 } ) ;
83- } , "Code: Description" ) ;
83+ } , "Fails with Code: Description" ) ;
8484 } ) ;
8585 it ( "should handle iris error 4" , function ( ) {
8686 var message = new Message ( { } ) ;
@@ -89,7 +89,7 @@ describe("Message v2 API", function () {
8989 body : templates . irisError4 ,
9090 statusCode : 200
9191 } ) ;
92- } , "Code: Description" ) ;
92+ } , "Fails with Code: Description" ) ;
9393 } ) ;
9494 it ( "should handle iris undefined error" , function ( ) {
9595 var message = new Message ( { } ) ;
@@ -98,15 +98,15 @@ describe("Message v2 API", function () {
9898 body : "" ,
9999 statusCode : 400
100100 } ) ;
101- } , "Http code 400" ) ;
101+ } , "WerHttp code 400" ) ;
102102 } ) ;
103103 } ) ;
104104 describe ( "makeIrisRequest()" , function ( ) {
105105 before ( function ( ) {
106106 nock . disableNetConnect ( ) ;
107107 nock ( "https://dashboard.bandwidth.com" )
108108 . persist ( )
109- . get ( "/v1.0/ api/accounts/id/test" )
109+ . get ( "/api/accounts/id/test" )
110110 . reply ( 200 , "<Test>test</Test>" , { } ) ;
111111 } ) ;
112112
@@ -138,7 +138,7 @@ describe("Message v2 API", function () {
138138 nock . disableNetConnect ( ) ;
139139 nock ( "https://dashboard.bandwidth.com" )
140140 . persist ( )
141- . post ( "/v1.0/ api/accounts/id/applications" , templates . createApplicationRequest )
141+ . post ( "/api/accounts/id/applications" , templates . createApplicationRequest )
142142 . reply ( 200 , templates . createApplicationResponse , { } ) ;
143143 } ) ;
144144
@@ -170,7 +170,7 @@ describe("Message v2 API", function () {
170170 nock . disableNetConnect ( ) ;
171171 nock ( "https://dashboard.bandwidth.com" )
172172 . persist ( )
173- . post ( "/v1.0/ api/accounts/id/sites/sub/sippeers" , templates . createLocationRequest )
173+ . post ( "/api/accounts/id/sites/sub/sippeers" , templates . createLocationRequest )
174174 . reply ( 201 , "" , { "Location" : "http://host/LocationId" } ) ;
175175 } ) ;
176176
@@ -198,12 +198,13 @@ describe("Message v2 API", function () {
198198 } , done ) ;
199199 } ) ;
200200 } ) ;
201+
201202 describe ( "enableSms()" , function ( ) {
202203 before ( function ( ) {
203204 nock . disableNetConnect ( ) ;
204205 nock ( "https://dashboard.bandwidth.com" )
205206 . persist ( )
206- . post ( "/v1.0/ api/accounts/id/sites/sub/sippeers/locationId/products/messaging/features/sms" ,
207+ . post ( "/api/accounts/id/sites/sub/sippeers/locationId/products/messaging/features/sms" ,
207208 templates . enableSmsRequest )
208209 . reply ( 200 , "" , { } ) ;
209210 } ) ;
@@ -238,7 +239,7 @@ describe("Message v2 API", function () {
238239 nock . disableNetConnect ( ) ;
239240 nock ( "https://dashboard.bandwidth.com" )
240241 . persist ( )
241- . post ( "/v1.0/ api/accounts/id/sites/sub/sippeers/locationId/products/messaging/features/mms" ,
242+ . post ( "/api/accounts/id/sites/sub/sippeers/locationId/products/messaging/features/mms" ,
242243 templates . enableMmsRequest )
243244 . reply ( 200 , "" , { } ) ;
244245 } ) ;
@@ -267,12 +268,13 @@ describe("Message v2 API", function () {
267268 } , done ) ;
268269 } ) ;
269270 } ) ;
271+
270272 describe ( "assignApplicationToLocation()" , function ( ) {
271273 before ( function ( ) {
272274 nock . disableNetConnect ( ) ;
273275 nock ( "https://dashboard.bandwidth.com" )
274276 . persist ( )
275- . post ( "/v1.0 /api/accounts/id/sites/sub/sippeers/locationId/products/messaging/applicationSettings",
277+ . put ( " /api/accounts/id/sites/sub/sippeers/locationId/products/messaging/applicationSettings",
276278 templates . assignApplicationToLocationRequest )
277279 . reply ( 200 , "" , { } ) ;
278280 } ) ;
@@ -352,10 +354,10 @@ describe("Message v2 API", function () {
352354 nock . disableNetConnect ( ) ;
353355 nock ( "https://dashboard.bandwidth.com" )
354356 . persist ( )
355- . post ( "/v1.0/ api/accounts/id/orders" ,
357+ . post ( "/api/accounts/id/orders" ,
356358 templates . createOrderRequest )
357359 . reply ( 200 , templates . createOrderResponse , { } )
358- . get ( "/v1.0/ api/accounts/id/orders/OrderId" )
360+ . get ( "/api/accounts/id/orders/OrderId" )
359361 . reply ( 200 , templates . orderResponseSuccess ) ;
360362 } ) ;
361363 after ( function ( ) {
@@ -400,10 +402,10 @@ describe("Message v2 API", function () {
400402 nock . disableNetConnect ( ) ;
401403 nock ( "https://dashboard.bandwidth.com" )
402404 . persist ( )
403- . post ( "/v1.0/ api/accounts/id/orders" ,
405+ . post ( "/api/accounts/id/orders" ,
404406 templates . createOrderRequest )
405407 . reply ( 200 , templates . createOrderResponse , { } )
406- . get ( "/v1.0/ api/accounts/id/orders/OrderId" )
408+ . get ( "/api/accounts/id/orders/OrderId" )
407409 . reply ( 200 , templates . orderResponseFail ) ;
408410 } ) ;
409411 after ( function ( ) {
@@ -450,10 +452,10 @@ describe("Message v2 API", function () {
450452 nock . disableNetConnect ( ) ;
451453 nock ( "https://dashboard.bandwidth.com" )
452454 . persist ( )
453- . post ( "/v1.0/ api/accounts/id/orders" ,
455+ . post ( "/api/accounts/id/orders" ,
454456 templates . createOrderRequest )
455457 . reply ( 200 , templates . createOrderResponse , { } )
456- . get ( "/v1.0/ api/accounts/id/orders/OrderId" )
458+ . get ( "/api/accounts/id/orders/OrderId" )
457459 . reply ( 200 , templates . orderResponseWait ) ;
458460 } ) ;
459461 after ( function ( ) {
0 commit comments