@@ -66,12 +66,11 @@ describe('Service E2E - inline upstream', () => {
6666 expect ( rawConfig ?. upstreams ?. [ 0 ] . modifiedIndex ) . toEqual ( 100 ) ;
6767 expect ( rawConfig ?. services_conf_version ) . toEqual ( 100 ) ;
6868 expect ( rawConfig ?. upstreams_conf_version ) . toEqual ( 100 ) ;
69- expect ( rawConfig ?. consumers_conf_version ) . toBeUndefined ( ) ;
70- expect ( rawConfig ?. global_rules_conf_version ) . toBeUndefined ( ) ;
71- expect ( rawConfig ?. plugin_metadata_conf_version ) . toBeUndefined ( ) ;
72- expect ( rawConfig ?. routes_conf_version ) . toBeUndefined ( ) ;
73- expect ( rawConfig ?. ssls_conf_version ) . toBeUndefined ( ) ;
74- expect ( rawConfig ?. stream_routes_conf_version ) . toBeUndefined ( ) ;
69+ expect ( rawConfig ?. consumers_conf_version ) . toEqual ( 0 ) ;
70+ expect ( rawConfig ?. global_rules_conf_version ) . toEqual ( 0 ) ;
71+ expect ( rawConfig ?. plugin_metadata_conf_version ) . toEqual ( 0 ) ;
72+ expect ( rawConfig ?. routes_conf_version ) . toEqual ( 0 ) ;
73+ expect ( rawConfig ?. ssls_conf_version ) . toEqual ( 0 ) ;
7574
7675 const config = configCache . get ( cacheKey ) ;
7776 expect ( config ?. services ) . not . toBeUndefined ( ) ;
@@ -100,12 +99,11 @@ describe('Service E2E - inline upstream', () => {
10099 expect ( rawConfig ?. services ?. [ 0 ] . modifiedIndex ) . toEqual ( 100 ) ;
101100 expect ( rawConfig ?. upstreams_conf_version ) . toEqual ( 200 ) ;
102101 expect ( rawConfig ?. services_conf_version ) . toEqual ( 100 ) ;
103- expect ( rawConfig ?. consumers_conf_version ) . toBeUndefined ( ) ;
104- expect ( rawConfig ?. global_rules_conf_version ) . toBeUndefined ( ) ;
105- expect ( rawConfig ?. plugin_metadata_conf_version ) . toBeUndefined ( ) ;
106- expect ( rawConfig ?. routes_conf_version ) . toBeUndefined ( ) ;
107- expect ( rawConfig ?. ssls_conf_version ) . toBeUndefined ( ) ;
108- expect ( rawConfig ?. stream_routes_conf_version ) . toBeUndefined ( ) ;
102+ expect ( rawConfig ?. consumers_conf_version ) . toEqual ( 0 ) ;
103+ expect ( rawConfig ?. global_rules_conf_version ) . toEqual ( 0 ) ;
104+ expect ( rawConfig ?. plugin_metadata_conf_version ) . toEqual ( 0 ) ;
105+ expect ( rawConfig ?. routes_conf_version ) . toEqual ( 0 ) ;
106+ expect ( rawConfig ?. ssls_conf_version ) . toEqual ( 0 ) ;
109107 } ) ;
110108
111109 it ( 'Update inlined upstream again' , async ( ) => {
@@ -131,12 +129,11 @@ describe('Service E2E - inline upstream', () => {
131129 expect ( rawConfig ?. services ?. [ 0 ] . modifiedIndex ) . toEqual ( 100 ) ;
132130 expect ( rawConfig ?. upstreams_conf_version ) . toEqual ( 300 ) ;
133131 expect ( rawConfig ?. services_conf_version ) . toEqual ( 100 ) ;
134- expect ( rawConfig ?. consumers_conf_version ) . toBeUndefined ( ) ;
135- expect ( rawConfig ?. global_rules_conf_version ) . toBeUndefined ( ) ;
136- expect ( rawConfig ?. plugin_metadata_conf_version ) . toBeUndefined ( ) ;
137- expect ( rawConfig ?. routes_conf_version ) . toBeUndefined ( ) ;
138- expect ( rawConfig ?. ssls_conf_version ) . toBeUndefined ( ) ;
139- expect ( rawConfig ?. stream_routes_conf_version ) . toBeUndefined ( ) ;
132+ expect ( rawConfig ?. consumers_conf_version ) . toEqual ( 0 ) ;
133+ expect ( rawConfig ?. global_rules_conf_version ) . toEqual ( 0 ) ;
134+ expect ( rawConfig ?. plugin_metadata_conf_version ) . toEqual ( 0 ) ;
135+ expect ( rawConfig ?. routes_conf_version ) . toEqual ( 0 ) ;
136+ expect ( rawConfig ?. ssls_conf_version ) . toEqual ( 0 ) ;
140137 } ) ;
141138
142139 it ( 'Delete service' , async ( ) => {
0 commit comments