PageRenderTime 60ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/runtime/esb-manage/regress/jbiadmin01255.ksh

https://bitbucket.org/rsaqc/openesb-core
Korn Shell | 82 lines | 34 code | 11 blank | 37 comment | 0 complexity | bc925f69ef30a2f9d29b715396385d7d 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. # @(#)jbiadmin01255.ksh
  25. # Copyright 2004-2008 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. ####
  30. #### NOTE: depends on jbiadmin01200.ksh
  31. ####
  32. ####
  33. #jbiadmin01255 - Test fix for 6536737 - Sync. in clustered instance
  34. #this test covers the use case of adding a new instance to a cluster with existing deployments
  35. #start/stop operations are performed after the new instance is added and started and verified that
  36. #the service units were synchronized to the new instance.
  37. ####
  38. echo testname is jbiadmin01255
  39. . ./regress_defs.ksh
  40. asadmin create-cluster --port $ASADMIN_PORT --user $AS_ADMIN_USER $ASADMIN_PW_OPTS testcluster1 1>&2
  41. createClusterDelay
  42. asadmin create-instance --port $ASADMIN_PORT --user $AS_ADMIN_USER $ASADMIN_PW_OPTS --cluster testcluster1 --nodeagent agent1 testins1 1>&2
  43. createInstanceDelay
  44. asadmin start-instance --port $ASADMIN_PORT -u $AS_ADMIN_USER $ASADMIN_PW_OPTS testins1 1>&2
  45. startInstanceDelay
  46. asadmin install-jbi-component -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --target=testcluster1 --port $ASADMIN_PORT $JV_JBI_HOME/components/sun-http-binding/httpbc.jar 2>&1
  47. installComponentDelay
  48. asadmin deploy-jbi-service-assembly -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT --target=testcluster1 $JV_SVC_TEST_CLASSES/dist/system-comps-sa.jar 2>&1
  49. deploySaDelay
  50. asadmin start-jbi-service-assembly -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT --target=testcluster1 system-comps-sa 2>&1
  51. startSaDelay
  52. asadmin stop-jbi-service-assembly -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT --target=testcluster1 system-comps-sa 2>&1
  53. stopSaDelay
  54. asadmin create-instance --port $ASADMIN_PORT --user $AS_ADMIN_USER $ASADMIN_PW_OPTS --cluster testcluster1 --nodeagent agent1 testins2 1>&2
  55. createInstanceDelay
  56. asadmin start-instance --port $ASADMIN_PORT -u $AS_ADMIN_USER $ASADMIN_PW_OPTS testins2 1>&2
  57. startInstanceDelay
  58. asadmin start-jbi-service-assembly -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT --target=testcluster1 system-comps-sa 2>&1
  59. startSaDelay
  60. asadmin stop-jbi-service-assembly -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT --target=testcluster1 system-comps-sa 2>&1
  61. stopSaDelay
  62. asadmin stop-instance --port $ASADMIN_PORT -u $AS_ADMIN_USER $ASADMIN_PW_OPTS testins1 1>&2
  63. stopInstanceDelay
  64. asadmin stop-instance --port $ASADMIN_PORT -u $AS_ADMIN_USER $ASADMIN_PW_OPTS testins2 1>&2
  65. stopInstanceDelay
  66. asadmin delete-instance --port $ASADMIN_PORT -u $AS_ADMIN_USER $ASADMIN_PW_OPTS testins1 1>&2
  67. deleteInstanceDelay
  68. asadmin delete-instance --port $ASADMIN_PORT -u $AS_ADMIN_USER $ASADMIN_PW_OPTS testins2 1>&2
  69. deleteInstanceDelay
  70. asadmin delete-cluster --port $ASADMIN_PORT -u $AS_ADMIN_USER $ASADMIN_PW_OPTS testcluster1 1>&2
  71. deleteClusterDelay