This is an automated email from the ASF dual-hosted git repository.

nic-6443 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 749a9bc15 test(basic-auth): store the vault secret before the consumer 
references it (#13853)
749a9bc15 is described below

commit 749a9bc155eda7019da11514189d49ad264b2d21
Author: Nic <[email protected]>
AuthorDate: Thu Aug 20 15:10:11 2026 +0800

    test(basic-auth): store the vault secret before the consumer references it 
(#13853)
---
 t/plugin/basic-auth.t | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/t/plugin/basic-auth.t b/t/plugin/basic-auth.t
index fc85f2476..2e19a2f6d 100644
--- a/t/plugin/basic-auth.t
+++ b/t/plugin/basic-auth.t
@@ -475,7 +475,15 @@ Authorization: Basic Zm9vOmJhcg==
 
 
 
-=== TEST 22: set basic-auth conf: password uses secret ref
+=== TEST 22: store secret into vault
+--- exec
+VAULT_TOKEN='root' VAULT_ADDR='http://0.0.0.0:8200' vault kv put kv/apisix/foo 
passwd=bar
+--- response_body
+Success! Data written to: kv/apisix/foo
+
+
+
+=== TEST 23: set basic-auth conf: password uses secret ref
 --- request
 GET /t
 --- config
@@ -545,14 +553,6 @@ passed
 
 
 
-=== TEST 23: store secret into vault
---- exec
-VAULT_TOKEN='root' VAULT_ADDR='http://0.0.0.0:8200' vault kv put kv/apisix/foo 
passwd=bar
---- response_body
-Success! Data written to: kv/apisix/foo
-
-
-
 === TEST 24: verify Authorization with foo/bar, request header should not 
hidden
 --- request
 GET /echo

Reply via email to