Search in sources :

Example 1 with RemotingPermission

use of org.jboss.remoting3.security.RemotingPermission in project wildfly by wildfly.

the class ServerInterceptorsTestCase method deploy.

@Deployment
public static Archive<?> deploy() {
    JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "test-server-interceptor.jar");
    jar.addPackage(ServerInterceptorsTestCase.class.getPackage());
    jar.addPackage(AbstractServerInterceptorsSetupTask.class.getPackage());
    jar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client," + "org.jboss.dmr," + "org.jboss.remoting\n"), "MANIFEST.MF");
    jar.addAsManifestResource(createPermissionsXmlAsset(new RemotingPermission("connect"), new RemotingPermission("createEndpoint"), new FilePermission(System.getProperty("jboss.inst") + "/standalone/tmp/auth/*", "read")), "permissions.xml");
    return jar;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) AbstractServerInterceptorsSetupTask(org.jboss.as.test.shared.integration.ejb.interceptor.serverside.AbstractServerInterceptorsSetupTask) RemotingPermission(org.jboss.remoting3.security.RemotingPermission) FilePermission(java.io.FilePermission) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 2 with RemotingPermission

use of org.jboss.remoting3.security.RemotingPermission in project wildfly by wildfly.

the class DatasourceSetTxQueryTimeoutTestCase method getDeployment.

@Deployment
public static Archive<?> getDeployment() {
    JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "dummy.jar");
    jar.addClasses(DatasourceSetTxQueryTimeoutTestCase.class, Datasource.class, JcaMgmtBase.class, ContainerResourceMgmtTestBase.class, AbstractMgmtTestBase.class, JcaMgmtServerSetupTask.class);
    jar.addAsManifestResource(new StringAsset("Dependencies: javax.inject.api,org.jboss.as.connector," + "org.jboss.staxmapper,  " + "org.jboss.ironjacamar.impl, " + "org.jboss.ironjacamar.jdbcadapters\n"), "MANIFEST.MF");
    jar.addAsManifestResource(createPermissionsXmlAsset(new RemotingPermission("createEndpoint"), new RemotingPermission("connect"), new FilePermission(System.getProperty("jboss.inst") + "/standalone/tmp/auth/*", "read")), "permissions.xml");
    return jar;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) RemotingPermission(org.jboss.remoting3.security.RemotingPermission) FilePermission(java.io.FilePermission) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 3 with RemotingPermission

use of org.jboss.remoting3.security.RemotingPermission in project wildfly by wildfly.

the class TimerServiceSuspendTestCase method deploy.

@Deployment
public static Archive<?> deploy() {
    final WebArchive war = ShrinkWrap.create(WebArchive.class, "testTimerServiceSimple.war");
    war.addPackage(TimerServiceSuspendTestCase.class.getPackage());
    war.addAsManifestResource(new StringAsset("Dependencies: org.jboss.dmr, org.jboss.as.controller-client, org.jboss.remoting\n"), "MANIFEST.MF");
    war.addAsManifestResource(createPermissionsXmlAsset(new RemotingPermission("createEndpoint"), new RemotingPermission("connect"), new FilePermission(System.getProperty("jboss.inst") + "/standalone/tmp/auth/*", "read")), "permissions.xml");
    return war;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) RemotingPermission(org.jboss.remoting3.security.RemotingPermission) FilePermission(java.io.FilePermission) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 4 with RemotingPermission

use of org.jboss.remoting3.security.RemotingPermission in project wildfly by wildfly.

the class URLBindingTestCase method deploy.

@Deployment
public static Archive<?> deploy() {
    final String tempDir = TestSuiteEnvironment.getTmpDir();
    JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "URLBindingTestCaseBean.jar");
    jar.addClasses(URLBindingTestCase.class, BindingLookupBean.class);
    jar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller, org.jboss.remoting\n"), "MANIFEST.MF");
    jar.addAsManifestResource(createPermissionsXmlAsset(new RemotingPermission("createEndpoint"), new RemotingPermission("connect"), new FilePermission(tempDir + "/-", "read")), "jboss-permissions.xml");
    return jar;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) RemotingPermission(org.jboss.remoting3.security.RemotingPermission) FilePermission(java.io.FilePermission) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 5 with RemotingPermission

use of org.jboss.remoting3.security.RemotingPermission in project wildfly by wildfly.

the class EEConcurrencySuspendTestCase method deployment.

@Deployment
public static WebArchive deployment() {
    WebArchive war = ShrinkWrap.create(WebArchive.class, "ee-suspend.war");
    war.addPackage(EEConcurrencySuspendTestCase.class.getPackage());
    war.addPackage(HttpRequest.class.getPackage());
    war.addClass(TestSuiteEnvironment.class);
    war.addAsResource(new StringAsset("Dependencies: org.jboss.dmr, org.jboss.as.controller, org.jboss.remoting \n"), "META-INF/MANIFEST.MF");
    war.addAsManifestResource(createPermissionsXmlAsset(new RuntimePermission("modifyThread"), new PropertyPermission("management.address", "read"), new PropertyPermission("node0", "read"), new PropertyPermission("jboss.http.port", "read"), new RemotingPermission("createEndpoint"), new RemotingPermission("connect"), new FilePermission(System.getProperty("jboss.inst") + "/standalone/tmp/auth/*", "read"), new SocketPermission(TestSuiteEnvironment.getServerAddress() + ":" + TestSuiteEnvironment.getHttpPort(), "connect,resolve")), "permissions.xml");
    return war;
}
Also used : HttpRequest(org.jboss.as.test.integration.common.HttpRequest) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) PropertyPermission(java.util.PropertyPermission) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) SocketPermission(java.net.SocketPermission) RemotingPermission(org.jboss.remoting3.security.RemotingPermission) FilePermission(java.io.FilePermission) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

FilePermission (java.io.FilePermission)21 Deployment (org.jboss.arquillian.container.test.api.Deployment)21 RemotingPermission (org.jboss.remoting3.security.RemotingPermission)21 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)21 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)18 PropertyPermission (java.util.PropertyPermission)8 ReflectPermission (java.lang.reflect.ReflectPermission)7 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)3 SocketPermission (java.net.SocketPermission)2 HttpRequest (org.jboss.as.test.integration.common.HttpRequest)2 JMSOperations (org.jboss.as.test.integration.common.jms.JMSOperations)2 LazyConnectionFactory (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyConnectionFactory)2 LazyConnectionImpl (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyConnectionImpl)2 LazyLocalTransaction (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyLocalTransaction)2 LazyManagedConnection (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyManagedConnection)2 LazyResourceAdapter (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyResourceAdapter)2 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)2 AbstractServerInterceptorsSetupTask (org.jboss.as.test.shared.integration.ejb.interceptor.serverside.AbstractServerInterceptorsSetupTask)1