Enhancement: define failure rate for each mocked response
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginne damit, die Befehlszeilenverarbeitung für responses.json in ms-dev-proxy und den Code zu finden, der gemockte Antworten anwendet. Kläre, ob die angeforderte Arbeit den alternativen Pfad zur Responses-Datei, Ausfallraten pro Antwort oder beides umfasst, und definiere die Antwortkonfiguration und das beobachtbare Verhalten vor der Implementierung. Erledigt sollte dokumentierte Optionen und Tests enthalten, die die ausgewählten Szenarien abdecken.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Background
Currently, I am researching if we may use the ms-dev-proxy as a tool to support us in integration/manual/QA tests for our apps, and mocking responses is just the perfect functionality we could use 😉.
Idea
- Currently the ms-dev-proxy will look for
responses.jsonfile in the working directory which is just perfect to keep mock related to the app in the projects folder. What I was thinking is maybe ms-dev-proxy could have a new option that would allow specifying the relative path to theresponse.jsonwith mocks to be used. Maybe something like-r --responses-file-path(optional). The aim for this would be to have different test scenarios with different mocks for the same app and then use them as part of integration tests. That way I could keep something like
.
├── MyApp
├── TestScenarios
│ ├── groups-fail-timeout-responses.json
│ └── throttle-responses.json
In this case, each integration test could start the ms-dev-proxy giving different responses.json mocks as param.
TBH this is very low 😉 (and probably stupid) idea as the current workaround I have for it is:
- keep
responses.jsonin subfolders and run the ms-dev-proxy in the subfolder with correct mocks as working directory - the test may just copy/paste the needed
responses.jsonfile to be used for this test.
- Second idea I had (sorry for adding 2 ideas in one issue, I am a bit lazy and running out of time 😝), is to give possibility to define the failure rate for each mocked response in case we are mocking error response.
- Vorherrschende Sprache
- C#
- Sterne
- 833
- Forks
- 90
- Ø Merge
- 18 Std. 41 Min.
- Gemergte PRs (30 T.)
- 45
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus dotnet/dev-proxy
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
waiting for response
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 28/100
dotnet/dev-proxy#1914 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
MockStdioResponsePlugin: @stdin.body.id placeholder fails to resolve when messages arrive back-to-back after an id-less messageEvtl. wieder frei @garrytrinder hat das vor 85 Tagen übernommen, und es ist kein Pull Request offen. Offen
dotnet/dev-proxy#1757 · 1 Reaktion · 2 zugewiesene Personen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in dotnet/dev-proxy
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
Maintainer antworten meist innerhalb von 1 Tag
-
:watch: Not Triaged aspnet-core/svc fundamentals/subsvc Source - Docs.ms
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
dotnet/AspNetCore.Docs#37785 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Azure/azure-sdk-tools#17204 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Проблема с Dotnet RUOffenarea-tutorials needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
dotnet/website-feedback#1779 ·