-
Notifications
You must be signed in to change notification settings - Fork 33
feat(iaas): List NICs for Project #1242
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: main
Are you sure you want to change the base?
Conversation
relates to STACKITCLI-307 and #1214
Fixed tests and linter relates to STACKITCLI-307 and #1214
relates to STACKITCLI-307 and #1214 tests added network ids included in list of project NICs
| } | ||
|
|
||
| // Truncate output | ||
| items := *resp.Items |
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.
Potential nil pointer dereference, take care of it please
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.
Merging this branch will decrease overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
| if err != nil { | ||
| projectLabel = model.ProjectId | ||
| } | ||
| params.Printer.Outputf("No network interfaces found for project %q\n", projectLabel) |
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.
Same as in your other PR. This belongs into outputResult, else you will have invalid JSON/YAML output here.
| networkLabel = *model.NetworkId | ||
| } | ||
| params.Printer.Info("No network interfaces found for network %q\n", networkLabel) | ||
| params.Printer.Outputf("No network interfaces found for network %q\n", networkLabel) |
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.
invalid JSON/YAML output, see comment above
| args: args{}, | ||
| wantErr: false, | ||
| }, | ||
| { |
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.
can we have some more test-cases for the output result stuff please?
Description
relates to STACKITCLI-307 and #1214
Checklist
make fmtmake generate-docs(will be checked by CI)make test(will be checked by CI)make lint(will be checked by CI)