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

/ri-clients/jbi-ant-tasks/regress/ui00011.ksh

https://bitbucket.org/rsaqc/openesb-core
Korn Shell | 111 lines | 44 code | 23 blank | 44 comment | 0 complexity | 793175b28e05781c0436bd6aa2133d20 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. # @(#)ui00010.ksh
  25. # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. # regress setup
  30. . ./regress_defs.ksh
  31. #
  32. # test runtime and components
  33. #
  34. test_configuration_tasks()
  35. {
  36. $JBI_ANT list-runtime-configuration
  37. $JBI_ANT -Djbi.component.name="sun-http-binding" list-component-configuration
  38. ### set and list configuration for runtime. ###############################
  39. $JBI_ANT -Djbi.config.params.file=$JV_SVC_REGRESS/jbi-config-params.properties set-runtime-configuration
  40. $JBI_ANT list-runtime-configuration
  41. ### set and list configuration for component. ###############################
  42. $JBI_ANT -Djbi.component.name="sun-http-binding" -Djbi.config.params.file=$JV_SVC_REGRESS/httpbc-config-params.properties set-component-configuration
  43. $JBI_ANT -Djbi.component.name="sun-http-binding" list-component-configuration
  44. ### set and list configuration for component for target ant_cluster. ########
  45. $JBI_ANT -Djbi.component.name="sun-http-binding" -Djbi.config.params.file=$JV_SVC_REGRESS/httpbc-config-params.properties -Djbi.target=ant_cluster set-component-configuration
  46. $JBI_ANT -Djbi.component.name="sun-http-binding" -Djbi.target=ant_cluster list-component-configuration
  47. ### set and list configuration for component for target instance13. ########
  48. $JBI_ANT -Djbi.component.name="sun-http-binding" -Djbi.config.params.file=$JV_SVC_REGRESS/httpbc-config-params.properties -Djbi.target=instance13 set-component-configuration
  49. $JBI_ANT -Djbi.component.name="sun-http-binding" -Djbi.target=instance13 list-component-configuration
  50. }
  51. reset_runtime_configuration()
  52. {
  53. ### Reset the configuration back to the default values. ###
  54. $JBI_ANT -Djbi.config.params.file=$JV_SVC_REGRESS/jbi-default-config-params.properties set-runtime-configuration
  55. $JBI_ANT list-runtime-configuration
  56. }
  57. reset_component_configuration()
  58. {
  59. ### Reset the configuration back to the default values. ###
  60. $JBI_ANT -Djbi.config.params.file=$JV_SVC_REGRESS/jbi-default-httpbc-config-params.properties -Djbi.component.name=sun-http-binding set-component-configuration
  61. $JBI_ANT -Djbi.component.name=sun-http-binding list-component-configuration
  62. $JBI_ANT -Djbi.config.params.file=$JV_SVC_REGRESS/jbi-default-httpbc-config-params.properties -Djbi.component.name=sun-http-binding -Djbi.target=ant_cluster set-component-configuration
  63. $JBI_ANT -Djbi.component.name=sun-http-binding -Djbi.target=ant_cluster list-component-configuration
  64. $JBI_ANT -Djbi.config.params.file=$JV_SVC_REGRESS/jbi-default-httpbc-config-params.properties -Djbi.component.name=sun-http-binding -Djbi.target=instance13 set-component-configuration
  65. $JBI_ANT -Djbi.component.name=sun-http-binding -Djbi.target=instance13 list-component-configuration
  66. }
  67. run_test()
  68. {
  69. build_test_artifacts
  70. $JBI_ANT -Djbi.component.name="sun-http-binding" start-component
  71. $JBI_ANT -Djbi.component.name="sun-http-binding" -Djbi.target=ant_cluster start-component
  72. $JBI_ANT -Djbi.component.name="sun-http-binding" -Djbi.target=instance13 start-component
  73. sleep 10
  74. test_configuration_tasks
  75. # always reset the runtime configuration (sp the timeouts since these affect other tests )
  76. reset_runtime_configuration
  77. reset_component_configuration
  78. $JBI_ANT -Djbi.component.name="sun-http-binding" stop-component
  79. $JBI_ANT -Djbi.component.name="sun-http-binding" -Djbi.target=ant_cluster stop-component
  80. $JBI_ANT -Djbi.component.name="sun-http-binding" -Djbi.target=instance13 stop-component
  81. }
  82. ################## MAIN ##################
  83. ####
  84. # Execute the test
  85. ####
  86. #this is to correct for differences in ant behavior from version 1.5->1.6. RT 6/18/05
  87. run_test
  88. exit 0