有没有人用过带SFTP组件的MUnit,你能给我提供一些有用的信息/示例来启动吗?我浏览了Munit文档,但没有得到关于MUnit的SFTP组件的太多帮助。
发布于 2016-06-21 16:13:56
使用Munit FTP服务器。启用安全属性true以使用SFTP。请参阅本页面https://docs.mulesoft.com/munit/v/1.2.0/munit-ftp-server。
在套件运行前启动服务器,并在运行后停止服务器。示例如下。
<ftpserver:config name="FTP_Server" secure="true" doc:name="FTP Server"/>
<munit:before-suite name="suiteBefore" description="MUnit Test">
<ftpserver:start-server config-ref="FTP_Server" doc:name="FTP Server"/>
</munit:before-suite>
<munit:test name="FlowTest" description="Test">
--flow test goes here----
<flow-ref name="test5Flow" doc:name="Flow-ref to test5Flow"/>
<ftpserver:contains-files config-ref="FTP_Server" file="testFile.xml" path="/tmp" doc:name="FTP Server"/>
</munit:test>
<munit:after-suite name="After_Suite" description="After suite actions">
<ftpserver:stop-server config-ref="FTP_Server" doc:name="FTP Server"/>
</munit:after-suite>发布于 2016-08-18 18:50:03
从Anypoint Studio中,转到帮助并安装新软件…。在使用: panel查找FTP更新站点,并从munit工具部分,选择munit服务器模块(Mule )然后你就可以获得3.4.0+服务器的.you组件.you可以在之前/之后的套件中使用这个ftp服务器来处理应用程序测试的数据转换,你可以使用它作为你的应用程序的外部绑定。
https://stackoverflow.com/questions/37936090
复制相似问题