!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/lib/4Suite/tests/Server/Client/Commands/   drwxr-xr-x
Free 1.99 GB of 27.03 GB (7.35%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_fetch_container.py (1.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

from Ft.Lib.CommandLine import CommandLineTestUtil
import test_prime


FIRST_CONTAINER = '/' + test_prime.BASE_CONTAINER + '/con1'

def Init(repo):
    if repo.hasResource(FIRST_CONTAINER):
        repo.deleteResource(FIRST_CONTAINER)
    repo.createContainer(FIRST_CONTAINER,1)


def Test(tester):

    test_prime.InitRepo(tester,Init,['4ss','fetch','container'])

    baseConfig = {'host':tester.test_data['ftrpc-host'],
                  'port':tester.test_data['ftrpc-port'],
                  'username':tester.test_data['userName'],
                  'password':tester.test_data['password'],
                  }

    #No options, just get the system user container
    tr = CommandLineTestUtil.TestRun('Basic Fetch',
                                     baseConfig,
                                     [FIRST_CONTAINER],
                                     expectedOut = expected_1%FIRST_CONTAINER)

    #Fetch an unknown container
    uri = '/' + test_prime.BASE_CONTAINER + '/con3'
    tr2 = CommandLineTestUtil.TestRun('Error Fetch',
                                      baseConfig,
                                      [uri],
                                      expectedOut=expected_2%uri)

    #Fetch not a container
    uri = '/ftss/commands/4ss.fetch.container'
    tr3 = CommandLineTestUtil.TestRun('Error Fetch not container',
                                      baseConfig,
                                      [uri],
                                      expectedOut=expected_3%uri)


    t = CommandLineTestUtil.Test('4ss fetch container',[tr,tr2,tr3])

    return t.test(tester)


expected_1 = "Listing of %s\ntotal: 0\n\n"
expected_2 = "Path %s is unknown\n"
expected_3 = "The resource '%s' is not a container.\n"

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0035 ]--