MCPcopy Create free account
hub / github.com/baidu/openrasp / AppTest

Class AppTest

rasp-install/java/src/test/java/AppTest.java:13–264  ·  view source on GitHub ↗

@author: anyang @create: 2019/03/25 14:13

Source from the content-addressed store, hash-verified

11 * @create: 2019/03/25 14:13
12 */
13public class AppTest {
14
15 @Test
16 public void testMain() {
17 try {
18 String[] installTomcat = {"-install", "/Users/anyang/Desktop/jacoco/sum/apache-tomcat-8.5.30/",
19 "-appid", "9b3554a97673f1f8f5c929310298037a660d3b7a",
20 "-appsecret", "Lng_oIYW-cf2OZUBSywxY6UnBqRizF0cTg9HGi2VVeE",
21 "-backendurl", "http://scloud.baidu.com:8087"};
22 App.operateServer(installTomcat);
23 } catch (Exception e) {
24 //
25 }
26
27 try {
28 String[] installBackup = {"-install", "/Users/anyang/Desktop/jacoco/sum/apache-tomcat-8.5.30/",
29 "-appid", "9b3554a97673f1f8f5c929310298037a660d3b7a",
30 "-appsecret", "Lng_oIYW-cf2OZUBSywxY6UnBqRizF0cTg9HGi2VVeE",
31 "-backendurl", "http://scloud.baidu.com:8087",
32 "-keepconf", "true"};
33 App.operateServer(installBackup);
34 } catch (Exception e) {
35 //
36 }
37 try {
38 String[] uninstallTomcat = {"-uninstall", "/Users/anyang/Desktop/jacoco/sum/apache-tomcat-8.5.30/"};
39 App.operateServer(uninstallTomcat);
40 } catch (Exception e) {
41 //
42 }
43 try {
44 String[] installJboss = {"-install", "/Users/anyang/Desktop/jacoco/sum/jboss-5.0.1.GA/",
45 "-appid", "9b3554a97673f1f8f5c929310298037a660d3b7a",
46 "-appsecret", "Lng_oIYW-cf2OZUBSywxY6UnBqRizF0cTg9HGi2VVeE",
47 "-backendurl", "http://scloud.baidu.com:8087"};
48 App.operateServer(installJboss);
49 } catch (Exception e) {
50 //
51 }
52 try {
53 String[] uninstallJboss = {"-uninstall", "/Users/anyang/Desktop/jacoco/sum/jboss-5.0.1.GA/"};
54 App.operateServer(uninstallJboss);
55 } catch (Exception e) {
56 //
57 }
58 try {
59 String[] installResin4 = {"-install", "/Users/anyang/Desktop/jacoco/sum/resin-4.0.56/",
60 "-appid", "9b3554a97673f1f8f5c929310298037a660d3b7a",
61 "-appsecret", "Lng_oIYW-cf2OZUBSywxY6UnBqRizF0cTg9HGi2VVeE",
62 "-backendurl", "http://scloud.baidu.com:8087"};
63 App.operateServer(installResin4);
64 } catch (Exception e) {
65 //
66 }
67 try {
68 String[] uninstallResin4 = {"-uninstall", "/Users/anyang/Desktop/jacoco/sum/resin-4.0.56/"};
69 App.operateServer(uninstallResin4);
70 } catch (Exception e) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected