Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI Config Parity] migrate key-file flag usage to new config #2069

Merged
merged 5 commits into from
Jun 27, 2024

Conversation

ashmeenkaur
Copy link
Collaborator

@ashmeenkaur ashmeenkaur commented Jun 26, 2024

Description

This PR is part of migration to new cobra/viper configs for CLI config parity.
Replaced usage of key-file flag stored in flagstorage.KeyFile to newConfig.GcsAuth.KeyFile.

Link to the issue in case of a bug fix.

NA

Testing details

  1. Manual - Manually verified that key-file flag is working.
  2. Unit tests - added
  3. Integration tests - Ran via KOKORO

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 72.13%. Comparing base (492f2ba) to head (77c6f8b).
Report is 10 commits behind head on CLI_config_parity_release.

Files with missing lines Patch % Lines
cmd/legacy_main.go 25.00% 6 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           CLI_config_parity_release    #2069      +/-   ##
=============================================================
- Coverage                      72.15%   72.13%   -0.02%     
=============================================================
  Files                            100      100              
  Lines                          10965    10965              
=============================================================
- Hits                            7912     7910       -2     
- Misses                          2718     2720       +2     
  Partials                         335      335              
Flag Coverage Δ
unittests 72.13% <25.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from create_new_config_from_legacy to CLI_config_parity_release June 26, 2024 11:39
@ashmeenkaur ashmeenkaur added the execute-integration-tests Run only integration tests label Jun 26, 2024
@ashmeenkaur ashmeenkaur changed the title migrate key file flag usage to new config [CLI Config Parity] migrate key-file flag usage to new config Jun 26, 2024
@ashmeenkaur ashmeenkaur marked this pull request as ready for review June 26, 2024 13:39
@ashmeenkaur ashmeenkaur requested review from kislaykishore and a team as code owners June 26, 2024 13:39
@ashmeenkaur ashmeenkaur requested review from sethiay and removed request for sethiay June 26, 2024 13:39
kislaykishore
kislaykishore previously approved these changes Jun 26, 2024
cmd/legacy_param_mapper_test.go Outdated Show resolved Hide resolved
cmd/legacy_param_mapper_test.go Outdated Show resolved Hide resolved
Co-authored-by: Kislay Kishore <kislayk@google.com>
Co-authored-by: Kislay Kishore <kislayk@google.com>
@ashmeenkaur ashmeenkaur removed the execute-integration-tests Run only integration tests label Jun 27, 2024
@ashmeenkaur ashmeenkaur merged commit ebe610c into CLI_config_parity_release Jun 27, 2024
13 checks passed
@ashmeenkaur ashmeenkaur deleted the migrate_key_file branch June 27, 2024 05:24
kislaykishore added a commit that referenced this pull request Jun 28, 2024
* remove key file flag usage

* typo fix

* review comment

Co-authored-by: Kislay Kishore <kislayk@google.com>

* review comment

Co-authored-by: Kislay Kishore <kislayk@google.com>

* remove unexported method test

---------

Co-authored-by: Kislay Kishore <kislayk@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants