Skip to content

Commit bb5eeb9

Browse files
committed
test: rename from revocation_kid_list to revocation_list_kid
1 parent 67459dc commit bb5eeb9

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

t/auth_jwt_revocation_list_kid.t

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ __DATA__
1212
include $TEST_NGINX_CONF_DIR/authorized_server.conf;
1313
--- config
1414
location / {
15-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/revocation_kid_list.json;
15+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/revocation_list_kid.json;
1616
}
1717
--- request
1818
GET /
@@ -23,14 +23,14 @@ location / {
2323
include $TEST_NGINX_CONF_DIR/authorized_server.conf;
2424
--- config
2525
location / {
26-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/invalid_revocation_kid_list.json;
26+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/invalid_revocation_list_kid.json;
2727
}
2828
--- must_die
2929
3030
=== test: set valid auth_jwt_revocation_list_kid in http_config part
3131
--- http_config
3232
include $TEST_NGINX_CONF_DIR/authorized_server.conf;
33-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/revocation_kid_list.json;
33+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/revocation_list_kid.json;
3434
--- config
3535
location / {}
3636
--- request
@@ -40,24 +40,24 @@ location / {}
4040
=== test: set invalid auth_jwt_revocation_list_kid in http_config part
4141
--- http_config
4242
include $TEST_NGINX_CONF_DIR/authorized_server.conf;
43-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/invalid_revocation_kid_list.json;
43+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/invalid_revocation_list_kid.json;
4444
--- config
4545
location / {}
4646
--- must_die
4747
4848
=== test: set invalid json data auth_jwt_revocation_list_kid failed
4949
--- http_config
5050
include $TEST_NGINX_CONF_DIR/authorized_server.conf;
51-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/invalid_json_revocation_kid_list.json;
51+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/invalid_json_revocation_list_kid.json;
5252
--- config
5353
location / {}
5454
--- must_die
5555
5656
=== test: multiple auth_jwt_revocation_list_kid directives success
5757
--- http_config
5858
include $TEST_NGINX_CONF_DIR/authorized_server.conf;
59-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/revocation_kid_list.json;
60-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/revocation_kid_list.json;
59+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/revocation_list_kid.json;
60+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/revocation_list_kid.json;
6161
--- config
6262
location / {}
6363
--- request
@@ -93,7 +93,7 @@ include $TEST_NGINX_CONF_DIR/jwt.conf;
9393
location / {
9494
auth_jwt "" token=$test1_jwt;
9595
auth_jwt_key_file $TEST_NGINX_DATA_DIR/jwks.json;
96-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/revocation_kid_list.json;
96+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/revocation_list_kid.json;
9797
}
9898
--- request
9999
GET /
@@ -107,7 +107,7 @@ include $TEST_NGINX_CONF_DIR/jwt.conf;
107107
location / {
108108
auth_jwt "" token=$test2_jwt;
109109
auth_jwt_key_file $TEST_NGINX_DATA_DIR/jwks.json;
110-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/revocation_kid_list.json;
110+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/revocation_list_kid.json;
111111
}
112112
--- request
113113
GET /
@@ -123,7 +123,7 @@ include $TEST_NGINX_CONF_DIR/jwt.conf;
123123
location / {
124124
auth_jwt "" token=$test1_jwt_empty_kid;
125125
auth_jwt_key_file $TEST_NGINX_DATA_DIR/jwks.json;
126-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/revocation_kid_list.json;
126+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/revocation_list_kid.json;
127127
}
128128
--- request
129129
GET /
@@ -139,7 +139,7 @@ include $TEST_NGINX_CONF_DIR/jwt.conf;
139139
location / {
140140
auth_jwt "" token=$test1_jwt_unrepresented_kid;
141141
auth_jwt_key_file $TEST_NGINX_DATA_DIR/jwks.json;
142-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/revocation_kid_list.json;
142+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/revocation_list_kid.json;
143143
}
144144
--- request
145145
GET /
@@ -159,9 +159,9 @@ include $TEST_NGINX_CONF_DIR/jwt.conf;
159159
location / {
160160
auth_jwt "" token=$jwt;
161161
auth_jwt_key_file $TEST_NGINX_DATA_DIR/jwks.json;
162-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/empty_revocation_kid_list.json;
162+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/empty_revocation_list_kid.json;
163163
limit_except GET {
164-
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_kid_list/revocation_kid_list.json;
164+
auth_jwt_revocation_list_kid $TEST_NGINX_DATA_DIR/revocation_list_kid/revocation_list_kid.json;
165165
}
166166
include $TEST_NGINX_CONF_DIR/authorized_proxy.conf;
167167
}

0 commit comments

Comments
 (0)