@@ -34,16 +34,15 @@ describe('api:request:rest NUT', () => {
3434
3535 describe ( 'std out' , ( ) => {
3636 it ( 'get result in json format' , ( ) => {
37- const result = execCmd ( "api request rest 'services/data/v56 .0/limits'" ) . shellOutput . stdout ;
37+ const result = execCmd ( "api request rest 'services/data/v60 .0/limits'" ) . shellOutput . stdout ;
3838 console . warn ( 'res' , result ) ;
3939 // make sure we got a JSON object back
4040 expect ( Object . keys ( JSON . parse ( result ) as Record < string , unknown > ) ) . to . have . length ;
4141 } ) ;
4242
4343 it ( 'should pass headers' , ( ) => {
44- const result = execCmd ( "api request rest 'services/data/v56 .0/limits' -H 'Accept: application/xml'" ) . shellOutput
44+ const result = execCmd ( "api request rest 'services/data/v60 .0/limits' -H 'Accept: application/xml'" ) . shellOutput
4545 . stdout ;
46- console . log ( 'res' , result ) ;
4746
4847 // the headers will change this to xml
4948 expect ( result . startsWith ( '<?xml version="1.0" encoding="UTF-8"?><LimitsSnapshot>' ) ) . to . be . true ;
@@ -52,9 +51,8 @@ describe('api:request:rest NUT', () => {
5251
5352 describe ( 'stream-to-file' , ( ) => {
5453 it ( 'get result in json format' , ( ) => {
55- const result = execCmd ( "api request rest 'services/data/v56 .0/limits' --stream-to-file out.txt" ) . shellOutput
54+ const result = execCmd ( "api request rest 'services/data/v60 .0/limits' --stream-to-file out.txt" ) . shellOutput
5655 . stdout ;
57- console . log ( 'res' , result ) ;
5856
5957 expect ( result . trim ( ) ) . to . equal ( 'File saved to out.txt' ) ;
6058
@@ -65,9 +63,8 @@ describe('api:request:rest NUT', () => {
6563
6664 it ( 'should pass headers' , ( ) => {
6765 const result = execCmd (
68- "api request rest 'services/data/v56 .0/limits' -H 'Accept: application/xml' --stream-to-file out.txt"
66+ "api request rest 'services/data/v60 .0/limits' -H 'Accept: application/xml' --stream-to-file out.txt"
6967 ) . shellOutput . stdout ;
70- console . log ( 'res' , result ) ;
7168
7269 expect ( result . trim ( ) ) . to . equal ( 'File saved to out.txt' ) ;
7370
0 commit comments