I'm trying to unit test a mule flow that has an ftp:inbound-endpoint and an sftp:outbound-endpoint.

I'm following the example FTPFunctionalTestCase from Mule In Action 2nd Ed chapter 03, which has both an ftp:inbound-endpoint and an ftp:outbound-endpoint.

The point is that I'm not able to use FakeFtpServer for faking an SFTP server. Is there any trick I don't know for doing it, or should I use another class?

有帮助吗?

解决方案

FakeFtpServer does not provide SFTP, as it is a quite different technology from FTP. You might want to look at Mule endpoint mocking with Munit, or if you really need a mock SFTP server, you can look at this blog post on building one.

其他提示

Munit also provides an FTP/SFTP server for your integration tests

https://github.com/mulesoft/munit/wiki/ftp-server

You need to go to the update site for munit and install SFTP integration tool in your Anypoint studio. Then you will be able to use SFTP integration testing tool.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top