sevensolutions commented on PR #10278:
URL: https://github.com/apache/apisix/pull/10278#issuecomment-1751668362

   > please support `consul_kv` as well.
   
   @shreemaan-abhishek I'am working on that.
   
   Can anyone please tell me how to write an assert for accepting one of two 
error codes?
   I tried:
   ```
   --- error_code eval
   qr/200|403/
   ```
   but this doesn't seem to work. It doesn't match but according to Regex101 it 
should.
   The error is:
   ```
   got: '403'
   expected: '(?^:200|403)'
   ```
   
   The reason is, that bootstrapping the ACL twice is not allowed which returns 
403 which is totally fine.


-- 
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