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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations