!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/Server/SCore/   drwxr-xr-x
Free 4.93 GB of 27.03 GB (18.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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


from Ft.Server.Common import ResourceTypes
import test_helper

def test_create(tester):


    tester.startTest("Create document with a UUID")

    #Create XML Document
    repo = test_helper.GetRepo(tester)
    test = repo.fetchResource('/test')
    doc = test.createDocument('',DOC1,forcedType=ResourceTypes.ResourceType.XML_DOCUMENT)
    tester.compare(ResourceTypes.ResourceType.XML_DOCUMENT,test.hasResource(doc.getAbsolutePath()))
    global uuid
    uuid = doc.getPath()
    repo.txCommit()

    repo = test_helper.GetRepo(tester)
    test = repo.fetchResource('/test')
    tester.compare(ResourceTypes.ResourceType.XML_DOCUMENT,test.hasResource(uuid.absolutePath))
    repo.txRollback()

    tester.testDone()
    return



def test_access(tester):

    tester.startTest("UUID Document Access")

    repo = test_helper.GetRepo(tester)
    sheet = repo.fetchResource(uuid.absolutePath)
    tester.compare('text/xml',sheet.getImt())
    tester.compare(DOC1,sheet.getContent())
    repo.txRollback()
    tester.testDone()


def cleanup(tester):

    tester.startTest("Clean Up")
    repo = test_helper.GetRepo(tester)
    if repo.hasResource('/test'):
        repo.deleteResource('/test')
    repo.createContainer("/test",1)
    repo.txCommit()
    tester.testDone()


DOC1="""<docelem v='foo'/>"""



def Test(tester):

    cleanup(tester)
    test_create(tester)
    test_access(tester)



:: 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.0034 ]--