You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/01/09 10:26:00 UTC

[jira] [Commented] (NIFI-9267) Replace TestServer with OkHttp MockWebServer

    [ https://issues.apache.org/jira/browse/NIFI-9267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17471324#comment-17471324 ] 

ASF subversion and git services commented on NIFI-9267:
-------------------------------------------------------

Commit 60390956256e6bd605e05d20d2cd577eaf2fba2f in nifi's branch refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=6039095 ]

NIFI-9267 Replaced nifi-standard-web-test-utils with mockwebserver

- Replaced instances of custom Jetty TestServer with OkHttp MockWebServer
- Removed integration tests referencing nifi-standard-web-test-utils SslContextUtils
- Removed nifi-standard-web-test-utils

Signed-off-by: Joe Gresock <jg...@gmail.com>

This closes #5620.


> Replace TestServer with OkHttp MockWebServer
> --------------------------------------------
>
>                 Key: NIFI-9267
>                 URL: https://issues.apache.org/jira/browse/NIFI-9267
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework, Extensions
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The {{nifi-standard-web-test-utils}} module includes a {{TestServer}} class based on Jetty to support testing various components that require access to an HTTP server. The OkHttp MockWebServer library provides a straightforward API for creating an HTTP with expected responses. InvokeHTTP unit tests already leverage MockWebServer, and remaining references to {{TestServer}} should be replaced with OkHttp MockWebServer.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)