-
Notifications
You must be signed in to change notification settings - Fork 38
feat(ENG-11221): modify alpine upstream rsa fields #284
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -66,6 +66,20 @@ def build_row(u): | |||||||||||||||||||||||||
| click.style(fmt_bool(u["verify_ssl"]), fg="green"), | ||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| if upstream_fmt == "alpine": | ||||||||||||||||||||||||||
| # RSA verification fields are alpine-only | ||||||||||||||||||||||||||
| row.append( | ||||||||||||||||||||||||||
| click.style( | ||||||||||||||||||||||||||
| maybe_truncate_string(str(u.get("rsa_key_inline", "") or "")), | ||||||||||||||||||||||||||
| fg="yellow", | ||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||
| row.append(click.style(str(u.get("rsa_key_url", "") or ""), fg="yellow")) | ||||||||||||||||||||||||||
| row.append(click.style(str(u.get("rsa_verification", "")), fg="yellow")) | ||||||||||||||||||||||||||
| row.append( | ||||||||||||||||||||||||||
| click.style(str(u.get("rsa_verification_status", "")), fg="yellow") | ||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||
|
Comment on lines
+78
to
+81
|
||||||||||||||||||||||||||
| row.append(click.style(str(u.get("rsa_verification", "")), fg="yellow")) | |
| row.append( | |
| click.style(str(u.get("rsa_verification_status", "")), fg="yellow") | |
| ) | |
| row.append( | |
| click.style(str(u.get("rsa_verification", "") or ""), fg="yellow") | |
| ) | |
| row.append( | |
| click.style( | |
| str(u.get("rsa_verification_status", "") or ""), fg="yellow" | |
| ) | |
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new Alpine-only RSA columns are only exercised in the pretty/table output path, but the existing upstream command tests cover JSON output only. Add/extend a CLI test that runs
cloudsmith upstream alpine lswith the default (pretty) output and asserts the RSA headers/values are present to prevent regressions in column alignment/order.