k8s/io/kubernetes/pkg/api/testapi.TestGroup 示例代码

2022-03-03

以下示例是关于golang中包含testapi.TestGroup用法的示例代码,想了解testapi.TestGroup的具体用法?testapi.TestGroup怎么用?testapi.TestGroup使用的例子?那么可以参考以下10个相关示例代码来学习它的具体使用方法。

示例1:
testgroup_test.go开发语言: Go项目名称: cloud-zuiwanyuan代码行数: 293
35
36var testHelper testapi.TestGroup
37
示例2:
jobs_test.go开发语言: Go项目名称: cloud-zuiwanyuan代码行数: 269
45
46func testListJob(t *testing.T, group testapi.TestGroup, resourceGroup string) {
47	ns := api.NamespaceAll
82
83func testGetJob(t *testing.T, group testapi.TestGroup, resourceGroup string) {
84	ns := api.NamespaceDefault
117
118func testUpdateJob(t *testing.T, group testapi.TestGroup, resourceGroup string) {
119	ns := api.NamespaceDefault
159
160func testUpdateJobStatus(t *testing.T, group testapi.TestGroup, resourceGroup string) {
161	ns := api.NamespaceDefault
204
205func testDeleteJob(t *testing.T, group testapi.TestGroup, resourceGroup string) {
206	ns := api.NamespaceDefault
示例3:
horizontalpodautoscaler_test.go开发语言: Go项目名称: amygdala代码行数: 222
46
47func testHorizontalPodAutoscalerCreate(t *testing.T, group testapi.TestGroup, resourceGroup string) {
48	ns := api.NamespaceDefault
78
79func testHorizontalPodAutoscalerGet(t *testing.T, group testapi.TestGroup, resourceGroup string) {
80	ns := api.NamespaceDefault
107
108func testHorizontalPodAutoscalerList(t *testing.T, group testapi.TestGroup, resourceGroup string) {
109	ns := api.NamespaceDefault
139
140func testHorizontalPodAutoscalerUpdate(t *testing.T, group testapi.TestGroup, resourceGroup string) {
141	ns := api.NamespaceDefault
163
164func testHorizontalPodAutoscalerUpdateStatus(t *testing.T, group testapi.TestGroup, resourceGroup string) {
165	ns := api.NamespaceDefault
示例4:
testgroup_test.go开发语言: Go项目名称: amygdala代码行数: 247
35
36var testHelper testapi.TestGroup
37
示例5:
jobs_test.go开发语言: Go项目名称: amygdala代码行数: 269
45
46func testListJob(t *testing.T, group testapi.TestGroup, resourceGroup string) {
47	ns := api.NamespaceAll
82
83func testGetJob(t *testing.T, group testapi.TestGroup, resourceGroup string) {
84	ns := api.NamespaceDefault
117
118func testUpdateJob(t *testing.T, group testapi.TestGroup, resourceGroup string) {
119	ns := api.NamespaceDefault
159
160func testUpdateJobStatus(t *testing.T, group testapi.TestGroup, resourceGroup string) {
161	ns := api.NamespaceDefault
204
205func testDeleteJob(t *testing.T, group testapi.TestGroup, resourceGroup string) {
206	ns := api.NamespaceDefault
示例6:
serialization_test.go开发语言: Go项目名称: cjcullen代码行数: 655
130// roundTripSame verifies the same source object is tested in all API versions.
131func roundTripSame(t *testing.T, group testapi.TestGroup, item runtime.Object, except ...string) {
132	set := sets.NewString(except...)
303
304func doRoundTripTest(group testapi.TestGroup, kind string, t *testing.T) {
305	item, err := api.Scheme.New(group.InternalGroupVersion().WithKind(kind))
示例7:
serialization_test.go开发语言: Go项目名称: cloud-zuiwanyuan代码行数: 626
129// roundTripSame verifies the same source object is tested in all API versions.
130func roundTripSame(t *testing.T, group testapi.TestGroup, item runtime.Object, except ...string) {
131	set := sets.NewString(except...)
277
278func doRoundTripTest(group testapi.TestGroup, kind string, t *testing.T) {
279	item, err := api.Scheme.New(group.InternalGroupVersion().WithKind(kind))
示例8:
schema_test.go开发语言: Go项目名称: ddysher代码行数: 424
47
48func readSwaggerApiFile(group testapi.TestGroup) ([]byte, error) {
49	// TODO: Figure out a better way of finding these files
103
104func loadSchemaForTestWithFactory(group testapi.TestGroup, factory Schema) (Schema, error) {
105	data, err := readSwaggerApiFile(group)
示例9:
schema_test.go开发语言: Go项目名称: detiber代码行数: 424
47
48func readSwaggerApiFile(group testapi.TestGroup) ([]byte, error) {
49	// TODO: Figure out a better way of finding these files
103
104func loadSchemaForTestWithFactory(group testapi.TestGroup, factory Schema) (Schema, error) {
105	data, err := readSwaggerApiFile(group)
示例10:
schema_test.go开发语言: Go项目名称: cloud-zuiwanyuan代码行数: 310
48
49func readSwaggerApiFile(group testapi.TestGroup) ([]byte, error) {
50	// TODO: Figure out a better way of finding these files
104
105func loadSchemaForTestWithFactory(group testapi.TestGroup, factory Schema) (Schema, error) {
106	data, err := readSwaggerApiFile(group)

本文地址:https://www.itbaoku.cn/snippets/415784.html