]> 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)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 3 May 2021 06:59:42 +0000 (09:59 +0300)
src/lib-oauth2/test-oauth2-jwt.c

index 9b0c269e6e8cf23c01ef8484c650c769d5b4bead..ba6c320fd17ba8f96aa35f41b0eed8ba4780052b 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)