Skip to content
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

cmd/test2json: passing test sets action=output for every JSON log #43683

Open
priyawadhwa opened this issue Jan 14, 2021 · 1 comment
Open

cmd/test2json: passing test sets action=output for every JSON log #43683

priyawadhwa opened this issue Jan 14, 2021 · 1 comment

Comments

@priyawadhwa
Copy link

@priyawadhwa priyawadhwa commented Jan 14, 2021

I got the following JSON output from running test2json on Windows on a test in the minikube repo:

The text is as follows:

=== RUN   TestScheduledStopWindows
    scheduled_stop_test.go:124: (dbg) Run:  ./minikube-windows-amd64.exe start -p scheduled-stop-20210112223103-14028 --memory=1900 --driver=docker
    scheduled_stop_test.go:124: (dbg) Done: ./minikube-windows-amd64.exe start -p scheduled-stop-20210112223103-14028 --memory=1900 --driver=docker: (1m43.59599s)
    scheduled_stop_test.go:133: (dbg) Run:  ./minikube-windows-amd64.exe stop -p scheduled-stop-20210112223103-14028 --schedule 5m
    scheduled_stop_test.go:133: (dbg) Done: ./minikube-windows-amd64.exe stop -p scheduled-stop-20210112223103-14028 --schedule 5m: (1.0094241s)
    scheduled_stop_test.go:187: (dbg) Run:  ./minikube-windows-amd64.exe status --format={{.TimeToStop}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028
    scheduled_stop_test.go:187: (dbg) Done: ./minikube-windows-amd64.exe status --format={{.TimeToStop}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028: (1.0416793s)
    scheduled_stop_test.go:57: (dbg) Run:  ./minikube-windows-amd64.exe ssh -p scheduled-stop-20210112223103-14028 -- sudo systemctl show minikube-scheduled-stop --no-page
    scheduled_stop_test.go:133: (dbg) Run:  ./minikube-windows-amd64.exe stop -p scheduled-stop-20210112223103-14028 --schedule 5s
    scheduled_stop_test.go:172: (dbg) Run:  ./minikube-windows-amd64.exe status --format={{.Host}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028
    scheduled_stop_test.go:172: (dbg) Non-zero exit: ./minikube-windows-amd64.exe status --format={{.Host}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028: exit status 3 (3.5232091s)
        
        -- stdout --
        	Error
        
        -- /stdout --
        ** stderr ** 
        	E0112 22:32:59.642786    8588 status.go:363] failed to get storage capacity of /var: NewSession: new client: new client: dial tcp 127.0.0.1:33167: connectex: No connection could be made because the target machine actively refused it.
        	E0112 22:32:59.644806    8588 status.go:235] status error: NewSession: new client: new client: dial tcp 127.0.0.1:33167: connectex: No connection could be made because the target machine actively refused it.
        
        ** /stderr **
    scheduled_stop_test.go:172: status error: exit status 3 (may be ok)
    scheduled_stop_test.go:172: (dbg) Run:  ./minikube-windows-amd64.exe status --format={{.Host}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028
    scheduled_stop_test.go:172: (dbg) Non-zero exit: ./minikube-windows-amd64.exe status --format={{.Host}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028: exit status 7 (420.2802ms)
        
        -- stdout --
        	Stopped
        
        -- /stdout --
    scheduled_stop_test.go:172: status error: exit status 7 (may be ok)
    scheduled_stop_test.go:172: (dbg) Run:  ./minikube-windows-amd64.exe status --format={{.TimeToStop}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028
    scheduled_stop_test.go:172: (dbg) Non-zero exit: ./minikube-windows-amd64.exe status --format={{.TimeToStop}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028: exit status 7 (387.0412ms)
        
        -- stdout --
        	Nonexistent
        
        -- /stdout --
    scheduled_stop_test.go:172: status error: exit status 7 (may be ok)
    helpers_test.go:171: Cleaning up "scheduled-stop-20210112223103-14028" profile ...
    helpers_test.go:172: (dbg) Run:  ./minikube-windows-amd64.exe delete -p scheduled-stop-20210112223103-14028
    helpers_test.go:172: (dbg) Done: ./minikube-windows-amd64.exe delete -p scheduled-stop-20210112223103-14028: (3.4373944s)
--- PASS: TestScheduledStopWindows (121.44s)
PASS
Tests completed in 2m1.4388647s (result code 0)

and the JSON output looks like this:

{"Time":"2021-01-12T22:33:05.5581262Z","Action":"output","Output":"?=== RUN   TestScheduledStopWindows\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:124: (dbg) Run:  ./minikube-windows-amd64.exe start -p scheduled-stop-20210112223103-14028 --memory=1900 --driver=docker\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:124: (dbg) Done: ./minikube-windows-amd64.exe start -p scheduled-stop-20210112223103-14028 --memory=1900 --driver=docker: (1m43.59599s)\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:133: (dbg) Run:  ./minikube-windows-amd64.exe stop -p scheduled-stop-20210112223103-14028 --schedule 5m\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:133: (dbg) Done: ./minikube-windows-amd64.exe stop -p scheduled-stop-20210112223103-14028 --schedule 5m: (1.0094241s)\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:187: (dbg) Run:  ./minikube-windows-amd64.exe status --format={{.TimeToStop}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:187: (dbg) Done: ./minikube-windows-amd64.exe status --format={{.TimeToStop}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028: (1.0416793s)\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:57: (dbg) Run:  ./minikube-windows-amd64.exe ssh -p scheduled-stop-20210112223103-14028 -- sudo systemctl show minikube-scheduled-stop --no-page\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:133: (dbg) Run:  ./minikube-windows-amd64.exe stop -p scheduled-stop-20210112223103-14028 --schedule 5s\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:172: (dbg) Run:  ./minikube-windows-amd64.exe status --format={{.Host}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:172: (dbg) Non-zero exit: ./minikube-windows-amd64.exe status --format={{.Host}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028: exit status 3 (3.5232091s)\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        \r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        -- stdout --\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        \tError\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        \r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        -- /stdout --\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        ** stderr ** \r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        \tE0112 22:32:59.642786    8588 status.go:363] failed to get storage capacity of /var: NewSession: new client: new client: dial tcp 127.0.0.1:33167: connectex: No connection could be made because the target machine actively refused it.\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        \tE0112 22:32:59.644806    8588 status.go:235] status error: NewSession: new client: new client: dial tcp 127.0.0.1:33167: connectex: No connection could be made because the target machine actively refused it.\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        \r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"        ** /stderr **\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:172: status error: exit status 3 (may be ok)\r\n"}
{"Time":"2021-01-12T22:33:05.6121601Z","Action":"output","Output":"    scheduled_stop_test.go:172: (dbg) Run:  ./minikube-windows-amd64.exe status --format={{.Host}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"    scheduled_stop_test.go:172: (dbg) Non-zero exit: ./minikube-windows-amd64.exe status --format={{.Host}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028: exit status 7 (420.2802ms)\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        \r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        -- stdout --\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        \tStopped\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        \r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        -- /stdout --\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"    scheduled_stop_test.go:172: status error: exit status 7 (may be ok)\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"    scheduled_stop_test.go:172: (dbg) Run:  ./minikube-windows-amd64.exe status --format={{.TimeToStop}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"    scheduled_stop_test.go:172: (dbg) Non-zero exit: ./minikube-windows-amd64.exe status --format={{.TimeToStop}} -p scheduled-stop-20210112223103-14028 -n scheduled-stop-20210112223103-14028: exit status 7 (387.0412ms)\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        \r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        -- stdout --\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        \tNonexistent\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        \r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"        -- /stdout --\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"    scheduled_stop_test.go:172: status error: exit status 7 (may be ok)\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"    helpers_test.go:171: Cleaning up \"scheduled-stop-20210112223103-14028\" profile ...\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"    helpers_test.go:172: (dbg) Run:  ./minikube-windows-amd64.exe delete -p scheduled-stop-20210112223103-14028\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Output":"    helpers_test.go:172: (dbg) Done: ./minikube-windows-amd64.exe delete -p scheduled-stop-20210112223103-14028: (3.4373944s)\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Test":"TestScheduledStopWindows","Output":"--- PASS: TestScheduledStopWindows (121.44s)\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Test":"TestScheduledStopWindows","Output":"PASS\r\n"}
{"Time":"2021-01-12T22:33:05.6131428Z","Action":"output","Test":"TestScheduledStopWindows","Output":"Tests completed in 2m1.4388647s (result code 0)\r\n"}

I can't parse the data correctly because action=output for every log line, and I'm trying to determine if the test has failed or passed. Weirdly, the tool works fine for other tests in the same repo. I was wondering if anybody else had encountered this or had any suggestions.

I've included a sample .txt file from an integration test in the repo that seems to be working:

Found 2 cores, will not round down core count.
=== RUN   TestFunctional
=== RUN   TestFunctional/serial
=== RUN   TestFunctional/serial/CopySyncFile
    functional_test.go:903: local sync path: /home/runner/work/minikube/minikube/minikube_binaries/testhome/.minikube/files/etc/test/nested/copy/2794/hosts
=== RUN   TestFunctional/serial/StartWithProxy
    functional_test.go:220: (dbg) Run:  ./minikube-linux-amd64 start -p functional-20200729205242-2794 --memory=2800 --apiserver-port=8441 --wait=true --vm-driver=docker
    functional_test.go:220: (dbg) Done: ./minikube-linux-amd64 start -p functional-20200729205242-2794 --memory=2800 --apiserver-port=8441 --wait=true --vm-driver=docker: (1m34.508852437s)
=== RUN   TestFunctional/serial/SoftStart
    functional_test.go:252: (dbg) Run:  ./minikube-linux-amd64 start -p functional-20200729205242-2794
    functional_test.go:252: (dbg) Done: ./minikube-linux-amd64 start -p functional-20200729205242-2794: (3.944824609s)
    functional_test.go:256: soft start took 3.94524931s for "functional-20200729205242-2794" cluster.
=== RUN   TestFunctional/serial/KubeContext
    functional_test.go:273: (dbg) Run:  kubectl config current-context
=== RUN   TestFunctional/serial/KubectlGetPods
    functional_test.go:286: (dbg) Run:  kubectl --context functional-20200729205242-2794 get po -A
=== RUN   TestFunctional/serial/CacheCmd
=== RUN   TestFunctional/serial/CacheCmd/cache
=== RUN   TestFunctional/serial/CacheCmd/cache/add
    functional_test.go:457: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 cache add busybox:latest
    functional_test.go:457: (dbg) Done: ./minikube-linux-amd64 -p functional-20200729205242-2794 cache add busybox:latest: (1.178712747s)
    functional_test.go:457: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 cache add busybox:1.28.4-glibc
    functional_test.go:457: (dbg) Done: ./minikube-linux-amd64 -p functional-20200729205242-2794 cache add busybox:1.28.4-glibc: (1.191334567s)
    functional_test.go:457: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 cache add k8s.gcr.io/pause:latest
    functional_test.go:457: (dbg) Done: ./minikube-linux-amd64 -p functional-20200729205242-2794 cache add k8s.gcr.io/pause:latest: (1.218955615s)
=== RUN   TestFunctional/serial/CacheCmd/cache/delete_busybox:1.28.4-glibc
    functional_test.go:464: (dbg) Run:  ./minikube-linux-amd64 cache delete busybox:1.28.4-glibc
=== RUN   TestFunctional/serial/CacheCmd/cache/list
    functional_test.go:471: (dbg) Run:  ./minikube-linux-amd64 cache list
=== RUN   TestFunctional/serial/CacheCmd/cache/verify_cache_inside_node
    functional_test.go:484: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh sudo crictl images
=== RUN   TestFunctional/serial/CacheCmd/cache/cache_reload
    functional_test.go:497: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh sudo docker rmi busybox:latest
    functional_test.go:503: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh sudo crictl inspecti busybox:latest
    functional_test.go:503: (dbg) Non-zero exit: ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh sudo crictl inspecti busybox:latest: exit status 1 (299.744843ms)
        
        -- stdout --
        	�[31mFATA�[0m[0000] no such image "busybox:latest" present       
        
        -- /stdout --
        ** stderr ** 
        	ssh: Process exited with status 1
        
        ** /stderr **
    functional_test.go:508: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 cache reload
    functional_test.go:513: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh sudo crictl inspecti busybox:latest
=== RUN   TestFunctional/serial/CacheCmd/cache/delete
    functional_test.go:522: (dbg) Run:  ./minikube-linux-amd64 cache delete busybox:latest
    functional_test.go:522: (dbg) Run:  ./minikube-linux-amd64 cache delete k8s.gcr.io/pause:latest
=== RUN   TestFunctional/serial/MinikubeKubectlCmd
    functional_test.go:304: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 kubectl -- --context functional-20200729205242-2794 get pods
=== PAUSE TestFunctional
=== CONT  TestFunctional
=== RUN   TestFunctional/parallel
=== RUN   TestFunctional/parallel/ComponentHealth
=== PAUSE TestFunctional/parallel/ComponentHealth
=== RUN   TestFunctional/parallel/ConfigCmd
=== PAUSE TestFunctional/parallel/ConfigCmd
=== RUN   TestFunctional/parallel/DashboardCmd
=== PAUSE TestFunctional/parallel/DashboardCmd
=== RUN   TestFunctional/parallel/DryRun
=== PAUSE TestFunctional/parallel/DryRun
=== RUN   TestFunctional/parallel/StatusCmd
=== PAUSE TestFunctional/parallel/StatusCmd
=== RUN   TestFunctional/parallel/LogsCmd
=== PAUSE TestFunctional/parallel/LogsCmd
=== RUN   TestFunctional/parallel/MountCmd
=== PAUSE TestFunctional/parallel/MountCmd
=== RUN   TestFunctional/parallel/ProfileCmd
=== PAUSE TestFunctional/parallel/ProfileCmd
=== RUN   TestFunctional/parallel/ServiceCmd
=== PAUSE TestFunctional/parallel/ServiceCmd
=== RUN   TestFunctional/parallel/AddonsCmd
=== PAUSE TestFunctional/parallel/AddonsCmd
=== RUN   TestFunctional/parallel/PersistentVolumeClaim
=== PAUSE TestFunctional/parallel/PersistentVolumeClaim
=== RUN   TestFunctional/parallel/TunnelCmd
=== PAUSE TestFunctional/parallel/TunnelCmd
=== RUN   TestFunctional/parallel/SSHCmd
=== PAUSE TestFunctional/parallel/SSHCmd
=== RUN   TestFunctional/parallel/MySQL
=== PAUSE TestFunctional/parallel/MySQL
=== RUN   TestFunctional/parallel/FileSync
=== PAUSE TestFunctional/parallel/FileSync
=== RUN   TestFunctional/parallel/CertSync
=== PAUSE TestFunctional/parallel/CertSync
=== RUN   TestFunctional/parallel/UpdateContextCmd
=== PAUSE TestFunctional/parallel/UpdateContextCmd
=== RUN   TestFunctional/parallel/DockerEnv
=== PAUSE TestFunctional/parallel/DockerEnv
=== RUN   TestFunctional/parallel/NodeLabels
=== PAUSE TestFunctional/parallel/NodeLabels
=== CONT  TestFunctional/parallel/ComponentHealth
    functional_test.go:314: (dbg) Run:  kubectl --context functional-20200729205242-2794 get cs -o=json
=== CONT  TestFunctional/parallel/TunnelCmd
=== RUN   TestFunctional/parallel/TunnelCmd/serial
=== RUN   TestFunctional/parallel/TunnelCmd/serial/StartTunnel
    fn_tunnel_cmd_test.go:122: (dbg) daemon: [./minikube-linux-amd64 -p functional-20200729205242-2794 tunnel --alsologtostderr]
=== RUN   TestFunctional/parallel/TunnelCmd/serial/WaitService
    fn_tunnel_cmd_test.go:142: (dbg) Run:  kubectl --context functional-20200729205242-2794 apply -f testdata/testsvc.yaml
=== CONT  TestFunctional/parallel/NodeLabels
    functional_test.go:141: (dbg) Run:  kubectl --context functional-20200729205242-2794 get nodes --output=go-template "--template='{{range $k, $v := (index .items 0).metadata.labels}}{{$k}} {{end}}'"
=== CONT  TestFunctional/parallel/DockerEnv
    functional_test.go:166: (dbg) Run:  /bin/bash -c "eval $(./minikube-linux-amd64 -p functional-20200729205242-2794 docker-env) && ./minikube-linux-amd64 status -p functional-20200729205242-2794"
=== CONT  TestFunctional/parallel/TunnelCmd/serial/WaitService
    fn_tunnel_cmd_test.go:146: (dbg) TestFunctional/parallel/TunnelCmd/serial/WaitService: waiting 4m0s for pods matching "run=nginx-svc" in namespace "default" ...
    helpers_test.go:332: "nginx-svc" [253d8458-6596-44a0-aa59-17745db606bc] Pending / Ready:ContainersNotReady (containers with unready status: [nginx]) / ContainersReady:ContainersNotReady (containers with unready status: [nginx])
=== CONT  TestFunctional/parallel/DockerEnv
    functional_test.go:166: (dbg) Done: /bin/bash -c "eval $(./minikube-linux-amd64 -p functional-20200729205242-2794 docker-env) && ./minikube-linux-amd64 status -p functional-20200729205242-2794": (1.494576599s)
    functional_test.go:186: (dbg) Run:  /bin/bash -c "eval $(./minikube-linux-amd64 -p functional-20200729205242-2794 docker-env) && docker images"
=== CONT  TestFunctional/parallel/UpdateContextCmd
    functional_test.go:1007: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 update-context --alsologtostderr -v=2
=== CONT  TestFunctional/parallel/CertSync
    functional_test.go:989: Checking for existence of /etc/ssl/certs/2794.pem within VM
    functional_test.go:990: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "sudo cat /etc/ssl/certs/2794.pem"
    functional_test.go:989: Checking for existence of /usr/share/ca-certificates/2794.pem within VM
    functional_test.go:990: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "sudo cat /usr/share/ca-certificates/2794.pem"
    functional_test.go:989: Checking for existence of /etc/ssl/certs/51391683.0 within VM
    functional_test.go:990: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "sudo cat /etc/ssl/certs/51391683.0"
=== CONT  TestFunctional/parallel/FileSync
    functional_test.go:950: Checking for existence of /etc/test/nested/copy/2794/hosts within VM
    functional_test.go:951: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "sudo cat /etc/test/nested/copy/2794/hosts"
    functional_test.go:956: file sync test content: Test file for checking file sync process
=== CONT  TestFunctional/parallel/MySQL
    functional_test.go:855: (dbg) Run:  kubectl --context functional-20200729205242-2794 replace --force -f testdata/mysql.yaml
    functional_test.go:860: (dbg) TestFunctional/parallel/MySQL: waiting 10m0s for pods matching "app=mysql" in namespace "default" ...
=== CONT  TestFunctional/parallel/TunnelCmd/serial/WaitService
    helpers_test.go:332: "nginx-svc" [253d8458-6596-44a0-aa59-17745db606bc] Running
=== CONT  TestFunctional/parallel/MySQL
    helpers_test.go:332: "mysql-78ff7d6cf9-gqwk2" [072e4a11-9559-47b5-88e7-2b8b3603d20b] Pending / Ready:ContainersNotReady (containers with unready status: [mysql]) / ContainersReady:ContainersNotReady (containers with unready status: [mysql])
=== CONT  TestFunctional/parallel/TunnelCmd/serial/WaitService
    fn_tunnel_cmd_test.go:146: (dbg) TestFunctional/parallel/TunnelCmd/serial/WaitService: run=nginx-svc healthy within 10.021737114s
=== RUN   TestFunctional/parallel/TunnelCmd/serial/WaitService/IngressIP
    fn_tunnel_cmd_test.go:160: (dbg) Run:  kubectl --context functional-20200729205242-2794 get svc nginx-svc -o jsonpath={.status.loadBalancer.ingress[0].ip}
=== RUN   TestFunctional/parallel/TunnelCmd/serial/AccessDirect
    fn_tunnel_cmd_test.go:225: tunnel at http://10.99.246.5 is working!
=== RUN   TestFunctional/parallel/TunnelCmd/serial/DNSResolutionByDig
    fn_tunnel_cmd_test.go:92: DNS forwarding is supported for darwin only now, skipping test DNS forwarding
=== RUN   TestFunctional/parallel/TunnelCmd/serial/DNSResolutionByDscacheutil
    fn_tunnel_cmd_test.go:92: DNS forwarding is supported for darwin only now, skipping test DNS forwarding
=== RUN   TestFunctional/parallel/TunnelCmd/serial/AccessThroughDNS
    fn_tunnel_cmd_test.go:92: DNS forwarding is supported for darwin only now, skipping test DNS forwarding
=== RUN   TestFunctional/parallel/TunnelCmd/serial/DeleteTunnel
    fn_tunnel_cmd_test.go:360: (dbg) stopping [./minikube-linux-amd64 -p functional-20200729205242-2794 tunnel --alsologtostderr] ...
=== CONT  TestFunctional/parallel/SSHCmd
    functional_test.go:820: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "echo hello"
    functional_test.go:837: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "cat /etc/hostname"
=== CONT  TestFunctional/parallel/MountCmd
    fn_mount_cmd_test.go:72: (dbg) daemon: [./minikube-linux-amd64 mount -p functional-20200729205242-2794 /tmp/mounttest906799386:/mount-9p --alsologtostderr -v=1]
    fn_mount_cmd_test.go:106: wrote "test-1596056079650475794" to /tmp/mounttest906799386/created-by-test
    fn_mount_cmd_test.go:106: wrote "test-1596056079650475794" to /tmp/mounttest906799386/created-by-test-removed-by-pod
    fn_mount_cmd_test.go:106: wrote "test-1596056079650475794" to /tmp/mounttest906799386/test-1596056079650475794
    fn_mount_cmd_test.go:114: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "findmnt -T /mount-9p | grep 9p"
    fn_mount_cmd_test.go:114: (dbg) Non-zero exit: ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "findmnt -T /mount-9p | grep 9p": exit status 1 (601.885174ms)
        
        ** stderr ** 
        	ssh: Process exited with status 1
        
        ** /stderr **
    fn_mount_cmd_test.go:114: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "findmnt -T /mount-9p | grep 9p"
    fn_mount_cmd_test.go:128: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh -- ls -la /mount-9p
    fn_mount_cmd_test.go:132: guest mount directory contents
        total 2
        -rw-r--r-- 1 docker docker 24 Jul 29 20:54 created-by-test
        -rw-r--r-- 1 docker docker 24 Jul 29 20:54 created-by-test-removed-by-pod
        -rw-r--r-- 1 docker docker 24 Jul 29 20:54 test-1596056079650475794
    fn_mount_cmd_test.go:136: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh cat /mount-9p/test-1596056079650475794
    fn_mount_cmd_test.go:147: (dbg) Run:  kubectl --context functional-20200729205242-2794 replace --force -f testdata/busybox-mount-test.yaml
    fn_mount_cmd_test.go:152: (dbg) TestFunctional/parallel/MountCmd: waiting 4m0s for pods matching "integration-test=busybox-mount" in namespace "default" ...
    helpers_test.go:332: "busybox-mount" [272b6ed1-c9cf-4b62-a3db-e0438581508d] Pending
    helpers_test.go:332: "busybox-mount" [272b6ed1-c9cf-4b62-a3db-e0438581508d] Pending / Ready:ContainersNotReady (containers with unready status: [mount-munger]) / ContainersReady:ContainersNotReady (containers with unready status: [mount-munger])
=== CONT  TestFunctional/parallel/MySQL
    helpers_test.go:332: "mysql-78ff7d6cf9-gqwk2" [072e4a11-9559-47b5-88e7-2b8b3603d20b] Running
=== CONT  TestFunctional/parallel/MountCmd
    helpers_test.go:332: "busybox-mount" [272b6ed1-c9cf-4b62-a3db-e0438581508d] Running
    helpers_test.go:332: "busybox-mount" [272b6ed1-c9cf-4b62-a3db-e0438581508d] Succeeded: Initialized:PodCompleted / Ready:PodCompleted / ContainersReady:PodCompleted
    fn_mount_cmd_test.go:152: (dbg) TestFunctional/parallel/MountCmd: integration-test=busybox-mount healthy within 6.918004664s
    fn_mount_cmd_test.go:168: (dbg) Run:  kubectl --context functional-20200729205242-2794 logs busybox-mount
    fn_mount_cmd_test.go:180: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh stat /mount-9p/created-by-test
    fn_mount_cmd_test.go:180: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh stat /mount-9p/created-by-pod
    fn_mount_cmd_test.go:89: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 ssh "sudo umount -f /mount-9p"
    fn_mount_cmd_test.go:93: (dbg) stopping [./minikube-linux-amd64 mount -p functional-20200729205242-2794 /tmp/mounttest906799386:/mount-9p --alsologtostderr -v=1] ...
=== CONT  TestFunctional/parallel/PersistentVolumeClaim
    fn_pvc_test.go:42: (dbg) TestFunctional/parallel/PersistentVolumeClaim: waiting 4m0s for pods matching "integration-test=storage-provisioner" in namespace "kube-system" ...
    helpers_test.go:332: "storage-provisioner" [9ca4f6de-89b9-4513-9dc4-e68eff6e2db2] Running
=== CONT  TestFunctional/parallel/MySQL
    functional_test.go:860: (dbg) TestFunctional/parallel/MySQL: app=mysql healthy within 20.021107032s
    functional_test.go:867: (dbg) Run:  kubectl --context functional-20200729205242-2794 exec mysql-78ff7d6cf9-gqwk2 -- mysql -ppassword -e "show databases;"
    functional_test.go:867: (dbg) Non-zero exit: kubectl --context functional-20200729205242-2794 exec mysql-78ff7d6cf9-gqwk2 -- mysql -ppassword -e "show databases;": exit status 1 (228.325102ms)
        
        ** stderr ** 
        	Warning: Using a password on the command line interface can be insecure.
        	ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
        	command terminated with exit code 1
        
        ** /stderr **
    functional_test.go:867: (dbg) Run:  kubectl --context functional-20200729205242-2794 exec mysql-78ff7d6cf9-gqwk2 -- mysql -ppassword -e "show databases;"
    functional_test.go:867: (dbg) Non-zero exit: kubectl --context functional-20200729205242-2794 exec mysql-78ff7d6cf9-gqwk2 -- mysql -ppassword -e "show databases;": exit status 1 (208.062765ms)
        
        ** stderr ** 
        	Warning: Using a password on the command line interface can be insecure.
        	ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
        	command terminated with exit code 1
        
        ** /stderr **
=== CONT  TestFunctional/parallel/PersistentVolumeClaim
    fn_pvc_test.go:42: (dbg) TestFunctional/parallel/PersistentVolumeClaim: integration-test=storage-provisioner healthy within 5.005838104s
    fn_pvc_test.go:47: (dbg) Run:  kubectl --context functional-20200729205242-2794 get storageclass -o=json
    fn_pvc_test.go:67: (dbg) Run:  kubectl --context functional-20200729205242-2794 apply -f testdata/pvc.yaml
    fn_pvc_test.go:73: (dbg) Run:  kubectl --context functional-20200729205242-2794 get pvc testpvc -o=json
=== CONT  TestFunctional/parallel/AddonsCmd
    functional_test.go:787: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 addons list
    functional_test.go:798: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 addons list -o json
=== CONT  TestFunctional/parallel/MySQL
    functional_test.go:867: (dbg) Run:  kubectl --context functional-20200729205242-2794 exec mysql-78ff7d6cf9-gqwk2 -- mysql -ppassword -e "show databases;"
=== CONT  TestFunctional/parallel/ServiceCmd
    functional_test.go:681: (dbg) Run:  kubectl --context functional-20200729205242-2794 create deployment hello-node --image=k8s.gcr.io/echoserver:1.4
    functional_test.go:685: (dbg) Run:  kubectl --context functional-20200729205242-2794 expose deployment hello-node --type=NodePort --port=8080
=== CONT  TestFunctional/parallel/MySQL
    functional_test.go:867: (dbg) Non-zero exit: kubectl --context functional-20200729205242-2794 exec mysql-78ff7d6cf9-gqwk2 -- mysql -ppassword -e "show databases;": exit status 1 (279.53179ms)
        
        ** stderr ** 
        	Warning: Using a password on the command line interface can be insecure.
        	ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        	command terminated with exit code 1
        
        ** /stderr **
=== CONT  TestFunctional/parallel/ServiceCmd
    functional_test.go:690: (dbg) TestFunctional/parallel/ServiceCmd: waiting 10m0s for pods matching "app=hello-node" in namespace "default" ...
    helpers_test.go:332: "hello-node-7bf657c596-cgmpj" [e115f875-6015-4a85-b255-2896d7072e2c] Pending / Ready:ContainersNotReady (containers with unready status: [echoserver]) / ContainersReady:ContainersNotReady (containers with unready status: [echoserver])
=== CONT  TestFunctional/parallel/MySQL
    functional_test.go:867: (dbg) Run:  kubectl --context functional-20200729205242-2794 exec mysql-78ff7d6cf9-gqwk2 -- mysql -ppassword -e "show databases;"
=== CONT  TestFunctional/parallel/ProfileCmd
=== RUN   TestFunctional/parallel/ProfileCmd/profile_not_create
    functional_test.go:582: (dbg) Run:  ./minikube-linux-amd64 profile lis
    functional_test.go:586: (dbg) Run:  ./minikube-linux-amd64 profile list --output json
=== RUN   TestFunctional/parallel/ProfileCmd/profile_list
    functional_test.go:607: (dbg) Run:  ./minikube-linux-amd64 profile list
=== RUN   TestFunctional/parallel/ProfileCmd/profile_json_output
    functional_test.go:629: (dbg) Run:  ./minikube-linux-amd64 profile list --output json
=== CONT  TestFunctional/parallel/DryRun
    functional_test.go:430: (dbg) Run:  ./minikube-linux-amd64 start -p functional-20200729205242-2794 --dry-run --memory 250MB --alsologtostderr --vm-driver=docker
    functional_test.go:434: dry-run(250MB) exit code = 0, wanted = 78: <nil>
    functional_test.go:441: (dbg) Run:  ./minikube-linux-amd64 start -p functional-20200729205242-2794 --dry-run --alsologtostderr -v=1 --vm-driver=docker
=== CONT  TestFunctional/parallel/LogsCmd
    functional_test.go:566: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 logs
    functional_test.go:566: (dbg) Done: ./minikube-linux-amd64 -p functional-20200729205242-2794 logs: (1.590504874s)
=== CONT  TestFunctional/parallel/StatusCmd
    functional_test.go:340: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 status
    functional_test.go:346: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 status -f host:{{.Host}},kublet:{{.Kubelet}},apiserver:{{.APIServer}},kubeconfig:{{.Kubeconfig}}
    functional_test.go:357: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 status -o json
=== CONT  TestFunctional/parallel/DashboardCmd
    functional_test.go:385: (dbg) daemon: [./minikube-linux-amd64 dashboard --url -p functional-20200729205242-2794 --alsologtostderr -v=1]
=== CONT  TestFunctional/parallel/ServiceCmd
    helpers_test.go:332: "hello-node-7bf657c596-cgmpj" [e115f875-6015-4a85-b255-2896d7072e2c] Running
2020/07/29 20:55:07 [DEBUG] GET http://127.0.0.1:40667/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/
=== CONT  TestFunctional/parallel/DashboardCmd
    functional_test.go:390: (dbg) stopping [./minikube-linux-amd64 dashboard --url -p functional-20200729205242-2794 --alsologtostderr -v=1] ...
    helpers_test.go:446: unable to kill pid 11271: os: process already finished
=== CONT  TestFunctional/parallel/ConfigCmd
    functional_test.go:548: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 config unset cpus
    functional_test.go:548: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 config get cpus
    functional_test.go:548: (dbg) Non-zero exit: ./minikube-linux-amd64 -p functional-20200729205242-2794 config get cpus: exit status 64 (57.9137ms)
        
        ** stderr ** 
        	Error: specified key could not be found in config
        
        ** /stderr **
    functional_test.go:548: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 config set cpus 2
    functional_test.go:548: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 config get cpus
    functional_test.go:548: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 config unset cpus
    functional_test.go:548: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 config get cpus
    functional_test.go:548: (dbg) Non-zero exit: ./minikube-linux-amd64 -p functional-20200729205242-2794 config get cpus: exit status 64 (54.579394ms)
        
        ** stderr ** 
        	Error: specified key could not be found in config
        
        ** /stderr **
=== CONT  TestFunctional/parallel/ServiceCmd
    functional_test.go:690: (dbg) TestFunctional/parallel/ServiceCmd: app=hello-node healthy within 16.009355811s
    functional_test.go:694: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 service list
    functional_test.go:694: (dbg) Done: ./minikube-linux-amd64 -p functional-20200729205242-2794 service list: (1.324278279s)
    functional_test.go:707: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 service --namespace=default --https --url hello-node
    functional_test.go:716: found endpoint: https://172.17.0.3:31289
    functional_test.go:727: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 service hello-node --url --format={{.IP}}
    functional_test.go:736: (dbg) Run:  ./minikube-linux-amd64 -p functional-20200729205242-2794 service hello-node --url
    functional_test.go:742: found endpoint for hello-node: http://172.17.0.3:31289
    functional_test.go:753: Attempting to fetch http://172.17.0.3:31289 ...
    functional_test.go:772: http://172.17.0.3:31289: success! body:
        CLIENT VALUES:
        client_address=172.18.0.1
        command=GET
        real path=/
        query=nil
        request_version=1.1
        request_uri=http://172.17.0.3:8080/
        
        SERVER VALUES:
        server_version=nginx: 1.10.0 - lua: 10001
        
        HEADERS RECEIVED:
        accept-encoding=gzip
        host=172.17.0.3:31289
        user-agent=Go-http-client/1.1
        BODY:
        -no body in request-
=== CONT  TestFunctional
    helpers_test.go:170: Cleaning up "functional-20200729205242-2794" profile ...
    helpers_test.go:171: (dbg) Run:  ./minikube-linux-amd64 delete -p functional-20200729205242-2794
    helpers_test.go:171: (dbg) Done: ./minikube-linux-amd64 delete -p functional-20200729205242-2794: (3.014612908s)
--- FAIL: TestFunctional (155.38s)
    --- PASS: TestFunctional/serial (105.75s)
        --- PASS: TestFunctional/serial/CopySyncFile (0.00s)
        --- PASS: TestFunctional/serial/StartWithProxy (94.51s)
        --- PASS: TestFunctional/serial/SoftStart (3.95s)
        --- PASS: TestFunctional/serial/KubeContext (0.06s)
        --- PASS: TestFunctional/serial/KubectlGetPods (0.17s)
        --- PASS: TestFunctional/serial/CacheCmd (6.09s)
            --- PASS: TestFunctional/serial/CacheCmd/cache (6.09s)
                --- PASS: TestFunctional/serial/CacheCmd/cache/add (3.59s)
                --- PASS: TestFunctional/serial/CacheCmd/cache/delete_busybox:1.28.4-glibc (0.06s)
                --- PASS: TestFunctional/serial/CacheCmd/cache/list (0.05s)
                --- PASS: TestFunctional/serial/CacheCmd/cache/verify_cache_inside_node (0.48s)
                --- PASS: TestFunctional/serial/CacheCmd/cache/cache_reload (1.81s)
                --- PASS: TestFunctional/serial/CacheCmd/cache/delete (0.10s)
        --- PASS: TestFunctional/serial/MinikubeKubectlCmd (0.97s)
    --- FAIL: TestFunctional/parallel (0.00s)
        --- PASS: TestFunctional/parallel/ComponentHealth (0.12s)
        --- PASS: TestFunctional/parallel/NodeLabels (0.24s)
        --- PASS: TestFunctional/parallel/DockerEnv (1.95s)
        --- PASS: TestFunctional/parallel/UpdateContextCmd (0.10s)
        --- PASS: TestFunctional/parallel/CertSync (1.34s)
        --- PASS: TestFunctional/parallel/FileSync (0.35s)
        --- PASS: TestFunctional/parallel/TunnelCmd (10.62s)
            --- PASS: TestFunctional/parallel/TunnelCmd/serial (10.62s)
                --- PASS: TestFunctional/parallel/TunnelCmd/serial/StartTunnel (0.00s)
                --- PASS: TestFunctional/parallel/TunnelCmd/serial/WaitService (10.50s)
                    --- PASS: TestFunctional/parallel/TunnelCmd/serial/WaitService/IngressIP (0.10s)
                --- PASS: TestFunctional/parallel/TunnelCmd/serial/AccessDirect (0.00s)
                --- SKIP: TestFunctional/parallel/TunnelCmd/serial/DNSResolutionByDig (0.00s)
                --- SKIP: TestFunctional/parallel/TunnelCmd/serial/DNSResolutionByDscacheutil (0.00s)
                --- SKIP: TestFunctional/parallel/TunnelCmd/serial/AccessThroughDNS (0.00s)
                --- PASS: TestFunctional/parallel/TunnelCmd/serial/DeleteTunnel (0.11s)
        --- PASS: TestFunctional/parallel/SSHCmd (0.71s)
        --- PASS: TestFunctional/parallel/MountCmd (11.13s)
        --- PASS: TestFunctional/parallel/PersistentVolumeClaim (5.33s)
        --- PASS: TestFunctional/parallel/AddonsCmd (0.16s)
        --- PASS: TestFunctional/parallel/MySQL (26.45s)
        --- PASS: TestFunctional/parallel/ProfileCmd (0.72s)
            --- PASS: TestFunctional/parallel/ProfileCmd/profile_not_create (0.32s)
            --- PASS: TestFunctional/parallel/ProfileCmd/profile_list (0.21s)
            --- PASS: TestFunctional/parallel/ProfileCmd/profile_json_output (0.20s)
        --- FAIL: TestFunctional/parallel/DryRun (0.55s)
        --- PASS: TestFunctional/parallel/LogsCmd (1.59s)
        --- PASS: TestFunctional/parallel/StatusCmd (1.13s)
        --- PASS: TestFunctional/parallel/DashboardCmd (4.58s)
        --- PASS: TestFunctional/parallel/ConfigCmd (0.36s)
        --- PASS: TestFunctional/parallel/ServiceCmd (18.67s)
FAIL
Tests completed in 2m35.381206461s (result code 1)
 

Thank you!

Go version: go version go1.15.5 windows/amd64
Exact command run:

Get-Content .\report\testout.txt -Encoding ASCII  | go tool test2json -t | Out-File -FilePath .\report\testout.json -Encoding ASCII
@seankhliao
Copy link
Contributor

@seankhliao seankhliao commented Jan 14, 2021

I noticed a ? at the beginning of your json output but not the source text.
Also is this the only file to use CRLF line endings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants