PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/runtime/ui/regress/runtime-ui-00004.ksh

https://bitbucket.org/openesb/openesb-core
Korn Shell | 109 lines | 54 code | 21 blank | 34 comment | 0 complexity | 95b182b62694d568046e801ba72fb8bc 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. # @(#)runtime-ui-00004.ksh
  25. # Copyright 2004-2008 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. ####
  30. # Export Application Environment Test
  31. # A SA is deployed and is environment is exported
  32. ####
  33. echo "runtime-ui-00004 : Test Verifier."
  34. . ./regress_defs.ksh
  35. # start the framework
  36. start_jbise -Dcom.sun.jbi.registry.readonly=true &
  37. testDelay 5
  38. echo prepare the artifacts
  39. ant -q -emacs $JBISE_PROPS -lib "$REGRESS_CLASSPATH" -f runtime-ui-00003.xml
  40. ant -q -emacs $JBISE_PROPS -lib "$REGRESS_CLASSPATH" -f runtime-ui-00004.xml
  41. echo install the components
  42. $JBISE_ANT -Djbi.install.file=$JV_SVC_TEST_CLASSES/dist/test-component.jar install-component
  43. $JBISE_ANT -Djbi.install.file=$JV_SVC_TEST_CLASSES/dist/test-component1.jar install-component
  44. echo start the components
  45. $JBISE_ANT -Djbi.component.name=test-component start-component
  46. $JBISE_ANT -Djbi.component.name=test-component1 start-component
  47. echo set some application variables
  48. $JBISE_ANT -Djbi.component.name=test-component -Djbi.app.variables.file=$JV_SVC_TEST_CLASSES/testdata/test-component-app-var.properties create-application-variable
  49. $JBISE_ANT -Djbi.component.name=test-component1 -Djbi.app.variables.file=$JV_SVC_TEST_CLASSES/testdata/test-component1-app-var.properties create-application-variable
  50. echo set some application configurations
  51. $JBISE_ANT -Djbi.component.name=test-component -Djbi.app.config.params.file=$JV_SVC_TEST_CLASSES/testdata/test-component-app-config1.properties -Djbi.app.config.name=MyAppConfig1 create-application-configuration
  52. $JBISE_ANT -Djbi.component.name=test-component -Djbi.app.config.params.file=$JV_SVC_TEST_CLASSES/testdata/test-component-app-config2.properties -Djbi.app.config.name=MyAppConfig2 create-application-configuration
  53. $JBISE_ANT -Djbi.component.name=test-component1 -Djbi.app.config.params.file=$JV_SVC_TEST_CLASSES/testdata/test-component1-app-config3.properties -Djbi.app.config.name=MyAppConfig3 create-application-configuration
  54. echo deploy the SA with WSDL 1.1
  55. $JBISE_ANT -Djbi.deploy.file=$JV_SVC_TEST_CLASSES/dist/test-sa.jar deploy-service-assembly
  56. echo export the environment
  57. $JBI_ANT -q -emacs $JBISE_PROPS -Djbi.service.assembly.name=SA1 -Djbi.config.dir="$JV_SVC_BLD/config" export-application-environment
  58. echo dump the templates and scripts generated by verifier
  59. cat $SVC_BLD/config/test-component-app-var.properties
  60. cat $SVC_BLD/config/test-component1-app-var.properties
  61. cat $SVC_BLD/config/test-component-MyAppConfig1.properties
  62. cat $SVC_BLD/config/test-component-MyAppConfig2.properties
  63. cat $SVC_BLD/config/test-component1-MyAppConfig3.properties
  64. echo
  65. echo deploy the SA with WSDL 2.0
  66. $JBISE_ANT -Djbi.deploy.file=$JV_SVC_TEST_CLASSES/dist/test-sa-wsdl20.jar deploy-service-assembly
  67. echo export the environment
  68. $JBI_ANT -q -emacs $JBISE_PROPS -Djbi.service.assembly.name=SA1-wsdl20 -Djbi.config.dir="$JV_SVC_BLD/config20" export-application-environment
  69. echo dump the templates and scripts generated by verifier
  70. cat $SVC_BLD/config20/test-component-app-var.properties
  71. cat $SVC_BLD/config20/test-component1-app-var.properties
  72. cat $SVC_BLD/config20/test-component-MyAppConfig1.properties
  73. cat $SVC_BLD/config20/test-component-MyAppConfig2.properties
  74. cat $SVC_BLD/config20/test-component1-MyAppConfig3.properties
  75. echo undeploy the SA
  76. $JBISE_ANT -Djbi.service.assembly.name=SA1 undeploy-service-assembly
  77. echo undeploy the SA with WSDL 2.0
  78. $JBISE_ANT -Djbi.service.assembly.name=SA1-wsdl20 undeploy-service-assembly
  79. echo uninstall the components
  80. $JBISE_ANT -Djbi.component.name=test-component shut-down-component
  81. $JBISE_ANT -Djbi.component.name=test-component1 shut-down-component
  82. $JBISE_ANT -Djbi.component.name=test-component uninstall-component
  83. $JBISE_ANT -Djbi.component.name=test-component1 uninstall-component
  84. cd ..
  85. rm -rf $SVC_BLD/config
  86. # stop the JBI framework
  87. shutdown_jbise
  88. testDelay 1