@@ -39,6 +39,8 @@ var _ = Describe("Test apisix.apache.org/v2 Status", Label("apisix.apache.org",
3939 var (
4040 s = scaffold .NewScaffold (& scaffold.Options {
4141 ControllerName : "apisix.apache.org/apisix-ingress-controller" ,
42+ // for triggering the sync
43+ SyncPeriod : 3 * time .Second ,
4244 })
4345 applier = framework .NewApplier (s .GinkgoT , s .K8sClient , s .CreateResourceFromString )
4446 )
6668 name: "apisix-proxy-config"
6769`
6870 ingressClass := fmt .Sprintf (ingressClassYaml , framework .IngressVersion , s .Namespace ())
69- err = s .CreateResourceFromString (ingressClass )
71+ err = s .CreateResourceFromStringWithNamespace (ingressClass , "" )
7072 Expect (err ).NotTo (HaveOccurred (), "creating IngressClass" )
7173 time .Sleep (5 * time .Second )
7274 })
@@ -157,8 +159,8 @@ spec:
157159 })
158160
159161 It ("dataplane unavailable" , func () {
160- if os .Getenv ("PROVIDER_TYPE" ) != adc .BackendModeAPISIXStandalone {
161- Skip ("only for apisix standalone mode" )
162+ if os .Getenv ("PROVIDER_TYPE" ) == adc .BackendModeAPI7EE {
163+ Skip ("skip for api7ee mode because it use dashboard admin api " )
162164 }
163165 By ("apply ApisixRoute" )
164166 applier .MustApplyAPIv2 (types.NamespacedName {Namespace : s .Namespace (), Name : "default" }, & apiv2.ApisixRoute {}, ar )
@@ -192,7 +194,7 @@ spec:
192194 s .RetryAssertion (func () string {
193195 output , _ := s .GetOutputFromString ("ar" , "default" , "-o" , "yaml" )
194196 return output
195- }).WithTimeout (80 * time .Second ).
197+ }).WithTimeout (60 * time .Second ).
196198 Should (
197199 And (
198200 ContainSubstring (`status: "False"` ),
@@ -215,7 +217,7 @@ spec:
215217 s .RetryAssertion (func () string {
216218 output , _ := s .GetOutputFromString ("ar" , "default" , "-o" , "yaml" )
217219 return output
218- }).WithTimeout (80 * time .Second ).
220+ }).WithTimeout (60 * time .Second ).
219221 Should (
220222 And (
221223 ContainSubstring (`status: "True"` ),
0 commit comments