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

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

https://bitbucket.org/rsaqc/openesb-core
Korn Shell | 98 lines | 45 code | 15 blank | 38 comment | 0 complexity | 7d7951a86834c6390238e6350560a10b 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. # Perform any necessary cleanup to restore the repository back to its initial state.
  31. #----------------------------------------------------------------------------------
  32. test_cleanup()
  33. {
  34. cleanup server
  35. }
  36. #----------------------------------------------------------------------------------
  37. # Main function called that will run the test
  38. #----------------------------------------------------------------------------------
  39. run_test()
  40. {
  41. initilize_test
  42. #test_cleanup
  43. echo ""
  44. echo "-------------------------------------------------------------------"
  45. echo " Verify the jbi application sa1.jar"
  46. echo "-------------------------------------------------------------------"
  47. echo "verify-jbi-application-environment sa1.jar"
  48. $AS8BASE/bin/asadmin verify-jbi-application-environment --templatedir=${JV_SVC_BLD}/regress/testdata/tmp --includedeploy --target server --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/sa1.jar
  49. echo ""
  50. echo "-------------------------------------------------------------------"
  51. echo " Verify the jbi application ping-sa.jar"
  52. echo "-------------------------------------------------------------------"
  53. echo "verify-jbi-application-environment sa1.jar"
  54. $AS8BASE/bin/asadmin verify-jbi-application-environment --templatedir=${JV_SVC_BLD}/regress/testdata/tmp --includedeploy --target server --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/ping-sa.jar
  55. echo ""
  56. echo "-------------------------------------------------------------------"
  57. echo " Verify the jbi application javaee-sa.jar"
  58. echo "-------------------------------------------------------------------"
  59. echo "verify-jbi-application-environment javaee.jar"
  60. $AS8BASE/bin/asadmin verify-jbi-application-environment --templatedir=${JV_SVC_BLD}/regress/testdata/tmp --includedeploy --target server --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/javaee-sa.jar
  61. echo ""
  62. echo "-------------------------------------------------------------------"
  63. echo " Install test components test-component and test-component1"
  64. echo "-------------------------------------------------------------------"
  65. echo "install-jbi-component test-component.jar"
  66. echo "install-jbi-component test-component1.jar"
  67. $AS8BASE/bin/asadmin install-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/test-component.jar
  68. $AS8BASE/bin/asadmin install-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/test-component1.jar
  69. echo ""
  70. echo "-------------------------------------------------------------------"
  71. echo " Verify the jbi application test-sa.jar"
  72. echo "-------------------------------------------------------------------"
  73. echo "verify-jbi-application-environment test-sa.jar"
  74. $AS8BASE/bin/asadmin verify-jbi-application-environment --templatedir=${JV_SVC_BLD}/regress/testdata/tmp --includedeploy --target server --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/test-sa.jar
  75. }
  76. #----------------------------------------------------------------------------------
  77. # Perform the regression setup and call the function that will run the test
  78. #----------------------------------------------------------------------------------
  79. TEST_NAME="jbi-admin-cli00012"
  80. TEST_DESCRIPTION="Test Verify Command"
  81. . ./regress_defs.ksh
  82. run_test
  83. exit 0