Skip to content
Permalink
Browse files

Add "pretty" library for testing (#2122)

* Update vendoring

* Add "pretty" library for testing

Adds the "pretty" library for easier debugging.

See below:

```sh
--- FAIL: TestListWithDetailedStatus (0.00s)
    service_test.go:482:  [
          {
           TypeMeta: {
            Kind: "Service",
            APIVersion: "odo.openshift.io/v1alpha1",
           },
           ObjectMeta: {
            Name: "mysql-persistent",
            GenerateName: "",
            Namespace: "",
            SelfLink: "",
            UID: "",
            ResourceVersion: "",
            Generation: 0,
            CreationTimestamp: {
             Time: 0001-01-01 00:00:00 +0000 UTC,
            },
            DeletionTimestamp: nil,
            DeletionGracePeriodSeconds: nil,
            Labels: {
            },
            Annotations: {
            },
            OwnerReferences: [
            ],
            Initializers: nil,
            Finalizers: [
            ],
            ClusterName: "",
           },
           Spec: {
            Type: "mysql-persistent",
            Plan: "default",
           },
           Status: {
        -   Status: "ProvisionedSuccessfully",
        +   Status: "ProvisionedAndLinked",
           },
```

Vs:

```
--- FAIL: TestListWithDetailedStatus (0.00s)
    service_test.go:481: expected output: []service.Service{service.Service{TypeMeta:v1.TypeMeta{Kind:"Service", APIVersion:"odo.openshift.io/v1alpha1"}, ObjectMeta:v1.ObjectMeta{Name:"mysql-persistent", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Locati
on)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:service.ServiceSpec{Type:"mysql-persistent", Plan:"default"}, Status:service.Serv
iceStatus{Status:"ProvisionedSuccessfully"}}, service.Service{TypeMeta:v1.TypeMeta{Kind:"Service", APIVersion:"odo.openshift.io/v1alpha1"}, ObjectMeta:v1.ObjectMeta{Name:"postgresql-ephemeral", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}
, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:service.ServiceSpec{Type:"postgresql-ephemeral", Plan:"default"}, Status:service.ServiceSta
tus{Status:"ProvisionedSuccessfully"}}, service.Service{TypeMeta:v1.TypeMeta{Kind:"Service", APIVersion:"odo.openshift.io/v1alpha1"}, ObjectMeta:v1.ObjectMeta{Name:"mongodb", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp
:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:service.ServiceSpec{Type:"mongodb", Plan:"default"}, Status:service.ServiceStatus{Status:"ProvisionedSuccessfu
lly"}}, service.Service{TypeMeta:v1.TypeMeta{Kind:"Service", APIVersion:"odo.openshift.io/v1alpha1"}, ObjectMeta:v1.ObjectMeta{Name:"jenkins-persistent", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), Del
etionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:service.ServiceSpec{Type:"jenkins-persistent", Plan:"default"}, Status:service.ServiceStatus{Status:"Provisioning"}}},got: []servic
e.Service{service.Service{TypeMeta:v1.TypeMeta{Kind:"Service", APIVersion:"odo.openshift.io/v1alpha1"}, ObjectMeta:v1.ObjectMeta{Name:"mysql-persistent", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), Del
etionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:service.ServiceSpec{Type:"mysql-persistent", Plan:"default"}, Status:service.ServiceStatus{Status:"ProvisionedAndLinked"}}, service
.Service{TypeMeta:v1.TypeMeta{Kind:"Service", APIVersion:"odo.openshift.io/v1alpha1"}, ObjectMeta:v1.ObjectMeta{Name:"postgresql-ephemeral", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePer
iodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:service.ServiceSpec{Type:"postgresql-ephemeral", Plan:"default"}, Status:service.ServiceStatus{Status:"ProvisionedAndBound"}}, service.Service{T
ypeMeta:v1.TypeMeta{Kind:"Service", APIVersion:"odo.openshift.io/v1alpha1"}, ObjectMeta:v1.ObjectMeta{Name:"mongodb", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil
), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:service.ServiceSpec{Type:"mongodb", Plan:"default"}, Status:service.ServiceStatus{Status:"ProvisionedSuccessfully"}}, service.Service{TypeMeta:v1.TypeMeta{Kind:"Servic
e", APIVersion:"odo.openshift.io/v1alpha1"}, ObjectMeta:v1.ObjectMeta{Name:"jenkins-persistent", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]
string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:service.ServiceSpec{Type:"jenkins-persistent", Plan:"default"}, Status:service.ServiceStatus{Status:"Provisioning"}}}
```

Closes: #2120
  • Loading branch information...
cdrage authored and openshift-merge-robot committed Sep 19, 2019
1 parent 24790a1 commit 09568358b6b7705b380cb3a9e8e76c6a1c8a4839
Showing with 6,354 additions and 1,333 deletions.
  1. +21 −12 glide.lock
  2. +8 −3 glide.yaml
  3. +4 −3 pkg/occlient/occlient_test.go
  4. +2 −1 pkg/service/service_test.go
  5. +1 −1 vendor/github.com/Netflix/go-expect/README.md
  6. +4 −0 vendor/github.com/creack/pty/.gitignore
  7. +14 −0 vendor/github.com/creack/pty/Dockerfile.riscv
  8. 0 vendor/github.com/{kr/pty/License → creack/pty/LICENSE}
  9. +100 −0 vendor/github.com/creack/pty/README.md
  10. 0 vendor/github.com/{kr → creack}/pty/doc.go
  11. +1 −1 vendor/github.com/{kr → creack}/pty/ioctl.go
  12. 0 vendor/github.com/{kr → creack}/pty/ioctl_bsd.go
  13. +30 −0 vendor/github.com/creack/pty/ioctl_solaris.go
  14. 0 vendor/github.com/{kr → creack}/pty/mktypes.bash
  15. 0 vendor/github.com/{kr → creack}/pty/pty_darwin.go
  16. 0 vendor/github.com/{kr → creack}/pty/pty_dragonfly.go
  17. 0 vendor/github.com/{kr → creack}/pty/pty_freebsd.go
  18. 0 vendor/github.com/{kr → creack}/pty/pty_linux.go
  19. 0 vendor/github.com/{kr → creack}/pty/pty_openbsd.go
  20. +139 −0 vendor/github.com/creack/pty/pty_solaris.go
  21. +1 −1 vendor/github.com/{kr → creack}/pty/pty_unsupported.go
  22. +1 −0 vendor/github.com/{kr → creack}/pty/run.go
  23. +50 −0 vendor/github.com/creack/pty/test_crosscompile.sh
  24. 0 vendor/github.com/{kr → creack}/pty/types.go
  25. 0 vendor/github.com/{kr → creack}/pty/types_dragonfly.go
  26. 0 vendor/github.com/{kr → creack}/pty/types_freebsd.go
  27. 0 vendor/github.com/{kr → creack}/pty/types_openbsd.go
  28. +1 −1 vendor/github.com/{kr → creack}/pty/util.go
  29. +51 −0 vendor/github.com/creack/pty/util_solaris.go
  30. 0 vendor/github.com/{kr → creack}/pty/ztypes_386.go
  31. 0 vendor/github.com/{kr → creack}/pty/ztypes_amd64.go
  32. 0 vendor/github.com/{kr → creack}/pty/ztypes_arm.go
  33. 0 vendor/github.com/{kr → creack}/pty/ztypes_arm64.go
  34. 0 vendor/github.com/{kr → creack}/pty/ztypes_dragonfly_amd64.go
  35. 0 vendor/github.com/{kr → creack}/pty/ztypes_freebsd_386.go
  36. 0 vendor/github.com/{kr → creack}/pty/ztypes_freebsd_amd64.go
  37. 0 vendor/github.com/{kr → creack}/pty/ztypes_freebsd_arm.go
  38. 0 vendor/github.com/{kr → creack}/pty/ztypes_mipsx.go
  39. 0 vendor/github.com/{kr → creack}/pty/ztypes_openbsd_386.go
  40. 0 vendor/github.com/{kr → creack}/pty/ztypes_openbsd_amd64.go
  41. 0 vendor/github.com/{kr → creack}/pty/ztypes_ppc64.go
  42. 0 vendor/github.com/{kr → creack}/pty/ztypes_ppc64le.go
  43. +11 −0 vendor/github.com/creack/pty/ztypes_riscvx.go
  44. 0 vendor/github.com/{kr → creack}/pty/ztypes_s390x.go
  45. +5 −3 vendor/github.com/google/btree/btree_test.go
  46. +1 −1 vendor/github.com/hashicorp/go-multierror/.travis.yml
  47. +0 −2 vendor/github.com/hashicorp/go-multierror/go.sum
  48. +23 −0 vendor/github.com/kr/pty/LICENSE
  49. +4 −95 vendor/github.com/kr/pty/README.md
  50. +4 −0 vendor/github.com/kr/pty/go.mod
  51. +2 −0 vendor/github.com/kr/pty/go.sum
  52. +76 −0 vendor/github.com/kr/pty/shim.go
  53. +7 −0 vendor/github.com/kylelemons/godebug/.travis.yml
  54. +202 −0 vendor/github.com/kylelemons/godebug/LICENSE
  55. +65 −0 vendor/github.com/kylelemons/godebug/README.md
  56. +189 −0 vendor/github.com/kylelemons/godebug/diff/diff.go
  57. +228 −0 vendor/github.com/kylelemons/godebug/diff/diff_test.go
  58. +3 −0 vendor/github.com/kylelemons/godebug/go.mod
  59. +5 −0 vendor/github.com/kylelemons/godebug/pretty/.gitignore
  60. +22 −0 vendor/github.com/kylelemons/godebug/pretty/doc.go
  61. +373 −0 vendor/github.com/kylelemons/godebug/pretty/examples_test.go
  62. +188 −0 vendor/github.com/kylelemons/godebug/pretty/public.go
  63. +155 −0 vendor/github.com/kylelemons/godebug/pretty/public_test.go
  64. +255 −0 vendor/github.com/kylelemons/godebug/pretty/reflect.go
  65. +456 −0 vendor/github.com/kylelemons/godebug/pretty/reflect_test.go
  66. +223 −0 vendor/github.com/kylelemons/godebug/pretty/structure.go
  67. +371 −0 vendor/github.com/kylelemons/godebug/pretty/structure_test.go
  68. +12 −0 vendor/github.com/mattn/go-isatty/.github/FUNDING.yml
  69. +1 −1 vendor/github.com/mattn/go-isatty/go.mod
  70. +2 −2 vendor/github.com/mattn/go-isatty/go.sum
  71. +1 −1 vendor/github.com/mattn/go-isatty/isatty_others.go
  72. +1 −1 vendor/github.com/mattn/go-isatty/{isatty_linux.go → isatty_tcgets.go}
  73. +35 −4 vendor/github.com/mattn/go-isatty/isatty_windows.go
  74. +3 −0 vendor/github.com/mattn/go-isatty/isatty_windows_test.go
  75. +19 −0 vendor/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go
  76. +24 −0 vendor/k8s.io/apimachinery/pkg/api/errors/errors.go
  77. +4 −0 vendor/k8s.io/apimachinery/pkg/apis/meta/v1/types.go
  78. +4 −0 vendor/k8s.io/apiserver/pkg/endpoints/groupversion.go
  79. +1 −1 vendor/k8s.io/apiserver/pkg/endpoints/handlers/create.go
  80. +2 −2 vendor/k8s.io/apiserver/pkg/endpoints/handlers/delete.go
  81. +17 −3 vendor/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
  82. +19 −2 vendor/k8s.io/apiserver/pkg/endpoints/handlers/rest.go
  83. +1 −1 vendor/k8s.io/apiserver/pkg/endpoints/handlers/update.go
  84. +2 −0 vendor/k8s.io/apiserver/pkg/endpoints/installer.go
  85. +53 −14 vendor/k8s.io/apiserver/pkg/server/config.go
  86. +5 −0 vendor/k8s.io/apiserver/pkg/server/genericapiserver.go
  87. +22 −2 vendor/k8s.io/apiserver/pkg/server/options/server_run_options.go
  88. +6 −1 vendor/k8s.io/client-go/tools/cache/reflector.go
  89. +2 −0 vendor/k8s.io/kubernetes/cmd/kube-apiserver/app/options/options_test.go
  90. +4 −1 vendor/k8s.io/kubernetes/cmd/kube-controller-manager/app/controllermanager.go
  91. +2 −4 vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server.go
  92. +4 −22 vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server_others.go
  93. +16 −32 vendor/k8s.io/kubernetes/cmd/kube-proxy/app/server_windows.go
  94. +2 −2 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/BUILD
  95. +35 −29 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure.go
  96. +1 −1 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_backoff.go
  97. +17 −13 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_blobDiskController.go
  98. +3 −53 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_client.go
  99. +1 −1 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_controller_common.go
  100. +23 −24 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_controller_standard.go
  101. +44 −27 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_controller_vmss.go
  102. +38 −3 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_fakes.go
  103. +77 −31 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_instance_metadata.go
  104. +76 −31 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_instances.go
  105. +174 −42 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_loadbalancer.go
  106. +93 −0 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_loadbalancer_test.go
  107. +2 −6 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_managedDiskController.go
  108. +21 −19 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_standard.go
  109. +6 −2 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_storage.go
  110. +1 −1 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_storage_test.go
  111. +10 −10 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_storageaccount.go
  112. +1 −1 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_storageaccount_test.go
  113. +60 −126 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_test.go
  114. +6 −3 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_vmsets.go
  115. +224 −272 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_vmss.go
  116. +2 −1 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_vmss_cache.go
  117. +176 −9 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_vmss_test.go
  118. +48 −1 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_wrap.go
  119. +76 −0 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_wrap_test.go
  120. +20 −53 vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/azure/azure_zones.go
  121. +51 −44 vendor/k8s.io/kubernetes/pkg/kubectl/cmd/cp.go
  122. +357 −115 vendor/k8s.io/kubernetes/pkg/kubectl/cmd/cp_test.go
  123. +11 −2 vendor/k8s.io/kubernetes/pkg/kubectl/cmd/drain.go
  124. +116 −1 vendor/k8s.io/kubernetes/pkg/kubectl/cmd/drain_test.go
  125. +1 −1 vendor/k8s.io/kubernetes/pkg/kubelet/cadvisor/util.go
  126. +5 −0 vendor/k8s.io/kubernetes/pkg/kubelet/dockershim/docker_image.go
  127. +0 −1 vendor/k8s.io/kubernetes/pkg/kubemark/BUILD
  128. +13 −22 vendor/k8s.io/kubernetes/pkg/kubemark/hollow_proxy.go
  129. +1 −0 vendor/k8s.io/kubernetes/pkg/proxy/BUILD
  130. +13 −0 vendor/k8s.io/kubernetes/pkg/proxy/iptables/proxier_openshift.go
  131. +4 −0 vendor/k8s.io/kubernetes/pkg/proxy/types.go
  132. +3 −0 vendor/k8s.io/kubernetes/pkg/proxy/userspace/BUILD
  133. +3 −0 vendor/k8s.io/kubernetes/pkg/proxy/userspace/loadbalancer.go
  134. +192 −54 vendor/k8s.io/kubernetes/pkg/proxy/userspace/proxier.go
  135. +13 −0 vendor/k8s.io/kubernetes/pkg/proxy/userspace/proxier_openshift.go
  136. +249 −43 vendor/k8s.io/kubernetes/pkg/proxy/userspace/proxier_test.go
  137. +1 −0 vendor/k8s.io/kubernetes/pkg/proxy/winuserspace/BUILD
  138. +3 −0 vendor/k8s.io/kubernetes/pkg/proxy/winuserspace/loadbalancer.go
  139. +16 −0 vendor/k8s.io/kubernetes/pkg/proxy/winuserspace/proxier.go
  140. +1 −1 vendor/k8s.io/kubernetes/pkg/volume/azure_dd/BUILD
  141. +16 −10 vendor/k8s.io/kubernetes/pkg/volume/azure_dd/attacher.go
  142. +26 −1 vendor/k8s.io/kubernetes/pkg/volume/azure_dd/azure_common.go
  143. +56 −0 vendor/k8s.io/kubernetes/pkg/volume/azure_dd/azure_common_test.go
  144. +1 −1 vendor/k8s.io/kubernetes/pkg/volume/azure_dd/azure_dd.go
  145. +5 −3 vendor/k8s.io/kubernetes/pkg/volume/azure_file/azure_provision.go
  146. +29 −17 vendor/k8s.io/kubernetes/pkg/volume/glusterfs/glusterfs.go
  147. +8 −5 vendor/k8s.io/kubernetes/pkg/volume/iscsi/iscsi_util.go
  148. +19 −0 ....io/kubernetes/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go
  149. +24 −0 vendor/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
  150. +4 −0 vendor/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go
  151. +4 −0 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/groupversion.go
  152. +1 −1 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go
  153. +2 −2 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go
  154. +17 −3 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
  155. +19 −2 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go
  156. +1 −1 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go
  157. +2 −0 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
  158. +1 −0 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/server/BUILD
  159. +53 −14 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/server/config.go
  160. +5 −0 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go
  161. +22 −2 vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go
  162. +6 −1 vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/reflector.go
  163. +3 −0 vendor/k8s.io/kubernetes/test/e2e/framework/kubelet_stats.go
  164. +3 −0 vendor/k8s.io/kubernetes/test/integration/apiserver/BUILD
  165. +69 −0 vendor/k8s.io/kubernetes/test/integration/apiserver/max_json_patch_operations_test.go
  166. +101 −0 vendor/k8s.io/kubernetes/test/integration/apiserver/max_request_body_bytes_test.go
  167. +0 −2 vendor/k8s.io/kubernetes/test/integration/examples/BUILD
  168. +2 −1 vendor/k8s.io/kubernetes/test/integration/examples/webhook_test.go
  169. +4 −0 vendor/k8s.io/kubernetes/test/integration/framework/BUILD
  170. +3 −4 vendor/k8s.io/kubernetes/test/integration/{examples/setup_test.go → framework/test_server.go}

Some generated files are not rendered by default. Learn more.

@@ -17,14 +17,14 @@ import:
- package: github.com/openshift/client-go
version: release-3.11
- package: k8s.io/client-go
repo: https://github.com/openshift/kubernetes-client-go.git
version: origin-3.11-kubernetes-1.11.1
repo: https://github.com/openshift/kubernetes-client-go.git
- package: k8s.io/apimachinery
repo: https://github.com/openshift/kubernetes-apimachinery.git
version: origin-3.11-kubernetes-1.11.1
repo: https://github.com/openshift/kubernetes-apimachinery.git
- package: k8s.io/api
repo: https://github.com/openshift/kubernetes-api.git
version: origin-3.11-kubernetes-1.11.1
repo: https://github.com/openshift/kubernetes-api.git
- package: github.com/onsi/gomega
version: v1.5.0
- package: github.com/onsi/ginkgo
@@ -57,3 +57,8 @@ import:
version: efa589957cd060542a26d2dd7832fd6a6c6c3ade
- package: github.com/Benjamintf1/unmarshalledmatchers
version: bb1c1f34eaeac620307d94a2371c514fbaf6ec7f
- package: github.com/apcera/gssapi
version: release-2.6.3
repo: https://github.com/openshift/gssapi.git
- package: github.com/kylelemons/godebug
version: fa7b53cdfc9105c70f134574002f406232921437
@@ -11,6 +11,7 @@ import (
"time"

scv1beta1 "github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1"
"github.com/kylelemons/godebug/pretty"
appsv1 "github.com/openshift/api/apps/v1"
buildv1 "github.com/openshift/api/build/v1"
dockerapi "github.com/openshift/api/image/docker10"
@@ -987,7 +988,7 @@ func TestUpdateBuildConfig(t *testing.T) {
}

if !reflect.DeepEqual(updatedDc.Spec, tt.updatedBuildConfig.Spec) {
t.Errorf("deployment Config Spec not matching with expected values, expected: %v, got %v", tt.updatedBuildConfig.Spec, updatedDc.Spec)
t.Errorf("deployment Config Spec not matching with expected values: %v", pretty.Compare(tt.updatedBuildConfig.Spec, updatedDc.Spec))
}
} else if err == nil && tt.wantErr {
t.Error("error was expected, but no error was returned")
@@ -2683,7 +2684,7 @@ func TestGetClusterServiceClass(t *testing.T) {
}

if !reflect.DeepEqual(gotServiceClass.Spec, tt.wantedServiceClass.Spec) {
t.Errorf("different service class spec value expected got: %v , expected: %v", gotServiceClass.Spec, tt.wantedServiceClass.Spec)
t.Errorf("different service class spec value expected: %v", pretty.Compare(gotServiceClass.Spec, tt.wantedServiceClass.Spec))
}
if !reflect.DeepEqual(gotServiceClass.Name, tt.wantedServiceClass.Name) {
t.Errorf("different service class name value expected got: %v , expected: %v", gotServiceClass.Name, tt.wantedServiceClass.Name)
@@ -2840,7 +2841,7 @@ func TestGetClusterPlansFromServiceName(t *testing.T) {
}

if !reflect.DeepEqual(wantedServicePlan.Spec, gotServicePlan.Spec) {
t.Errorf("different plan spec value expected got: %v , expected: %v", wantedServicePlan.Spec, gotServicePlan.Spec)
t.Errorf("different plan spec value expected: %v", pretty.Compare(wantedServicePlan.Spec, gotServicePlan.Spec))
}
}

@@ -3,6 +3,7 @@ package service
import (
"encoding/json"
"fmt"
"github.com/kylelemons/godebug/pretty"
"github.com/onsi/gomega/matchers"
"github.com/openshift/odo/pkg/testingutil"

@@ -478,7 +479,7 @@ func TestListWithDetailedStatus(t *testing.T) {
svcInstanceList, _ := ListWithDetailedStatus(client, "app")

if !reflect.DeepEqual(tt.output, svcInstanceList.Items) {
t.Errorf("expected output: %#v,got: %#v", tt.output, svcInstanceList.Items)
t.Error(fmt.Sprintf("Expected output: %v", pretty.Compare(tt.serviceList, svcInstanceList.Items)))
}
}
}

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

File renamed without changes.

Some generated files are not rendered by default. Learn more.

File renamed without changes.

Some generated files are not rendered by default. Learn more.

File renamed without changes.

Some generated files are not rendered by default. Learn more.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0956835

Please sign in to comment.
You can’t perform that action at this time.