Beispiel #1
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		registered.GroupOrDie(api.GroupName).GroupVersion.String(),
		"ConfigMap",
		ConfigMapToSelectableFields(&api.ConfigMap{}),
		nil,
	)
}
Beispiel #2
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"Pod",
		labels.Set(PodToSelectableFields(&api.Pod{})),
		nil,
	)
}
Beispiel #3
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Autoscaling.GroupVersion().String(),
		"Autoscaler",
		labels.Set(AutoscalerToSelectableFields(&autoscaling.HorizontalPodAutoscaler{})),
		nil,
	)
}
Beispiel #4
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Extensions.GroupVersion().String(),
		"DaemonSet",
		labels.Set(DaemonSetToSelectableFields(&extensions.DaemonSet{})),
		nil,
	)
}
Beispiel #5
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		api.Registry.GroupOrDie(api.GroupName).GroupVersion.String(),
		"ServiceAccount",
		SelectableFields(&api.ServiceAccount{}),
		nil,
	)
}
Beispiel #6
0
// FIXME: this is failing conversion.go
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		"batch/v2alpha1",
		"CronJob",
		CronJobToSelectableFields(&batch.CronJob{}),
		nil,
	)
}
Beispiel #7
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		registered.GroupOrDie(api.GroupName).GroupVersion.String(),
		"Secret",
		SelectableFields(&api.Secret{}),
		nil,
	)
}
Beispiel #8
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Extensions.GroupVersion().String(),
		"Job",
		JobToSelectableFields(&batch.Job{}),
		nil,
	)
}
Beispiel #9
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"ResourceQuota",
		ResourceQuotaToSelectableFields(&api.ResourceQuota{}),
		nil,
	)
}
Beispiel #10
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		api.Registry.GroupOrDie(api.GroupName).GroupVersion.String(),
		"Endpoints",
		EndpointsToSelectableFields(&api.Endpoints{}),
		nil,
	)
}
Beispiel #11
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		registered.GroupOrDie(api.GroupName).GroupVersion.String(),
		"PersistentVolumeClaim",
		PersistentVolumeClaimToSelectableFields(&api.PersistentVolumeClaim{}),
		map[string]string{"name": "metadata.name"},
	)
}
Beispiel #12
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"PodTemplate",
		PodTemplateToSelectableFields(&api.PodTemplate{}),
		nil,
	)
}
Beispiel #13
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		api.Registry.GroupOrDie(api.GroupName).GroupVersion.String(),
		"ResourceQuota",
		ResourceQuotaToSelectableFields(&api.ResourceQuota{}),
		nil,
	)
}
Beispiel #14
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		registered.GroupOrDie(api.GroupName).GroupVersion.String(),
		"ReplicationController",
		ControllerToSelectableFields(&api.ReplicationController{}),
		nil,
	)
}
Beispiel #15
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Extensions.GroupVersion().String(),
		"Deployment",
		DeploymentToSelectableFields(&extensions.Deployment{}),
		nil,
	)
}
Beispiel #16
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Extensions.GroupVersion().String(),
		"ThirdPartyResource",
		SelectableFields(&extensions.ThirdPartyResource{}),
		nil,
	)
}
Beispiel #17
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"PersistentVolumeClaim",
		PersistentVolumeClaimToSelectableFields(&api.PersistentVolumeClaim{}),
		map[string]string{"name": "metadata.name"},
	)
}
Beispiel #18
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		registered.GroupOrDie(federation.GroupName).GroupVersion.String(),
		"Cluster",
		ClusterToSelectableFields(&federation.Cluster{}),
		nil,
	)
}
Beispiel #19
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Extensions.GroupVersion().String(),
		"ConfigMap",
		labels.Set(ConfigMapToSelectableFields(&extensions.ConfigMap{})),
		nil,
	)
}
Beispiel #20
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		registered.GroupOrDie(api.GroupName).GroupVersion.String(),
		"LimitRange",
		LimitRangeToSelectableFields(&api.LimitRange{}),
		nil,
	)
}
Beispiel #21
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"ReplicationController",
		labels.Set(ControllerToSelectableFields(&api.ReplicationController{})),
		nil,
	)
}
Beispiel #22
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Federation.GroupVersion().String(),
		"Cluster",
		labels.Set(ClusterToSelectableFields(&federation.Cluster{})),
		nil,
	)
}
Beispiel #23
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Extensions.GroupVersion().String(),
		"Ingress",
		labels.Set(IngressToSelectableFields(&extensions.Ingress{})),
		nil,
	)
}
Beispiel #24
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"LimitRange",
		labels.Set(LimitRangeToSelectableFields(&api.LimitRange{})),
		nil,
	)
}
Beispiel #25
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"ServiceAccount",
		SelectableFields(&api.ServiceAccount{}),
		nil,
	)
}
Beispiel #26
0
// FIXME: this is failing conversion.go
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		"batch/v2alpha1",
		"ScheduledJob",
		labels.Set(ScheduledJobToSelectableFields(&batch.ScheduledJob{})),
		nil,
	)
}
Beispiel #27
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"Namespace",
		NamespaceToSelectableFields(&api.Namespace{}),
		map[string]string{"name": "metadata.name"},
	)
}
Beispiel #28
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		api.Registry.GroupOrDie(api.GroupName).GroupVersion.String(),
		"Node",
		NodeToSelectableFields(&api.Node{}),
		nil,
	)
}
Beispiel #29
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		registered.GroupOrDie(api.GroupName).GroupVersion.String(),
		"Namespace",
		NamespaceToSelectableFields(&api.Namespace{}),
		map[string]string{"name": "metadata.name"},
	)
}
Beispiel #30
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		registered.GroupOrDie(api.GroupName).GroupVersion.String(),
		"PodTemplate",
		PodTemplateToSelectableFields(&api.PodTemplate{}),
		nil,
	)
}