누군가 SFTP 구성 요소와 함께 MUnit을 사용 했습니까? 시작하려면 유용한 정보/예를 제공해주세요. MUnit 설명서를 읽었지만 Munit과 SFTP 구성 요소에 대한 많은 도움을 얻지 못했습니다.SFTP 구성 요소가있는 MUnit
0
A
답변
1
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>
0
Anypoint Studio에서 도움말 및 새 소프트웨어 설치 ...로 이동하십시오. Work with : 패널에서 MUnit Update Site를 찾고, Mule Tool for Mule 섹션에서 FTP server Module (Mule 3.4.0+)을 선택하면 ftp 서버용 munit 구성 요소를 얻습니다.이 FTP 서버를 사용할 수 있습니다 in/after 스위트를 사용하여 응용 프로그램 테스트를위한 데이터 변환을 처리 할 수 있으며 이것을 응용 프로그램 흐름에 대한 아웃 바운드로 사용할 수 있습니다.