aws-cloudformation / aws-cloudformation/cloudformation-cli
Allow users to specify different contract test inputs for each individual test / new resource
- Vorherrschende Sprache
- Python
- Sterne
- 336
- Forks
- 172
- Ø Merge
- 3 T. 5 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
I am developing a resource that requires a real, unique activation key as one of its properties.
I have to override inputs because I need to specify real activation keys; a fake key will be rejected. But, I can only specify a single override value, which causes the same key to be reused across tests when running contract tests using `cfn test`.
I can somewhat get around this by running a single contract test at a time and changing the inputs one at a time.
In this case, it would help if I could specify a set of input values so that a different key is chosen for each resource created by the contract tests, and keys aren't repeated.
Beitragsleitfaden
Rechercherichtung
Beginne damit nachzuverfolgen, wie `cfn test` Eingabeüberschreibungen für Contract-Tests liest und anwendet. Ermittle, an welcher Stelle eine Gruppe von Werten einzelnen Tests oder erstellten Ressourcen zugeordnet werden könnte, und verifiziere anschließend, dass jede Ressource einen eigenen Schlüssel erhält, der während des gesamten Contract-Test-Laufs nicht wiederverwendet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- cli, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100