Skip to content

Commit c173027

Browse files
committed
Update plugin config section names for EntraMockResponsePlugin and GraphMockResponsePlugin. Closes #107
1 parent cf33148 commit c173027

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Snippets: All snippets that reference schemas updated to use `v0.19.1` schema
1313
- Snippets: Removed `configSection` from `devproxy-plugin-graph-minimal-permissions`
14+
- Snippets: Updated `configSection` names to be unique
1415

1516
### Removed:
1617

1718
- Snippets: `devproxy-plugin-graph-minimal-permissions-config`
1819

20+
### Added:
21+
22+
- Snippet: `devproxy-plugin-graph-mock-response-config` - GraphMockResponsePlugin config section
23+
1924
## [0.5.0] - 2024-06-27
2025

2126
### Added:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ The following sections describe the features that the extension contributes to V
8383
| `devproxy-plugin-graph-beta-support-guidance` | GraphBetaSupportGuidancePlugin instance |
8484
| `devproxy-plugin-graph-client-request-id-guidance` | GraphClientRequestIdGuidancePlugin instance |
8585
| `devproxy-plugin-graph-mock-response` | GraphMockResponsePlugin instance |
86+
| `devproxy-plugin-graph-mock-response-config` | GraphMockResponsePlugin config section |
8687
| `devproxy-plugin-graph-random-error` | GraphRandomErrorPlugin instance |
8788
| `devproxy-plugin-graph-random-error-config` | GraphRandomErrorPlugin config section |
8889
| `devproxy-plugin-graph-sdk-guidance` | GraphSdkGuidancePlugin instance |

src/snippets.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,15 @@
269269
"\t\"name\": \"EntraMockResponsePlugin\",",
270270
"\t\"enabled\": true,",
271271
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\",",
272-
"\t\"configSection\": \"mocksPlugin\"",
272+
"\t\"configSection\": \"entraMockResponsePlugin\"",
273273
"}"
274274
],
275275
"description": "EntraMockResponsePlugin instance"
276276
},
277277
"EntraMockResponsePluginConfig": {
278278
"prefix": "devproxy-plugin-entra-mock-response-config",
279279
"body": [
280-
"\"mocksPlugin\": {",
280+
"\"entraMockResponsePlugin\": {",
281281
"\t\"mocksFile\": \"mocks.json\"",
282282
"}"
283283
],
@@ -389,7 +389,7 @@
389389
"\t\"name\": \"GraphMockResponsePlugin\",",
390390
"\t\"enabled\": true,",
391391
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\",",
392-
"\t\"configSection\": \"mocksPlugin\",",
392+
"\t\"configSection\": \"graphMockResponsePlugin\",",
393393
"\t\"urlsToWatch\": [",
394394
"\t\t\"https://graph.microsoft.com/v1.0/*\",",
395395
"\t\t\"https://graph.microsoft.com/beta/*\",",
@@ -404,6 +404,15 @@
404404
],
405405
"description": "GraphMockResponsePlugin instance"
406406
},
407+
"GraphMockResponsePluginConfig": {
408+
"prefix": "devproxy-plugin-graph-mock-response-config",
409+
"body": [
410+
"\"graphMockResponsePlugin\": {",
411+
"\t\"mocksFile\": \"mocks.json\"",
412+
"}"
413+
],
414+
"description": "GraphMockResponsePlugin config section"
415+
},
407416
"GraphRandomErrorPlugin": {
408417
"prefix": "devproxy-plugin-graph-random-error",
409418
"body": [
@@ -581,15 +590,15 @@
581590
"\t\"name\": \"MockResponsePlugin\",",
582591
"\t\"enabled\": true,",
583592
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\",",
584-
"\t\"configSection\": \"mocksPlugin\"",
593+
"\t\"configSection\": \"mockResponsePlugin\"",
585594
"}"
586595
],
587596
"description": "MockResponsePlugin instance"
588597
},
589598
"MockResponsePluginConfig": {
590599
"prefix": "devproxy-plugin-mock-response-config",
591600
"body": [
592-
"\"mocksPlugin\": {",
601+
"\"mockResponsePlugin\": {",
593602
"\t\"mocksFile\": \"mocks.json\"",
594603
"}"
595604
],

0 commit comments

Comments
 (0)