apache / apache/openwhisk-cli

Use `assetHelper.withCleaner` Within `ApiGwCliBasicTests.scala` Tests

Aperta
#368 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
109
Fork
98
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The tests within `incubator-openwhisk-cli/tests/src/test/scala/whisk/core/cli/testApiGwCliBasicTests.scala` tend to not use the `assetHelper` for several action/api tests. Instead, the action and/or api is cleaned up explicitly in each test's `finally` block via `action.delete`. This should be improved to use the `assetHelper` for more concise test code.

The other tests within this repo tend to use this `assetHelper` appropriately, but they all could use a look to make sure the usage is aligned.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reading incubator-openwhisk-cli/tests/src/test/scala/whisk/core/cli/testApiGwCliBasicTests.scala and inspect how its action and API tests use assetHelper versus explicit finally-block cleanup. Align the relevant tests with the repository's existing assetHelper usage, then check the other tests for similar inconsistencies. Done means cleanup is concise and consistently handled through assetHelper.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
scala
Ambito
cli, testing
Tipo di issue
Refactoring
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.