-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Conversation
| .AddInMemoryCollection(new Dictionary<string, string> { { "root", root }, { "region", region }, { "environment", environment } }) | ||
| .UseMockLuisSettings(root, root) | ||
| .AddUserSecrets("RunBot") | ||
| .AddInMemoryCollection(new Dictionary<string, string> { { "root", root }, { "region", region }, { "environment", environment }, {"userSecrets", userSecrets} }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"userSecrets", userSecrets} [](start = 145, length = 27)
I don't think you need this. The only place it is used is in the Mock Luis. #Resolved
| script.push({ | ||
| $kind: 'Microsoft.Test.CustomEvent', | ||
| name: 'SetTestOptions', | ||
| value: `{randomValue : ${record.value.randomValue}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`{randomValue : ${record.value.randomValue} [](start = 23, length = 43)
Value should be the whole record.value. This will pick up randomValue/randomSeed and anything else added. #Resolved
| } else if (isSettingRandomValue(record)) { | ||
| script.push({ | ||
| $kind: 'Microsoft.Test.CustomEvent', | ||
| name: 'SetTestOptions', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetTestOptions [](start = 23, length = 14)
I like emitting the custom event since this uses the protocol and we know the underlying bot supports SetTestOptionsMiddleware to pick it up. #Resolved
| return record.type === 'trace' && record.valueType === 'Microsoft.HttpRequest' | ||
| } | ||
|
|
||
| function isSettingRandomValue(record: any): Boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isSetTestOptions #Resolved
chrimc62
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
|
The only change I would make is to copy the whole event value into the script. #Resolved |
Fixes #3022
Proposed Changes
Testing