manually fix unit tests in pkg/api/v1
more manually fix pkg/api/v1 unit tests change ImportPrefix manually fix pkg/api unit tests
This commit is contained in:
@@ -24,15 +24,16 @@ import (
|
||||
|
||||
"github.com/google/gofuzz"
|
||||
|
||||
batchv2alpha1 "k8s.io/api/batch/v2alpha1"
|
||||
apiv1 "k8s.io/api/core/v1"
|
||||
extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
|
||||
apitesting "k8s.io/apimachinery/pkg/api/testing"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/apimachinery/pkg/util/diff"
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
apiv1 "k8s.io/api/core/v1"
|
||||
batchv2alpha1 "k8s.io/kubernetes/pkg/apis/batch/v2alpha1"
|
||||
extensionsv1beta1 "k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
|
||||
k8s_batchv2alpha1 "k8s.io/kubernetes/pkg/apis/batch/v2alpha1"
|
||||
)
|
||||
|
||||
type orderedGroupVersionKinds []schema.GroupVersionKind
|
||||
@@ -45,7 +46,7 @@ func (o orderedGroupVersionKinds) Less(i, j int) bool {
|
||||
|
||||
func TestVerifyDefaulting(t *testing.T) {
|
||||
job := &batchv2alpha1.JobTemplate{}
|
||||
batchv2alpha1.SetObjectDefaults_JobTemplate(job)
|
||||
k8s_batchv2alpha1.SetObjectDefaults_JobTemplate(job)
|
||||
if job.Template.Spec.Template.Spec.DNSPolicy != apiv1.DNSClusterFirst {
|
||||
t.Errorf("unexpected defaulting: %#v", job)
|
||||
}
|
||||
|
Reference in New Issue
Block a user