-
Notifications
You must be signed in to change notification settings - Fork 151
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
Not able to run tests for csi-sanity #248
Comments
That hostpath-service is not connected to anything, at least not if it is similar to the one from You have to run something like |
Hi @pohly after running https://github.com/kubernetes-csi/csi-driver-host-path/blob/master/deploy/kubernetes-1.17/hostpath/csi-hostpath-testing.yaml i am not able to get the expected output as test cases are failing. I've got output Unexpected error: /root/csi-test/pkg/sanity/sanity.go:255 |
According to docs when i unit-test csi-sanity the test |
How did you run csi-sanity? It must be configured to connect to the running CSI driver. That part didn't work. This blog post has a full working example: https://kubernetes.io/blog/2020/01/08/testing-of-csi-drivers/ |
Thanks @pohly for the blog post https://kubernetes.io/blog/2020/01/08/testing-of-csi-drivers/ .The problem is with unix domain socket. |
I am not able to run csi-sanity test case,as i am using csi-driver host-path for csi endpoint
root@kmaster:~/csi-test/cmd/csi-sanity# kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
csi-hostpath-attacher ClusterIP 10.96.104.168 12345/TCP 27h
csi-hostpath-provisioner ClusterIP 10.96.12.151 12345/TCP 27h
csi-hostpath-resizer ClusterIP 10.96.220.210 12345/TCP 27h
csi-hostpath-snapshotter ClusterIP 10.96.245.163 12345/TCP 27h
csi-hostpathplugin ClusterIP 10.96.175.29 12345/TCP 27h
csi-snapshotter ClusterIP 10.96.47.90 12345/TCP 26h
example-service NodePort 10.96.204.209 8080:30760/TCP 21d
hostpath-service NodePort 10.96.210.21 10000:30106/TCP 27h
internal-docker-registry NodePort 10.96.72.151 5000:32000/TCP 20d
kubernetes ClusterIP 10.96.0.1 443/TCP 29d
and while running this test i got an error
root@kmaster:~/csi-test/cmd/csi-sanity# ./csi-sanity -csi.endpoint dns://127.0.0.1:30106
Running Suite: CSI Driver Test Suite
Random Seed: 1581499694
Will run 72 of 73 specs
STEP: connecting to CSI driver
• Failure in Spec Setup (BeforeEach) [60.002 seconds]
Node Service
/root/csi-test/pkg/sanity/tests.go:44
NodeGetCapabilities [BeforeEach]
/root/csi-test/pkg/sanity/node.go:119
should return appropriate capabilities
/root/csi-test/pkg/sanity/node.go:120
Can anyone help how to solve this error
The text was updated successfully, but these errors were encountered: