chore(test): improve tests for job collector #1064
Annotations
3 errors and 1 warning
Run unit tests:
pkg/jobs/collector_test.go#L303
cannot use mockCluster (variable of type *k8s.MockCluster) as k8s.Cluster value in argument to NewCollector: *k8s.MockCluster does not implement k8s.Cluster (wrong type for method GetK8sClientSet)
|
Run unit tests:
pkg/trivyk8s/trivyk8s_test.go#L85
cannot use k8s.NewMockCluster(k8s.NewMockClusterDynamicClient(nsResource)) (value of type *k8s.MockCluster) as k8s.Cluster value in struct literal: *k8s.MockCluster does not implement k8s.Cluster (wrong type for method GetK8sClientSet)
|
Run unit tests
Process completed with exit code 2.
|
Setup Go
Restore cache failed: Dependencies file is not found in /home/runner/work/trivy-kubernetes/trivy-kubernetes. Supported file pattern: go.sum
|
Loading