]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-oauth2: Add missing test_begin/test_end to token escape
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 3 May 2021 06:58:29 +0000 (09:58 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 21 Jun 2021 13:20:28 +0000 (13:20 +0000)
src/lib-oauth2/test-oauth2-jwt.c

index fef9b14cd85c3286feab481c95c5a897acd9efdb..a43468f439a8c9eee0e44ef16c90f83c0fa36adf 100644 (file)
@@ -328,6 +328,9 @@ static void test_jwt_token_escape(void)
                },
                { "../", "hs256", "../", "%2e%2e%2f", "%2e%2e%2f" },
        };
+
+       test_begin("JWT token escaping");
+
        buffer_t *b64_key =
                t_base64_encode(0, SIZE_MAX, hs_sign_key->data, hs_sign_key->used);
        ARRAY_TYPE(oauth2_field) fields;
@@ -359,6 +362,8 @@ static void test_jwt_token_escape(void)
                sign_jwt_token_hs256(token, hs_sign_key);
                test_jwt_token(str_c(token));
        }
+
+       test_end();
 }
 
 static void test_jwt_broken_token(void)