Exemplo n.º 1
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Extensions.GroupVersion().String(),
		"Deployment",
		labels.Set(DeploymentToSelectableFields(&extensions.Deployment{})),
		nil,
	)
}
Exemplo n.º 2
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Autoscaling.GroupVersion().String(),
		"Autoscaler",
		labels.Set(AutoscalerToSelectableFields(&autoscaling.HorizontalPodAutoscaler{})),
		nil,
	)
}
Exemplo n.º 3
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"PersistentVolume",
		PersistentVolumeToSelectableFields(&api.PersistentVolume{}),
		map[string]string{"name": "metadata.name"},
	)
}
Exemplo n.º 4
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"LimitRange",
		labels.Set(LimitRangeToSelectableFields(&api.LimitRange{})),
		nil,
	)
}
Exemplo n.º 5
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Extensions.GroupVersion().String(),
		"Job",
		labels.Set(JobToSelectableFields(&batch.Job{})),
		nil,
	)
}
Exemplo n.º 6
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"ServiceAccount",
		SelectableFields(&api.ServiceAccount{}),
		nil,
	)
}
Exemplo n.º 7
0
func TestSelectableFieldLabelConversions(t *testing.T) {
	_, fieldsSet, err := EndpointsAttributes(&api.Endpoints{})
	if err != nil {
		t.Fatal(err)
	}
	apitesting.TestSelectableFieldLabelConversionsOfKind(t,
		testapi.Default.GroupVersion().String(),
		"Endpoints",
		labels.Set(fieldsSet),
		nil,
	)
}