...
1
16
17 package clustertrustbundle
18
19 import (
20 "context"
21 "testing"
22
23 "k8s.io/kubernetes/pkg/apis/certificates"
24 )
25
26 func TestWarningsOnCreate(t *testing.T) {
27 if warnings := Strategy.WarningsOnCreate(context.Background(), &certificates.ClusterTrustBundle{}); warnings != nil {
28 t.Errorf("Got %v, want nil", warnings)
29 }
30 }
31
32 func TestAllowCreateOnUpdate(t *testing.T) {
33 if Strategy.AllowCreateOnUpdate() != false {
34 t.Errorf("Got true, want false")
35 }
36 }
37
38 func TestWarningsOnUpdate(t *testing.T) {
39 if warnings := Strategy.WarningsOnUpdate(context.Background(), &certificates.ClusterTrustBundle{}, &certificates.ClusterTrustBundle{}); warnings != nil {
40 t.Errorf("Got %v, want nil", warnings)
41 }
42 }
43
44 func TestAllowUnconditionalUpdate(t *testing.T) {
45 if Strategy.AllowUnconditionalUpdate() != false {
46 t.Errorf("Got true, want false")
47 }
48 }
49
View as plain text