Skip to content

umairda/dialogflow-test-create-multiple-contexts

Repository files navigation

dialogflow-test-create-multiple-contexts


Background

I frequently set contexts via the dialogflow v1 api. I noticed that when using the new v2 api that at times not all contexts are being set. I wrote a test that can be run repeatedly to observe this behavior.

UPDATE: As of 2019 it appears the contexts are now being set but now at times when I delete all the contexts then not all the contexts are always deleted.


To run the test once:


GOOGLE_APPLICATION_CREDENTIALS=/path/to/google/keyfile PROJECT_ID=your-project-id npm test -- test.spec.js

To run the test N times:

GOOGLE_APPLICATION_CREDENTIALS=/path/to/google/keyfile PROJECT_ID=your-project-id NUMBER_OF_TIMES_TO_RUN=100 node index.js

Source

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published