fix(preflight): improved error reporting for storage container and VM image checks #3857
checks.yml
on: pull_request
Matrix: lint-go
unit-test
6m 23s
lint-gha
9s
pre-commit
1m 57s
lint-test-helm
49s
Matrix: e2e-quick-start
Waiting for pending jobs
Matrix: e2e-self-hosted
Waiting for pending jobs
Annotations
2 errors and 3 warnings
|
unit-test:
pkg/webhook/preflight/nutanix/image_test.go#L297
image_test.go:297:
Error Trace: /home/runner/work/cluster-api-runtime-extensions-nutanix/cluster-api-runtime-extensions-nutanix/pkg/webhook/preflight/nutanix/image_test.go:297
Error: Not equal:
expected: []preflight.Cause{preflight.Cause{Message:"failed to get VM Image: api error", Field:"test-field"}}
actual : []preflight.Cause{preflight.Cause{Message:"failed to get VM Image: failed to get data returned by ListImages", Field:"test-field"}}
Diff:
--- Expected
+++ Actual
@@ -2,3 +2,3 @@
(preflight.Cause) {
- Message: (string) (len=33) "failed to get VM Image: api error",
+ Message: (string) (len=65) "failed to get VM Image: failed to get data returned by ListImages",
Field: (string) (len=10) "test-field"
Test: TestVMImageCheck/listing_images_returns_an_error_response
|
|
unit-test
Process completed with exit code 2.
|
|
lint-go (api)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
|
lint-go (common)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
|
lint-go (.)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|