Skip to content

fix: correct TUI flow for validator install -o --apply#169

Merged
ahmad-ibra merged 6 commits intomainfrom
fix/install-with-rule-config
Aug 15, 2024
Merged

fix: correct TUI flow for validator install -o --apply#169
ahmad-ibra merged 6 commits intomainfrom
fix/install-with-rule-config

Conversation

@TylerGillson
Copy link
Member

Issue

N/A

Description

Sometime during the CLI refactor, the E2E flow for prompting users for installation & rule config in a single pass in config-only mode was broken. This PR fixes that and addresses various issues with integration test prompting and dummy values that were previously missed as a result of the broken TUI flow.

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
…e files

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
@TylerGillson TylerGillson requested a review from a team as a code owner August 15, 2024 19:06
@TylerGillson TylerGillson requested a review from mattwelke August 15, 2024 19:06
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Aug 15, 2024
Copy link
Member

@ahmad-ibra ahmad-ibra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing this so quickly 🙇

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 15, 2024
@codecov
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 92.75362% with 5 lines in your changes missing coverage. Please review.

Files Patch % Lines
pkg/cmd/validator/validator.go 60.00% 1 Missing and 1 partial ⚠️
pkg/services/clouds/maas_service.go 91.66% 2 Missing ⚠️
pkg/services/validator/validator_service.go 0.00% 0 Missing and 1 partial ⚠️
@@             Coverage Diff             @@
##             main     #169       +/-   ##
===========================================
+ Coverage   37.19%   53.70%   +16.50%     
===========================================
  Files          43       43               
  Lines        6078     6100       +22     
===========================================
+ Hits         2261     3276     +1015     
+ Misses       3399     2003     -1396     
- Partials      418      821      +403     
Files Coverage Δ
pkg/services/validator/aws.go 50.43% <100.00%> (+35.65%) ⬆️
pkg/services/validator/azure.go 39.69% <100.00%> (+29.38%) ⬆️
pkg/services/validator/maas.go 46.38% <100.00%> (+43.16%) ⬆️
pkg/services/validator/network.go 46.97% <100.00%> (+32.55%) ⬆️
pkg/services/validator/oci.go 47.94% <100.00%> (+46.44%) ⬆️
pkg/services/validator/vmware.go 41.23% <100.00%> (+30.45%) ⬆️
...integration/_validator/testcases/test_validator.go 93.64% <100.00%> (-0.04%) ⬇️
pkg/services/validator/validator_service.go 46.68% <0.00%> (+4.50%) ⬆️
pkg/cmd/validator/validator.go 59.03% <60.00%> (+0.93%) ⬆️
pkg/services/clouds/maas_service.go 55.29% <91.66%> (+37.83%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d569de...84c488b. Read the comment docs.

@ahmad-ibra ahmad-ibra merged commit 0912f6e into main Aug 15, 2024
@ahmad-ibra ahmad-ibra deleted the fix/install-with-rule-config branch August 15, 2024 19:43
ahmad-ibra pushed a commit that referenced this pull request Aug 19, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.1.2](v0.1.1...v0.1.2)
(2024-08-19)


### Features

* add maas plugin
([#160](#160))
([ab9f21a](ab9f21a))
* allow selecting aws creds from filesystem
([#171](#171))
([c3a714c](c3a714c))
* allow specifying Azure cloud to connect to
([#170](#170))
([6a4a704](6a4a704))
* read vCenter privileges from local file or editor
([#152](#152))
([94ddd90](94ddd90))
* set exit code 2 on validation failure; restore debug log file
([#150](#150))
([2a3fe4d](2a3fe4d))
* support configuring oci validationType on a rule
([#161](#161))
([8dfc501](8dfc501))
* support direct oci validation of private registries
([#173](#173))
([9cfeab9](9cfeab9))


### Bug Fixes

* correct TUI flow for `validator install -o --apply`
([#169](#169))
([0912f6e](0912f6e))
* export creds for aws and azure direct check
([#167](#167))
([5d569de](5d569de))


### Dependency Updates

* **deps:** update anchore/sbom-action action to v0.17.1
([#163](#163))
([416d23c](416d23c))
* **deps:** update github.com/validator-labs/validator-plugin-azure
digest to b4687e5
([#149](#149))
([e7ab9a6](e7ab9a6))
* **deps:** update github.com/validator-labs/validator-plugin-vsphere
digest to a93cb70
([#147](#147))
([79304b9](79304b9))
* **deps:** update module github.com/vmware/govmomi to v0.40.0
([#162](#162))
([acf4a25](acf4a25))


### Refactoring

* lazy configuration of oci auth and signature verification secrets
([#168](#168))
([cc2c056](cc2c056))
* remove explicit TypeMetas; use vapi constants
([#154](#154))
([28b321c](28b321c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants