Domanda

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?

È stato utile?

Soluzione

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.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top