PageRenderTime 28ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/ri-clients/jbi-admin-cli/regress/jbi-admin-cli00016.ksh

https://bitbucket.org/rsaqc/openesb-core
Korn Shell | 199 lines | 107 code | 58 blank | 34 comment | 0 complexity | 0553805cb8e5dd1119988cf77e773cf1 MD5 | raw file
  1. #!/bin/sh
  2. #
  3. # BEGIN_HEADER - DO NOT EDIT
  4. #
  5. # The contents of this file are subject to the terms
  6. # of the Common Development and Distribution License
  7. # (the "License"). You may not use this file except
  8. # in compliance with the License.
  9. #
  10. # You can obtain a copy of the license at
  11. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  12. # See the License for the specific language governing
  13. # permissions and limitations under the License.
  14. #
  15. # When distributing Covered Code, include this CDDL
  16. # HEADER in each file and include the License file at
  17. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  18. # If applicable add the following below this CDDL HEADER,
  19. # with the fields enclosed by brackets "[]" replaced with
  20. # your own identifying information: Portions Copyright
  21. # [year] [name of copyright owner]
  22. #
  23. #
  24. # @(#)jbi-admin-cli00001.ksh
  25. # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. #----------------------------------------------------------------------------------
  30. # Main function called that will run the test
  31. #----------------------------------------------------------------------------------
  32. run_test()
  33. {
  34. initilize_test
  35. echo "start-jbi-component sun-http-binding"
  36. $TEST_ASADMIN start-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS sun-http-binding
  37. echo "install-jbi-component fred"
  38. $TEST_ASADMIN install-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  39. echo "install-jbi-shared-library fred"
  40. $TEST_ASADMIN install-jbi-shared-library --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  41. echo "start-jbi-component fred"
  42. $TEST_ASADMIN start-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  43. echo "stop-jbi-component fred"
  44. $TEST_ASADMIN stop-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  45. echo "shut-down-jbi-component fred"
  46. $TEST_ASADMIN shut-down-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  47. echo "uninstall-jbi-component fred"
  48. $TEST_ASADMIN uninstall-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  49. echo "deploy-jbi-service-assembly fred"
  50. $TEST_ASADMIN deploy-jbi-service-assembly --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  51. echo "start-jbi-service-assembly fred"
  52. $TEST_ASADMIN start-jbi-service-assembly --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  53. echo "stop-jbi-service-assembly fred"
  54. $TEST_ASADMIN stop-jbi-service-assembly --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  55. echo "shut-down-jbi-service-assembly fred"
  56. $TEST_ASADMIN shut-down-jbi-service-assembly --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  57. echo "undeploy-jbi-service-assembly fred"
  58. $TEST_ASADMIN undeploy-jbi-service-assembly --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  59. echo "install-jbi-shared-library fred"
  60. $TEST_ASADMIN install-jbi-shared-library --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  61. echo "uninstall-jbi-shared-library fred"
  62. $TEST_ASADMIN uninstall-jbi-shared-library --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  63. echo "list-jbi-service-assemblies --target fred"
  64. $TEST_ASADMIN list-jbi-service-assemblies --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  65. echo "list-jbi-binding-components --target fred"
  66. $TEST_ASADMIN list-jbi-binding-components --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  67. echo "list-jbi-service-engine --target fred"
  68. $TEST_ASADMIN list-jbi-service-engine --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  69. echo "list-jbi-shared-libraries --target fred"
  70. $TEST_ASADMIN list-jbi-shared-libraries --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  71. echo "show-jbi-service-engine fred"
  72. $TEST_ASADMIN show-jbi-service-engine --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  73. echo "show-jbi-binding-component fred"
  74. $TEST_ASADMIN show-jbi-binding-component --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  75. echo "show-jbi-service-assembly fred"
  76. $TEST_ASADMIN show-jbi-service-assembly --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  77. echo "show-jbi-shared-library fred"
  78. $TEST_ASADMIN show-jbi-shared-library --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  79. echo "upgrade-jbi-component fred"
  80. $TEST_ASADMIN upgrade-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS --upgradefile=fred cli_test_engine4 ; echo $?
  81. echo "set-jbi-runtime-logger fred.com.sun.jbi.messaging=WARNING"
  82. $TEST_ASADMIN set-jbi-runtime-logger --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred.com.sun.jbi.messaging=WARNING ; echo $?
  83. echo "set-jbi-component-logger fred=INFO"
  84. $TEST_ASADMIN set-jbi-component-logger --component=sun-http-binding --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred=INFO ; echo $?
  85. echo "set-jbi-component-logger sun-http-binding.com.sun.jbi.httpsoapbc.HttpSoapBindingDeployer=fred"
  86. $TEST_ASADMIN set-jbi-component-logger --component=sun-http-binding --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS sun-http-binding.com.sun.jbi.httpsoapbc.HttpSoapBindingDeployer=fred ; echo $?
  87. echo "set-jbi-runtime-configuration heartBeatInterval-fred=6000"
  88. $TEST_ASADMIN set-jbi-runtime-configuration --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS heartBeatInterval-fred=6000 ; echo $?
  89. echo "set-jbi-component-configuration OutboundThreads=fred"
  90. $TEST_ASADMIN set-jbi-component-configuration --component=sun-http-binding --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS OutboundThreads=fred ; echo $?
  91. echo "set-jbi-component-configuration fred=5"
  92. $TEST_ASADMIN set-jbi-component-configuration --component=sun-http-binding --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred=5 ; echo $?
  93. echo "update-jbi-application-configuration fred"
  94. $TEST_ASADMIN update-jbi-application-configuration --configname=fred --component=sun-http-binding --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  95. echo "update-jbi-application-variable bogusname=5"
  96. $TEST_ASADMIN update-jbi-application-variable --component=sun-http-binding --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred=5 ; echo $?
  97. echo "create-jbi-application-configuration fred"
  98. $TEST_ASADMIN create-jbi-application-configuration --configname=fred --component=sun-http-binding --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  99. echo "create-jbi-application-variable fred"
  100. $TEST_ASADMIN create-jbi-application-variable --component=sun-http-binding --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  101. echo "delete-jbi-application-variable dummy-component FirstName,LastName"
  102. $TEST_ASADMIN delete-jbi-application-variable --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS dummy-component FirstName,LastName ; echo $?
  103. echo "delete-jbi-application-configuration FirstName,LastName"
  104. $TEST_ASADMIN delete-jbi-application-configuration --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS --component=sun-http-binding testConfigBad ; echo $?
  105. echo "list-jbi-application-configurations --component=fred"
  106. $TEST_ASADMIN list-jbi-application-configurations --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS --component=fred ; echo $?
  107. echo "list-jbi-application-variable --component=fred"
  108. $TEST_ASADMIN list-jbi-application-variable --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS --component=fred ; echo $?
  109. echo "show-jbi-runtime-loggers --target fred"
  110. $TEST_ASADMIN show-jbi-runtime-loggers --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  111. echo "show-jbi-runtime-configuration --target fred"
  112. $TEST_ASADMIN show-jbi-runtime-configuration --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  113. echo "show-jbi-application-configuration fred"
  114. $TEST_ASADMIN show-jbi-application-configuration --component=sun-http-binding --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  115. echo "show-jbi-statistics --serviceassembly=fred"
  116. $TEST_ASADMIN show-jbi-statistics --serviceassembly=fred --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  117. echo "show-jbi-statistics --component=fred"
  118. $TEST_ASADMIN show-jbi-statistics --component=fred --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  119. echo "show-jbi-statistics --endpoint=fred"
  120. $TEST_ASADMIN show-jbi-statistics --endpoint=fred --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  121. echo "show-jbi-statistics --framework --target fred"
  122. $TEST_ASADMIN show-jbi-statistics --nmr --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  123. echo "show-jbi-statistics --nmr --target fred"
  124. $TEST_ASADMIN show-jbi-statistics --nmr --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  125. echo "show-jbi-statistics --component=sun-http-binding --target fred"
  126. $TEST_ASADMIN show-jbi-statistics --component=sun-http-binding --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  127. echo "show-jbi-statistics --endpoint=abc --target fred"
  128. $TEST_ASADMIN show-jbi-statistics --endpoint=abc --port $ADMIN_PORT --target fred --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  129. echo "show-jbi-statistics --serviceassembly=PingApp --target fred"
  130. $TEST_ASADMIN show-jbi-statistics --serviceassembly=fred --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS ; echo $?
  131. echo "export-jbi-application-environment fred"
  132. $TEST_ASADMIN export-jbi-application-environment --configdir=xyz --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS fred ; echo $?
  133. }
  134. #----------------------------------------------------------------------------------
  135. # Perform the regression setup and call the function that will run the test
  136. #----------------------------------------------------------------------------------
  137. TEST_NAME="jbi-admin-cli00016"
  138. TEST_DESCRIPTION="Test exit code"
  139. . ./regress_defs.ksh
  140. run_test
  141. exit 0