@@ -962,57 +962,3 @@ function test_gzip() {
962962 } ) ;
963963 } ) ;
964964}
965-
966- describe ( 'Virtual Hosts' , function ( ) {
967- var myHost = `${ uuid ( ) } .myhost.com` ;
968-
969- it ( 'supports virtual hosts API - GET /_api/v2/user/virtual_hosts' , function ( done ) {
970- var mocks = nock ( SERVER )
971- . get ( '/_api/v2/user/virtual_hosts' ) . reply ( 200 , { 'virtual_hosts' : [ ] } ) ;
972-
973- var c = Cloudant ( { url : SERVER , username : ME , password : PASSWORD , plugins : 'retry' } ) ;
974- c . get_virtual_hosts ( function ( er , d ) {
975- should ( er ) . equal ( null ) ;
976- d . should . be . an . Object ;
977- d . should . have . a . property ( 'virtual_hosts' ) ;
978- d . virtual_hosts . should . be . an . Array ;
979-
980- mocks . done ( ) ;
981- done ( ) ;
982- } ) ;
983- } ) ;
984-
985- it ( 'supports virtual hosts API - POST /_api/v2/user/virtual_hosts' , function ( done ) {
986- var mocks = nock ( SERVER )
987- . post ( '/_api/v2/user/virtual_hosts' ) . reply ( 200 , { 'ok' : true } ) ;
988-
989- var c = Cloudant ( { url : SERVER , username : ME , password : PASSWORD , plugins : 'retry' } ) ;
990- c . add_virtual_host ( { host : myHost , path : '/mypath' } , function ( er , d ) {
991- should ( er ) . equal ( null ) ;
992- d . should . be . an . Object ;
993- d . should . have . a . property ( 'ok' ) ;
994- d . ok . should . be . a . Boolean ;
995- d . ok . should . equal ( true ) ;
996-
997- mocks . done ( ) ;
998- done ( ) ;
999- } ) ;
1000- } ) ;
1001-
1002- it ( 'supports virtual hosts API - DELETE /_api/v2/user/config/virtual_hosts' , function ( done ) {
1003- var mocks = nock ( SERVER )
1004- . delete ( '/_api/v2/user/virtual_hosts' ) . reply ( 200 , { 'ok' : true } ) ;
1005-
1006- var c = Cloudant ( { url : SERVER , username : ME , password : PASSWORD , plugins : 'retry' } ) ;
1007- c . delete_virtual_host ( { host : myHost , path : '/mypath' } , function ( er , d ) {
1008- should ( er ) . equal ( null ) ;
1009- d . should . be . an . Object ;
1010- d . should . have . a . property ( 'ok' ) ;
1011- d . ok . should . be . a . Boolean ;
1012- d . ok . should . be . equal ( true ) ;
1013-
1014- mocks . done ( ) ;
1015- done ( ) ;
1016- } ) ;
1017- } ) ;
1018- } ) ;
0 commit comments