@@ -108,21 +108,21 @@ describe('luis:build create a new application successfully', () => {
108108 nock ( 'https://westus.api.cognitive.microsoft.com' )
109109 . post ( uri => uri . includes ( 'publish' ) )
110110 . reply ( 201 , {
111- versionId : '0.2 ' ,
111+ versionId : '0.1 ' ,
112112 isStaging : true
113113 } )
114114 } )
115115
116116 test
117117 . stdout ( )
118- . command ( [ 'luis:build' , '--in' , './test/fixtures/testcases/lubuild/sandwich//lufiles/sandwich.en-us.lu' , '--authoringKey' , uuidv1 ( ) , '--botName' , 'test' , '--log' , '--suffix' , 'development' ] )
118+ . command ( [ 'luis:build' , '--in' , './test/fixtures/testcases/lubuild/sandwich//lufiles/sandwich.en-us.lu' , '--authoringKey' , uuidv1 ( ) , '--botName' , 'test' , '--log' , '--suffix' , 'development' , '--isStaging' ] )
119119 . it ( 'should create a new application successfully' , ctx => {
120120 expect ( ctx . stdout ) . to . contain ( 'Handling applications...' )
121121 expect ( ctx . stdout ) . to . contain ( 'Creating LUIS.ai application' )
122122 expect ( ctx . stdout ) . to . contain ( 'training version=0.1' )
123123 expect ( ctx . stdout ) . to . contain ( 'waiting for training for version=0.1' )
124124 expect ( ctx . stdout ) . to . contain ( 'publishing version=0.1' )
125- expect ( ctx . stdout ) . to . contain ( 'publishing finished' )
125+ expect ( ctx . stdout ) . to . contain ( 'publishing finished for Staging slot ' )
126126 } )
127127} )
128128
@@ -174,7 +174,7 @@ describe('luis:build update application succeed when utterances changed', () =>
174174 . post ( uri => uri . includes ( 'publish' ) )
175175 . reply ( 201 , {
176176 versionId : '0.2' ,
177- isStaging : true
177+ isStaging : false
178178 } )
179179 } )
180180
@@ -239,7 +239,7 @@ describe('luis:build update application succeed when utterances added', () => {
239239 . post ( uri => uri . includes ( 'publish' ) )
240240 . reply ( 201 , {
241241 versionId : '0.2' ,
242- isStaging : true
242+ isStaging : false
243243 } )
244244 } )
245245
@@ -453,14 +453,14 @@ describe('luis:build create multiple applications successfully when input is a f
453453 . post ( uri => uri . includes ( 'publish' ) )
454454 . reply ( 201 , {
455455 versionId : '0.2' ,
456- isStaging : true
456+ isStaging : false
457457 } )
458458
459459 nock ( 'https://westus.api.cognitive.microsoft.com' )
460460 . post ( uri => uri . includes ( 'publish' ) )
461461 . reply ( 201 , {
462462 versionId : '0.2' ,
463- isStaging : true
463+ isStaging : false
464464 } )
465465
466466 nock ( 'https://westus.api.cognitive.microsoft.com' )
@@ -573,7 +573,7 @@ describe('luis:build update dialog assets successfully when dialog assets exist'
573573 . post ( uri => uri . includes ( 'publish' ) )
574574 . reply ( 201 , {
575575 versionId : '0.2' ,
576- isStaging : true
576+ isStaging : false
577577 } )
578578 } )
579579
@@ -713,7 +713,7 @@ describe('luis:build update application succeed with parameters set from luconfi
713713 . post ( uri => uri . includes ( 'publish' ) )
714714 . reply ( 201 , {
715715 versionId : '0.2' ,
716- isStaging : true
716+ isStaging : false
717717 } )
718718 } )
719719
@@ -776,7 +776,7 @@ describe('luis:build create a new application successfully with locale set to it
776776 . post ( uri => uri . includes ( 'publish' ) )
777777 . reply ( 201 , {
778778 versionId : '0.2' ,
779- isStaging : true
779+ isStaging : false
780780 } )
781781 } )
782782
@@ -847,7 +847,7 @@ describe('luis:build update application succeed when activeVersion is null', ()
847847 . post ( uri => uri . includes ( 'publish' ) )
848848 . reply ( 201 , {
849849 versionId : '0.2' ,
850- isStaging : true
850+ isStaging : false
851851 } )
852852 } )
853853
@@ -901,7 +901,7 @@ describe('luis:build create a new application successfully with endpoint overrid
901901 . post ( uri => uri . includes ( 'publish' ) )
902902 . reply ( 201 , {
903903 versionId : '0.2' ,
904- isStaging : true
904+ isStaging : false
905905 } )
906906 } )
907907
0 commit comments