From 135b77d12b8ccb96a8157b3bbaf2ada14703cf05 Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Mon, 23 Mar 2026 14:30:05 +0500 Subject: [PATCH] test(io): rename `jwt-role-claim-key*.config` dump files These files were added to cover the config dumping of string comparison operators in `JSPath`. Renaming and adding a comment in these to make it clear. Signed-off-by: Taimoor Zaeem --- .../{jwt-role-claim-key1.config => jspath-str-op-dump1.config} | 0 .../{jwt-role-claim-key2.config => jspath-str-op-dump2.config} | 0 .../{jwt-role-claim-key3.config => jspath-str-op-dump3.config} | 0 .../{jwt-role-claim-key4.config => jspath-str-op-dump4.config} | 0 .../{jwt-role-claim-key5.config => jspath-str-op-dump5.config} | 0 test/io/configs/jspath-str-op-dump1.config | 2 ++ .../{jwt-role-claim-key2.config => jspath-str-op-dump2.config} | 0 .../{jwt-role-claim-key3.config => jspath-str-op-dump3.config} | 0 .../{jwt-role-claim-key4.config => jspath-str-op-dump4.config} | 0 .../{jwt-role-claim-key5.config => jspath-str-op-dump5.config} | 0 test/io/configs/jwt-role-claim-key1.config | 1 - 11 files changed, 2 insertions(+), 1 deletion(-) rename test/io/configs/expected/{jwt-role-claim-key1.config => jspath-str-op-dump1.config} (100%) rename test/io/configs/expected/{jwt-role-claim-key2.config => jspath-str-op-dump2.config} (100%) rename test/io/configs/expected/{jwt-role-claim-key3.config => jspath-str-op-dump3.config} (100%) rename test/io/configs/expected/{jwt-role-claim-key4.config => jspath-str-op-dump4.config} (100%) rename test/io/configs/expected/{jwt-role-claim-key5.config => jspath-str-op-dump5.config} (100%) create mode 100644 test/io/configs/jspath-str-op-dump1.config rename test/io/configs/{jwt-role-claim-key2.config => jspath-str-op-dump2.config} (100%) rename test/io/configs/{jwt-role-claim-key3.config => jspath-str-op-dump3.config} (100%) rename test/io/configs/{jwt-role-claim-key4.config => jspath-str-op-dump4.config} (100%) rename test/io/configs/{jwt-role-claim-key5.config => jspath-str-op-dump5.config} (100%) delete mode 100644 test/io/configs/jwt-role-claim-key1.config diff --git a/test/io/configs/expected/jwt-role-claim-key1.config b/test/io/configs/expected/jspath-str-op-dump1.config similarity index 100% rename from test/io/configs/expected/jwt-role-claim-key1.config rename to test/io/configs/expected/jspath-str-op-dump1.config diff --git a/test/io/configs/expected/jwt-role-claim-key2.config b/test/io/configs/expected/jspath-str-op-dump2.config similarity index 100% rename from test/io/configs/expected/jwt-role-claim-key2.config rename to test/io/configs/expected/jspath-str-op-dump2.config diff --git a/test/io/configs/expected/jwt-role-claim-key3.config b/test/io/configs/expected/jspath-str-op-dump3.config similarity index 100% rename from test/io/configs/expected/jwt-role-claim-key3.config rename to test/io/configs/expected/jspath-str-op-dump3.config diff --git a/test/io/configs/expected/jwt-role-claim-key4.config b/test/io/configs/expected/jspath-str-op-dump4.config similarity index 100% rename from test/io/configs/expected/jwt-role-claim-key4.config rename to test/io/configs/expected/jspath-str-op-dump4.config diff --git a/test/io/configs/expected/jwt-role-claim-key5.config b/test/io/configs/expected/jspath-str-op-dump5.config similarity index 100% rename from test/io/configs/expected/jwt-role-claim-key5.config rename to test/io/configs/expected/jspath-str-op-dump5.config diff --git a/test/io/configs/jspath-str-op-dump1.config b/test/io/configs/jspath-str-op-dump1.config new file mode 100644 index 000000000..770d8c7d8 --- /dev/null +++ b/test/io/configs/jspath-str-op-dump1.config @@ -0,0 +1,2 @@ +# For coverage of config dumping with jspath string comparison operator. We allow 5 different operators, so each file test 1 operator. +jwt-role-claim-key = ".roles[?(@ == \"role1\")]" diff --git a/test/io/configs/jwt-role-claim-key2.config b/test/io/configs/jspath-str-op-dump2.config similarity index 100% rename from test/io/configs/jwt-role-claim-key2.config rename to test/io/configs/jspath-str-op-dump2.config diff --git a/test/io/configs/jwt-role-claim-key3.config b/test/io/configs/jspath-str-op-dump3.config similarity index 100% rename from test/io/configs/jwt-role-claim-key3.config rename to test/io/configs/jspath-str-op-dump3.config diff --git a/test/io/configs/jwt-role-claim-key4.config b/test/io/configs/jspath-str-op-dump4.config similarity index 100% rename from test/io/configs/jwt-role-claim-key4.config rename to test/io/configs/jspath-str-op-dump4.config diff --git a/test/io/configs/jwt-role-claim-key5.config b/test/io/configs/jspath-str-op-dump5.config similarity index 100% rename from test/io/configs/jwt-role-claim-key5.config rename to test/io/configs/jspath-str-op-dump5.config diff --git a/test/io/configs/jwt-role-claim-key1.config b/test/io/configs/jwt-role-claim-key1.config deleted file mode 100644 index bee3f8141..000000000 --- a/test/io/configs/jwt-role-claim-key1.config +++ /dev/null @@ -1 +0,0 @@ -jwt-role-claim-key = ".roles[?(@ == \"role1\")]"