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


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


from Ft.Server.Common import AclConstants, ResourceTypes
import test_helper

def init(tester):
    tester.startTest("Init")
    repo = test_helper.GetRepo(tester)
    if repo.hasResource('/test'):
        t = repo.fetchResource('/test')
        t.delete()
    repo.createContainer("/test",1)
    repo.txCommit()
    tester.testDone()
    


def test_acl_interfaces(tester):

    tester.startTest("ACL Interfaces")
    repo = test_helper.GetRepo(tester)
    test = repo.fetchResource("/test")
    tester.compare(test.getParent().getAcl(AclConstants.READ_ACCESS),test.getAcl(AclConstants.READ_ACCESS))
    tester.compare(test.getParent().getAcl(AclConstants.WRITE_ACCESS),test.getAcl(AclConstants.WRITE_ACCESS))
    repo.txRollback()
    tester.testDone()


def test_change_owner(tester):

    tester.startTest("Change Ownership")

    repo = test_helper.GetRepo(tester)
    test = repo.fetchResource('test')
    owner = test.getOwner()
    tester.compare(repo.getUserName(),owner.getName())

    suGroup = repo.fetchUserOrGroupByName(AclConstants.SUPER_USER_GROUP_NAME)
    test.setOwner(suGroup)
    tester.compare(test.getOwner().getName(),AclConstants.SUPER_USER_GROUP_NAME)
    repo.txCommit()
   
    repo = test_helper.GetRepo(tester)
    test = repo.fetchResource('test')
    tester.compare(test.getOwner().getName(),AclConstants.SUPER_USER_GROUP_NAME)

    repo.txRollback()

    tester.testDone()


def Test(tester):

    init(tester)
    test_acl_interfaces(tester)
    test_change_owner(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.003 ]--