Skip to content

Commit

Permalink
fix(core.gbapp): NLP automation is fully tested.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Dec 5, 2020
1 parent c8abd17 commit 2873c5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 3 additions & 2 deletions packages/core.gbapp/services/GBDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
Expand Down

0 comments on commit 2873c5c

Please sign in to comment.