@@ -695,7 +695,49 @@ qr/request\.is_subrequest: true at RequestHeaders/
695
695
696
696
697
697
698
- === TEST 16: proxy_wasm - get_property() - unknown property on: request_headers
698
+ === TEST 16: proxy_wasm - get_property() plugin_name on: tick
699
+ --- wasm_modules: hostcalls
700
+ --- load_nginx_modules: ngx_http_echo_module
701
+ --- config
702
+ location /t {
703
+ proxy_wasm hostcalls 'tick_period=200 \
704
+ on_tick=log_property \
705
+ name=plugin_name';
706
+ echo_sleep 0.5;
707
+ echo ok;
708
+ }
709
+ --- response_body
710
+ ok
711
+ --- error_log
712
+ plugin_name: hostcalls
713
+ --- no_error_log
714
+ [error]
715
+ [crit]
716
+
717
+
718
+
719
+ === TEST 17: proxy_wasm - get_property() plugin_root_id on: tick
720
+ --- wasm_modules: hostcalls
721
+ --- load_nginx_modules: ngx_http_echo_module
722
+ --- config
723
+ location /t {
724
+ proxy_wasm hostcalls 'tick_period=200 \
725
+ on_tick=log_property \
726
+ name=plugin_root_id';
727
+ echo_sleep 0.5;
728
+ echo ok;
729
+ }
730
+ --- response_body
731
+ ok
732
+ --- error_log
733
+ plugin_root_id: 0
734
+ --- no_error_log
735
+ [error]
736
+ [crit]
737
+
738
+
739
+
740
+ === TEST 18: proxy_wasm - get_property() - unknown property on: request_headers
699
741
--- wasm_modules: hostcalls
700
742
--- load_nginx_modules: ngx_http_echo_module
701
743
--- config
@@ -714,7 +756,7 @@ qr/\[info\] .*? property not found: nonexistent_property,/
714
756
715
757
716
758
717
- === TEST 17 : proxy_wasm - get_property() request.* - not available on: tick (isolation: global)
759
+ === TEST 19 : proxy_wasm - get_property() request.* - not available on: tick (isolation: global)
718
760
--- skip_hup
719
761
--- wasm_modules: hostcalls
720
762
--- load_nginx_modules: ngx_http_echo_module
@@ -737,7 +779,7 @@ qr/\[info\] .*? property not found: nonexistent_property,/
737
779
738
780
739
781
740
- === TEST 18 : proxy_wasm - get_property() response.* - not available on: tick (isolation: global)
782
+ === TEST 20 : proxy_wasm - get_property() response.* - not available on: tick (isolation: global)
741
783
--- skip_hup
742
784
--- wasm_modules: hostcalls
743
785
--- load_nginx_modules: ngx_http_echo_module
@@ -760,7 +802,7 @@ qr/\[info\] .*? property not found: nonexistent_property,/
760
802
761
803
762
804
763
- === TEST 19 : proxy_wasm - get_property() upstream.* - not available on: tick (isolation: global)
805
+ === TEST 21 : proxy_wasm - get_property() upstream.* - not available on: tick (isolation: global)
764
806
--- skip_hup
765
807
--- wasm_modules: hostcalls
766
808
--- load_nginx_modules: ngx_http_echo_module
@@ -783,7 +825,7 @@ qr/\[info\] .*? property not found: nonexistent_property,/
783
825
784
826
785
827
786
- === TEST 20 : proxy_wasm - get_property() upstream.* - not available on: configure (isolation: global)
828
+ === TEST 22 : proxy_wasm - get_property() upstream.* - not available on: configure (isolation: global)
787
829
--- skip_hup
788
830
--- wasm_modules: hostcalls
789
831
--- load_nginx_modules: ngx_http_echo_module
0 commit comments