@@ -881,7 +881,7 @@ spec:
881881 return err .Error ()
882882 }).WithTimeout (8 * time .Second ).ProbeEvery (time .Second ).Should (ContainSubstring (`httproutepolicies.apisix.apache.org "http-route-policy-0" not found` ))
883883 // access the route without additional vars should be OK
884- message := retry .DoWithRetry (s .GinkgoT , "" , 10 , time .Second , func () (string , error ) {
884+ message := retry .DoWithRetry (s .GetGinkgoT () , "" , 10 , time .Second , func () (string , error ) {
885885 statusCode := s .NewAPISIXClient ().
886886 GET ("/get" ).
887887 WithHost ("httpbin.example" ).
@@ -892,7 +892,7 @@ spec:
892892 }
893893 return "request OK" , nil
894894 })
895- s .Logf (message )
895+ s .GetGinkgoT (). Logf (message )
896896 })
897897
898898 It ("HTTPRoutePolicy conflicts" , func () {
@@ -975,7 +975,7 @@ spec:
975975 err := s .CreateResourceFromString (spec )
976976 Expect (err ).NotTo (HaveOccurred (), "creating HTTPRoutePolicy" )
977977 // wait for HTTPRoutePolicy is Accepted
978- framework .HTTPRoutePolicyMustHaveCondition (s .GinkgoT , s .K8sClient , 10 * time .Second ,
978+ framework .HTTPRoutePolicyMustHaveCondition (s .GetGinkgoT () , s .GetK8sClient () , 10 * time .Second ,
979979 types.NamespacedName {Namespace : s .Namespace (), Name : "apisix" },
980980 types.NamespacedName {Namespace : s .Namespace (), Name : name },
981981 metav1.Condition {
@@ -984,7 +984,7 @@ spec:
984984 )
985985 }
986986 for _ , name := range []string {"http-route-policy-0" , "http-route-policy-1" , "http-route-policy-2" } {
987- framework .HTTPRoutePolicyMustHaveCondition (s .GinkgoT , s .K8sClient , 10 * time .Second ,
987+ framework .HTTPRoutePolicyMustHaveCondition (s .GetGinkgoT () , s .GetK8sClient () , 10 * time .Second ,
988988 types.NamespacedName {Namespace : s .Namespace (), Name : "apisix" },
989989 types.NamespacedName {Namespace : s .Namespace (), Name : name },
990990 metav1.Condition {
@@ -1008,7 +1008,7 @@ spec:
10081008 err := s .DeleteResource ("HTTPRoutePolicy" , "http-route-policy-2" )
10091009 Expect (err ).NotTo (HaveOccurred (), "deleting HTTPRoutePolicy %s" , "http-route-policy-2" )
10101010 for _ , name := range []string {"http-route-policy-0" , "http-route-policy-1" } {
1011- framework .HTTPRoutePolicyMustHaveCondition (s .GinkgoT , s .K8sClient , 10 * time .Second ,
1011+ framework .HTTPRoutePolicyMustHaveCondition (s .GetGinkgoT () , s .GetK8sClient () , 10 * time .Second ,
10121012 types.NamespacedName {Namespace : s .Namespace (), Name : "apisix" },
10131013 types.NamespacedName {Namespace : s .Namespace (), Name : name },
10141014 metav1.Condition {
@@ -1029,15 +1029,15 @@ spec:
10291029 By ("update HTTPRoutePolicy" )
10301030 err = s .CreateResourceFromString (httpRoutePolicy1Priority20 )
10311031 Expect (err ).NotTo (HaveOccurred (), "update HTTPRoutePolicy's priority to 20" )
1032- framework .HTTPRoutePolicyMustHaveCondition (s .GinkgoT , s .K8sClient , 10 * time .Second ,
1032+ framework .HTTPRoutePolicyMustHaveCondition (s .GetGinkgoT () , s .GetK8sClient () , 10 * time .Second ,
10331033 types.NamespacedName {Namespace : s .Namespace (), Name : "apisix" },
10341034 types.NamespacedName {Namespace : s .Namespace (), Name : "http-route-policy-1" },
10351035 metav1.Condition {
10361036 Type : string (v1alpha2 .PolicyConditionAccepted ),
10371037 },
10381038 )
10391039 for _ , name := range []string {"http-route-policy-0" , "http-route-policy-1" } {
1040- framework .HTTPRoutePolicyMustHaveCondition (s .GinkgoT , s .K8sClient , 10 * time .Second ,
1040+ framework .HTTPRoutePolicyMustHaveCondition (s .GetGinkgoT () , s .GetK8sClient () , 10 * time .Second ,
10411041 types.NamespacedName {Namespace : s .Namespace (), Name : "apisix" },
10421042 types.NamespacedName {Namespace : s .Namespace (), Name : name },
10431043 metav1.Condition {
@@ -1089,7 +1089,7 @@ spec:
10891089 By ("delete the HTTPRoute, assert the HTTPRoutePolicy's status will be changed" )
10901090 err := s .DeleteResource ("HTTPRoute" , "httpbin" )
10911091 Expect (err ).NotTo (HaveOccurred (), "deleting HTTPRoute" )
1092- message := retry .DoWithRetry (s .GinkgoT , "request the deleted route" , 10 , time .Second , func () (string , error ) {
1092+ message := retry .DoWithRetry (s .GetGinkgoT () , "request the deleted route" , 10 , time .Second , func () (string , error ) {
10931093 statusCode := s .NewAPISIXClient ().
10941094 GET ("/get" ).
10951095 WithHost ("httpbin.example" ).
@@ -1102,7 +1102,7 @@ spec:
11021102 }
11031103 return "the route is deleted" , nil
11041104 })
1105- s .Logf (message )
1105+ s .GetGinkgoT (). Logf (message )
11061106
11071107 Eventually (func () string {
11081108 spec , err := s .GetResourceYaml ("HTTPRoutePolicy" , "http-route-policy-0" )
0 commit comments