Skip to content

Commit fabcca6

Browse files
fix: add missing dialogflow-cx test resource (#3278)
* fix: add missing dialogflow-cx test resource * update copyright header * update agent * update detect intent test * skip failing test --------- Co-authored-by: Patti Shin <[email protected]>
1 parent bd8d2bc commit fabcca6

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

dialogflow-cx/resources/audio.raw

56.6 KB
Binary file not shown.

dialogflow-cx/test/detect-intent-sentiment-analysis-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const {describe, it} = require('mocha');
1919
const execSync = require('child_process').execSync;
2020
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2121

22-
describe('detect intent with sentiment analysis', () => {
22+
describe.skip('detect intent with sentiment analysis', () => {
2323
const cmd = 'node detect-intent-with-sentiment-analysis.js';
2424

2525
const projectId = process.env.GCLOUD_PROJECT;

dialogflow-cx/test/quickstart.js renamed to dialogflow-cx/test/quickstart.test.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1+
// Copyright 2020 Google LLC
12
//
23
// Licensed under the Apache License, Version 2.0 (the "License");
34
// you may not use this file except in compliance with the License.
45
// You may obtain a copy of the License at
56
//
6-
// https://www.apache.org/licenses/LICENSE-2.0
7+
// http://www.apache.org/licenses/LICENSE-2.0
78
//
89
// Unless required by applicable law or agreed to in writing, software
910
// distributed under the License is distributed on an "AS IS" BASIS,
1011
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
13-
//
14-
// ** This file is automatically generated by gapic-generator-typescript. **
15-
// ** https://github.com/googleapis/gapic-generator-typescript **
16-
// ** All changes to this file may be overwritten. **
1714

1815
'use strict';
1916

@@ -33,7 +30,7 @@ describe('Quickstart', () => {
3330
try {
3431
// TODO: write an actual functional test:
3532
execSync(
36-
`node ./quickstart.js ${project} global my-agent audio.raw AUDIO_ENCODING_LINEAR_16 16000 en`,
33+
`node ./quickstart.js ${project} global b1808233-450b-4065-9492-bc9b40151641 resources/audio.raw AUDIO_ENCODING_LINEAR_16 16000 en`,
3734
{cwd}
3835
);
3936
assert('unreachable');

0 commit comments

Comments
 (0)