Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Support for list input type #843

Merged
merged 8 commits into from
Feb 8, 2021

Conversation

henriquemoraeszup
Copy link
Contributor

@henriquemoraeszup henriquemoraeszup commented Jan 28, 2021

Description

An excuse to refactor package prompt tests. Some of the implementations in this PR

  • Support for list type in the config.json file
  • Removed mocks from the test file
  • Test refactor of the 900+ lines of code to comply with the new implementation method (closes Tests with Testify in Pkg/Formula/Input/Prompt #783 )
  • Removed fileManager dependency from prompt
  • Tests actually check if envs were created
  • Removed non dynamic entries from table tests
  • Removed table test from Default test, since it only had a single test

How to verify it

Run a formula with the config "type": "list", it should work normally

Changelog

Support for list input type

Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
@henriquemoraeszup henriquemoraeszup added 📚 documentation Improvements or additions to documentation 🔨 improvement Improvement in features labels Jan 28, 2021
@henriquemoraeszup henriquemoraeszup self-assigned this Jan 28, 2021
Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
@henriquemoraeszup henriquemoraeszup linked an issue Jan 28, 2021 that may be closed by this pull request
Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
@brunasilvazup brunasilvazup added the ✔️ ready-for-review ready for review label Feb 3, 2021
brunasilvazup
brunasilvazup previously approved these changes Feb 4, 2021
@brunasilvazup brunasilvazup added waiting reply Waiting for an answer to a comment and removed ✔️ ready-for-review ready for review labels Feb 5, 2021
Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
@henriquemoraeszup henriquemoraeszup added ✔️ ready-for-review ready for review and removed waiting reply Waiting for an answer to a comment labels Feb 5, 2021
@brunasilvazup brunasilvazup merged commit b58b1a6 into ZupIT:master Feb 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📚 documentation Improvements or additions to documentation 🔨 improvement Improvement in features ✔️ ready-for-review ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for list input type Tests with Testify in Pkg/Formula/Input/Prompt
3 participants