| 1 | use Test2::V0scip-perl cpan AnyEvent-FTP 0.20 Test2/V0/ -no_srand => 1; |
| 2 | use AnyEvent::FTP::Server::Context::FSRWscip-perl cpan AnyEvent-FTP 0.20 AnyEvent/FTP/Server/Context/FSRW/; |
| 3 | use 5.010scip-perl cpan AnyEvent-FTP 0.20 `5.010`/; |
| 4 | use Test::AnyEventFTPServerscip-perl cpan AnyEvent-FTP 0.20 Test/AnyEventFTPServer/; |
| 5 | |
| 6 | my $t = create_ftpserver_okscip-perl cpan AnyEvent-FTP 0.20 main/create_ftpserver_ok().('FSRW'); |
| 7 | $t->auto_loginscip-perl cpan AnyEvent-FTP 0.20 main/auto_login().(0); |
| 8 | |
| 9 | my @cmd = qw( CWD CDUP PWD SIZE MKD RMD DELE RNFR RNTO STAT PASV PORT REST RETR NLST LIST STOR |
| 10 | APPE STOU ALLO NOOP SYST TYPE ); |
| 11 | |
| 12 | foreach my $cmd (@cmd) |
| 13 | { |
| 14 | $t->command_okscip-perl cpan AnyEvent-FTP 0.20 main/command_ok().($cmd) |
| 15 | ->code_isscip-perl cpan AnyEvent-FTP 0.20 main/code_is().(530) |
| 16 | ->message_likescip-perl cpan AnyEvent-FTP 0.20 main/message_like().(qr{Please login with USER and PASS}); |
| 17 | } |
| 18 | |
| 19 | done_testing; |