private static JsonObject executeHttpRequest(String url, Map<String, String> queryParams,
            Map<String, String> cookies) throws IOException {
        OkHttpClient client = new OkHttpClient();

        // Build query parameters
        HttpUrl.Builder urlBuilder = Objects.requireNonNull(HttpUrl.parse(url)).newBuilder();
        for (Map.Entry<String, String> entry : queryParams.entrySet()) {
            urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());
        }
        HttpUrl httpUrl = urlBuilder.build();

        // Build the request
        Request.Builder requestBuilder = new Request.Builder()
                .url(httpUrl);

        // Add cookies to the request
        if (cookies != null && !cookies.isEmpty()) {
            String cookieHeader = cookies.entrySet()
                    .stream()
                    .map(entry -> entry.getKey() + "=" + entry.getValue())
                    .collect(Collectors.joining("; "));
            requestBuilder.header(DS_COOKIE, cookieHeader);
        }

        RequestBody body = RequestBody.create(MediaType.parse(CONTENT_TYPE), "");
        requestBuilder.post(body);

        Request request = requestBuilder.build();

        // Execute the request and parse the response
        try (Response response = client.newCall(request).execute()) {
            if (response.isSuccessful() && response.body() != null) {
                String responseBody = response.body().string();
                return JsonParser.parseString(responseBody).getAsJsonObject();
            } else {
                DS_LOG.error("Unexpected http response error: {}", response);
                throw new DolphinScheduleException("Unexpected http response error " + response);
            }
        }
    }
This method just for DS testing, login by default admin username and password
generate a 1-day expiring token for test, the token will disappear with the DS container shutting down

@return the DS token
inlong-manager/manager-schedule/src/test/java/org/apache/inlong/manager/schedule/dolphinscheduler/DolphinScheduleContainerTestEnv.java