This job view page is being replaced by Spyglass soon. Check out the new job view.
PRSakuralbj: test: add unit-test for azurefile_client
ResultFAILURE
Tests 0 failed / 0 succeeded
Started2020-09-10 08:54
Elapsed4m45s
Revision5ec234c3f21799bb8446df5553d8e0be2632e10a
Refs 413

No Test Failures!


Error lines from build-log.txt

... skipping 70 lines ...
go: downloading github.com/google/gofuzz v1.1.0
go: downloading golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/Azure/go-autorest/autorest/validation v0.1.0
go: downloading github.com/satori/go.uuid v1.2.0
=== RUN   TestGetCloudProvider
W0910 08:55:48.346187    9253 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
E0910 08:55:48.346401    9253 azure.go:71] Failed to load config from file: /etc/kubernetes/azure.json
W0910 08:55:48.346509    9253 azure.go:42] get kubeconfig(/tmp/non-exist.json) failed with error: stat /tmp/non-exist.json: no such file or directory
E0910 08:55:48.346558    9253 azure.go:71] Failed to load config from file: /etc/kubernetes/azure.json
W0910 08:55:48.347470    9253 azure.go:42] get kubeconfig(empty-kube-config) failed with error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
W0910 08:55:48.372028    9253 azure_config.go:52] Failed to get cloud-config from secret: failed to get secret azure-cloud-provider: Get "https://localhost:8080/api/v1/namespaces/kube-system/secrets/azure-cloud-provider": getting credentials: exec: exec: "foo-command": executable file not found in $PATH, skip initializing from secret
E0910 08:55:48.372113    9253 azure.go:71] Failed to load config from file: /etc/kubernetes/azure.json
W0910 08:55:48.372275    9253 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
--- PASS: TestGetCloudProvider (0.03s)
=== RUN   TestGetFileSvcClient
--- PASS: TestGetFileSvcClient (0.00s)
=== RUN   TestCreateFileShare
=== RUN   TestCreateFileShare/ShareOptions_empty
=== RUN   TestCreateFileShare/AccountName_invalid
... skipping 43 lines ...
Driver Version: N/A
Git Commit: N/A
Go Version: go1.15
Platform: linux/amd64

Streaming logs below:
W0910 08:55:52.686393    9253 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
I0910 08:55:52.693448    9253 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
I0910 08:55:52.693509    9253 driver.go:93] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0910 08:55:52.693537    9253 driver.go:93] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0910 08:55:52.693563    9253 driver.go:93] Enabling controller service capability: EXPAND_VOLUME
I0910 08:55:52.693603    9253 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
I0910 08:55:52.693637    9253 driver.go:112] Enabling volume access mode: SINGLE_NODE_READER_ONLY
... skipping 11 lines ...
Driver Version: N/A
Git Commit: N/A
Go Version: go1.15
Platform: linux/amd64

Streaming logs below:
W0910 08:55:52.699960    9253 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
I0910 08:55:52.701258    9253 azurefile.go:153] disable UseInstanceMetadata for controller
I0910 08:55:52.701486    9253 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
I0910 08:55:52.701534    9253 driver.go:93] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0910 08:55:52.701555    9253 driver.go:93] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0910 08:55:52.701946    9253 driver.go:93] Enabling controller service capability: EXPAND_VOLUME
I0910 08:55:52.702021    9253 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
... skipping 57 lines ...
    --- PASS: TestCreateVolume/Create_disk_returns_error (0.01s)
    --- PASS: TestCreateVolume/Valid_request (0.00s)
=== RUN   TestDeleteVolume
=== RUN   TestDeleteVolume/Volume_ID_missing
=== RUN   TestDeleteVolume/Controller_capability_missing
=== RUN   TestDeleteVolume/Invalid_volume_ID
E0910 08:55:52.739346    9253 controllerserver.go:274] GetFileShareInfo(vol_1) in DeleteVolume failed with error: error parsing volume id: "vol_1", should at least contain two #
=== RUN   TestDeleteVolume/Delete_file_share_returns_error
=== RUN   TestDeleteVolume/Valid_request
--- PASS: TestDeleteVolume (0.00s)
    --- PASS: TestDeleteVolume/Volume_ID_missing (0.00s)
    --- PASS: TestDeleteVolume/Controller_capability_missing (0.00s)
    --- PASS: TestDeleteVolume/Invalid_volume_ID (0.00s)
... skipping 33 lines ...
    --- PASS: TestControllerExpandVolume/Disk_name_not_empty (0.00s)
    --- PASS: TestControllerExpandVolume/Resize_file_share_returns_error (0.00s)
    --- PASS: TestControllerExpandVolume/Valid_request (0.00s)
=== RUN   TestGetShareURL
--- PASS: TestGetShareURL (0.00s)
=== RUN   TestGetServiceURL
E0910 08:55:52.761992    9253 controllerserver.go:634] NewSharedKeyCredential() in CreateSnapshot failed with error: illegal base64 data at input byte 3
E0910 08:55:52.762156    9253 controllerserver.go:640] parse serviceURLTemplate error: parse "https://^f5713de20cde511e8ba4900.file.abc": invalid character "^" in host name
--- PASS: TestGetServiceURL (0.00s)
=== RUN   TestSnapshotExists
--- PASS: TestSnapshotExists (0.00s)
=== RUN   TestGetCapacity
--- PASS: TestGetCapacity (0.00s)
=== RUN   TestListVolumes
... skipping 14 lines ...
--- PASS: TestGetPluginCapabilities (0.00s)
=== RUN   TestNodeGetInfo
--- PASS: TestNodeGetInfo (0.00s)
=== RUN   TestNodeGetCapabilities
--- PASS: TestNodeGetCapabilities (0.00s)
=== RUN   TestNodePublishVolume
E0910 08:55:52.769373    9253 nodeserver.go:378] MakeDir failed on target: ./azure.go (mkdir ./azure.go: not a directory)
--- PASS: TestNodePublishVolume (0.00s)
=== RUN   TestNodeUnpublishVolume
W0910 08:55:52.770074    9253 mount_helper_common.go:33] Warning: Unmount skipped because path does not exist: ./abc.go
--- PASS: TestNodeUnpublishVolume (0.00s)
=== RUN   TestNodeStageVolume
I0910 08:55:52.770930    9253 mount_linux.go:366] Disk "proxy-mount/test_disk" appears to be unformatted, attempting to format as type: "ext4" with options: [-F -m0 proxy-mount/test_disk]
E0910 08:55:52.771131    9253 mount_linux.go:372] format of disk "proxy-mount/test_disk" failed: type:("ext4") target:("./source_test") options:("barrier=1,errors=remount-ro,loop,noatime,defaults") errcode:(formatting failed) output:() 
I0910 08:55:52.771539    9253 mount_linux.go:366] Disk "proxy-mount/test_disk" appears to be unformatted, attempting to format as type: "ext4" with options: [-F -m0 proxy-mount/test_disk]
I0910 08:55:52.771600    9253 mount_linux.go:376] Disk successfully formatted (mkfs): ext4 - proxy-mount/test_disk ./source_test
--- PASS: TestNodeStageVolume (0.00s)
=== RUN   TestNodeUnstageVolume
W0910 08:55:52.772079    9253 mount_helper_common.go:33] Warning: Unmount skipped because path does not exist: ./abc.go
W0910 08:55:52.772127    9253 mount_helper_common.go:33] Warning: Unmount skipped because path does not exist: proxy-mount
--- PASS: TestNodeUnstageVolume (0.00s)
=== RUN   TestNodeGetVolumeStats
--- PASS: TestNodeGetVolumeStats (0.00s)
=== RUN   TestEnsureMountPoint
W0910 08:55:52.773683    9253 nodeserver.go:368] ReadDir ./false_is_likely_target failed with open ./false_is_likely_target: no such file or directory, unmount this directory
E0910 08:55:52.773800    9253 nodeserver.go:378] MakeDir failed on target: ./azure.go (mkdir ./azure.go: not a directory)
--- PASS: TestEnsureMountPoint (0.00s)
=== RUN   TestMakeDir
--- PASS: TestMakeDir (0.00s)
=== RUN   TestNodeExpandVolume
--- PASS: TestNodeExpandVolume (0.00s)
=== RUN   TestSimpleLockEntry
... skipping 256 lines ...
Preparing to unpack .../yamllint_1.15.0-1_all.deb ...
Unpacking yamllint (1.15.0-1) ...
Setting up python3-pkg-resources (40.8.0-1) ...
Setting up python3-pathspec (0.5.9-1) ...
Setting up yamllint (1.15.0-1) ...
checking yamllint under path: deploy/*.yaml ...
deploy/crd-csi-snapshot.yaml:12:3: [error] wrong indentation: expected 4 but found 2 (indentation)
deploy/crd-csi-snapshot.yaml:101:11: [error] wrong indentation: expected 12 but found 10 (indentation)
deploy/crd-csi-snapshot.yaml:160:15: [error] wrong indentation: expected 16 but found 14 (indentation)
deploy/crd-csi-snapshot.yaml:175:7: [error] wrong indentation: expected 8 but found 6 (indentation)
deploy/crd-csi-snapshot.yaml:179:3: [error] wrong indentation: expected 4 but found 2 (indentation)
deploy/crd-csi-snapshot.yaml:200:3: [error] wrong indentation: expected 4 but found 2 (indentation)
deploy/crd-csi-snapshot.yaml:240:11: [error] wrong indentation: expected 12 but found 10 (indentation)
deploy/crd-csi-snapshot.yaml:259:7: [error] wrong indentation: expected 8 but found 6 (indentation)
deploy/crd-csi-snapshot.yaml:264:3: [error] wrong indentation: expected 4 but found 2 (indentation)
deploy/crd-csi-snapshot.yaml:285:3: [error] wrong indentation: expected 4 but found 2 (indentation)
deploy/crd-csi-snapshot.yaml:358:15: [error] wrong indentation: expected 16 but found 14 (indentation)
deploy/crd-csi-snapshot.yaml:428:11: [error] wrong indentation: expected 12 but found 10 (indentation)
deploy/crd-csi-snapshot.yaml:493:7: [error] wrong indentation: expected 8 but found 6 (indentation)
deploy/crd-csi-snapshot.yaml:497:3: [error] wrong indentation: expected 4 but found 2 (indentation)
checking yamllint under path: deploy/example/*.yaml ...
checking yamllint under path: deploy/example/snapshot/*.yaml ...
checking yamllint under path: deploy/example/disk/*.yaml ...
checking yamllint under path: deploy/example/windows/*.yaml ...
checking yamllint under path: deploy/example/metrics/*.yaml ...
checking yamllint under path: charts/latest/azurefile-csi-driver/templates ...
... skipping 19 lines ...