Hi

Test module[1] is introduced to implement the automated test case for Java
Security Manager for AS and two test classes(JavaSecurityManagerTestCase,
JavaSecurityManagerPolicyTestCase) already implemented and covered the
following scenarios for the super admin and a tenant admin.

Test module starts an AS server with signed jar files(plugins, patches, lib
and bin) and web application is used to check the operation security with
and without policy file. Same test class will be executed as the super
admin and tenant admin using Factory annotation.

We can improve the test module further by adding the more test cases
related to Java Security Manager and cover the all security scenarios.


@SanjeewaM

Thanks SanjeewaM for sharing the web application which can be used to
verify operations security.

[1]
https://github.com/wso2/product-as/tree/master/modules/integration/tests-integration/tests-security-manager



*Test method*


*getServerConfigurationSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: calling ServerConfiguration.getInstance()

*getServerConfigurationSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: calling ServerConfiguration.getInstance()

*getServerConfigurationSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: calling ServerConfiguration.getInstance()

*getServerConfigurationSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: calling ServerConfiguration.getInstance()


*testAccessingFilePathFromCarbonUtilsSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: reading axis2 file path from carbon using CarbonUtils

*testAccessingFilePathFromCarbonUtilsSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: reading axis2 file path from carbon using CarbonUtils

*testAccessingFilePathFromCarbonUtilsSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: reading axis2 file path from carbon using CarbonUtils

*testAccessingFilePathFromCarbonUtilsSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: reading axis2 file path from carbon using CarbonUtils

*testAccessingFileUnderConfDirSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Accessing user-mgt.xml test

*testAccessingFileUnderConfDirSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Accessing user-mgt.xml test

*testAccessingFileUnderConfDirSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Accessing user-mgt.xml test

*testAccessingFileUnderConfDirSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Accessing user-mgt.xml test

*testCopyFileToCarbonHomeSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Copping file to carbon home

*testCopyFileToCarbonHomeSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Copping file to carbon home

*testCopyFileToCarbonHomeSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Copping file to carbon home

*testCopyFileToCarbonHomeSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Copping file to carbon home

*testDeleteFileFromServerSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Deleting File From Server

*testDeleteFileFromServerSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Deleting File From Server

*testDeleteFileFromServerSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Deleting File From Server

*testDeleteFileFromServerSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Deleting File From Server

*testGetRegistryDBConfigSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Accessing registry database configurations test

*testGetRegistryDBConfigSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Accessing registry database configurations test

*testGetUserManagerDBConfigSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Accessing user management database configurations

*testGetUserManagerDBConfigSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Accessing user management database configurations

*testGettingSystemPropertySecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Accessing System Properties

*testGettingSystemPropertySecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Accessing System Properties

*testGettingSystemPropertySecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Accessing System Properties

*testGettingSystemPropertySecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Accessing System Properties

*testWritingFileUnderConfDirSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Creating a file on the server

*testWritingFileUnderConfDirSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerTestCase
Test method: Creating a file on the server

*testWritingFileUnderConfDirSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Creating a file on the server

*testWritingFileUnderConfDirSecurity*
Test class:
org.wso2.carbon.appserver.integration.test.server.security.manager.JavaSecurityManagerPolicyTestCase
Test method: Creating a file on the server


Thanks,
Nuwanw
-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to