fix(core.gbapp): NLP automation is fully tested.
This commit is contained in:
parent
c8abd17206
commit
2873c5c078
2 changed files with 4 additions and 3 deletions
|
@ -736,7 +736,7 @@ export class AzureDeployerService implements IGBInstallationDeployer {
|
|||
const body = {
|
||||
versionId: "0.1",
|
||||
isStaging: false,
|
||||
directVersionPublish: true
|
||||
directVersionPublish: false
|
||||
}
|
||||
const req = new WebResource();
|
||||
req.method = 'POST';
|
||||
|
|
|
@ -247,7 +247,8 @@ export class GBDeployer implements IGBDeployer {
|
|||
|
||||
public async publishNLP(instance: IGBInstance): Promise<void> {
|
||||
const service = new AzureDeployerService(this);
|
||||
const res = await service.publishNLP(instance.cloudLocation, instance.nlpAppId, instance.nlpAuthoringKey);
|
||||
const res = await service.publishNLP(instance.cloudLocation, instance.nlpAppId,
|
||||
instance.nlpAuthoringKey);
|
||||
if (res.status !== 200 && res.status !== 201) throw res.bodyAsText;
|
||||
}
|
||||
|
||||
|
@ -269,7 +270,7 @@ export class GBDeployer implements IGBDeployer {
|
|||
instance.cloudLocation,
|
||||
instance.nlpAppId,
|
||||
listName,
|
||||
instance.nlpKey,
|
||||
instance.nlpAuthoringKey,
|
||||
listData
|
||||
);
|
||||
if (res.status !== 200) throw res.bodyAsText;
|
||||
|
|
Loading…
Add table
Reference in a new issue