Skip to content

Commit 0ebc712

Browse files
authored
Add EntraMockResponsePlugin. Closes #58 (#67)
Closes #58
1 parent 111ec68 commit 0ebc712

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

src/constants.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ export const pluginSnippets: PluginSnippets = {
2929
required: false,
3030
},
3131
},
32+
EntraMockResponsePlugin:{
33+
instance: 'devproxy-plugin-entra-mock-response',
34+
config: {
35+
name: 'devproxy-plugin-entra-mock-response-config',
36+
required: true,
37+
},
38+
},
3239
ExecutionSummaryPlugin: {
3340
instance: 'devproxy-plugin-execution-summary',
3441
config: {
@@ -141,6 +148,10 @@ export const pluginDocs: PluginDocs = {
141148
name: 'Dev Tools Plugin',
142149
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/devtoolsplugin',
143150
},
151+
EntraMockResponsePlugin:{
152+
name: 'Entra Mock Response Plugin',
153+
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/entramockresponseplugin',
154+
},
144155
ExecutionSummaryPlugin: {
145156
name: 'Execution Summary Plugin',
146157
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/executionsummaryplugin',

src/snippets.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,27 @@
214214
],
215215
"description": "DevToolsPlugin config section"
216216
},
217+
"EntraMockResponsePlugin": {
218+
"prefix": "devproxy-plugin-entra-mock-response",
219+
"body": [
220+
"{",
221+
"\t\"name\": \"EntraMockResponsePlugin\",",
222+
"\t\"enabled\": true,",
223+
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\",",
224+
"\t\"configSection\": \"mocksPlugin\"",
225+
"}"
226+
],
227+
"description": "EntraMockResponsePlugin instance"
228+
},
229+
"EntraMockResponsePluginConfig": {
230+
"prefix": "devproxy-plugin-entra-mock-response-config",
231+
"body": [
232+
"\"mocksPlugin\": {",
233+
"\t\"mocksFile\": \"mocks.json\"",
234+
"},"
235+
],
236+
"description": "EntraMockResponsePlugin config section"
237+
},
217238
"ExecutionSummaryPlugin": {
218239
"prefix": "devproxy-plugin-execution-summary",
219240
"body": [

0 commit comments

Comments
 (0)