besich opened a new issue #5053:
URL: https://github.com/apache/apisix/issues/5053


   ### Issue description
   
   how to set my plugin path in unittest
   in running apisix, it could be setup the `extra_lua_path` and 
`extra_lua_cpath` in `conf/config.yaml`,
   but in unittest, how to set it?
   ```
   add_block_preprocessor(sub{
       my ($block) = @_;
       my $user_yaml_config = $block->user_yaml_config // <<_EOC_;
   apisix:
     extra_lua_path: "/xxxxxx/apisix/?.lua"
   _EOC_
   
       $block->set_value("yaml_config", $user_yaml_config);
   });
   ```
   it also not found the  lua script.
    
   
   ### Environment
   
   none


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to