mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-11-13 18:00:59 +00:00
feat: Add support for percent-encoding in password and it's corresponding test
Add support of percent-encoded characters when passing the username and password in URI Closes https://github.com/espressif/esp-mqtt/issues/294
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <catch2/catch_session.hpp>
|
||||
|
||||
extern "C" void app_main(void)
|
||||
{
|
||||
int argc = 1;
|
||||
const char *argv[2] = {
|
||||
"target_test_main",
|
||||
NULL
|
||||
};
|
||||
auto result = Catch::Session().run(argc, argv);
|
||||
|
||||
if (result != 0) {
|
||||
printf("Test failed with result %d\n", result);
|
||||
exit(1);
|
||||
} else {
|
||||
printf("Test passed.\n");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user