/runtime/ui/regress/runtime-ui-00004.ksh
Korn Shell | 109 lines | 54 code | 21 blank | 34 comment | 0 complexity | 95b182b62694d568046e801ba72fb8bc MD5 | raw file
- #!/bin/sh
- #
- # BEGIN_HEADER - DO NOT EDIT
- #
- # The contents of this file are subject to the terms
- # of the Common Development and Distribution License
- # (the "License"). You may not use this file except
- # in compliance with the License.
- #
- # You can obtain a copy of the license at
- # https://open-esb.dev.java.net/public/CDDLv1.0.html.
- # See the License for the specific language governing
- # permissions and limitations under the License.
- #
- # When distributing Covered Code, include this CDDL
- # HEADER in each file and include the License file at
- # https://open-esb.dev.java.net/public/CDDLv1.0.html.
- # If applicable add the following below this CDDL HEADER,
- # with the fields enclosed by brackets "[]" replaced with
- # your own identifying information: Portions Copyright
- # [year] [name of copyright owner]
- #
- #
- # @(#)runtime-ui-00004.ksh
- # Copyright 2004-2008 Sun Microsystems, Inc. All Rights Reserved.
- #
- # END_HEADER - DO NOT EDIT
- #
- ####
- # Export Application Environment Test
- # A SA is deployed and is environment is exported
- ####
- echo "runtime-ui-00004 : Test Verifier."
- . ./regress_defs.ksh
- # start the framework
- start_jbise -Dcom.sun.jbi.registry.readonly=true &
- testDelay 5
- echo prepare the artifacts
- ant -q -emacs $JBISE_PROPS -lib "$REGRESS_CLASSPATH" -f runtime-ui-00003.xml
- ant -q -emacs $JBISE_PROPS -lib "$REGRESS_CLASSPATH" -f runtime-ui-00004.xml
- echo install the components
- $JBISE_ANT -Djbi.install.file=$JV_SVC_TEST_CLASSES/dist/test-component.jar install-component
- $JBISE_ANT -Djbi.install.file=$JV_SVC_TEST_CLASSES/dist/test-component1.jar install-component
- echo start the components
- $JBISE_ANT -Djbi.component.name=test-component start-component
- $JBISE_ANT -Djbi.component.name=test-component1 start-component
- echo set some application variables
- $JBISE_ANT -Djbi.component.name=test-component -Djbi.app.variables.file=$JV_SVC_TEST_CLASSES/testdata/test-component-app-var.properties create-application-variable
- $JBISE_ANT -Djbi.component.name=test-component1 -Djbi.app.variables.file=$JV_SVC_TEST_CLASSES/testdata/test-component1-app-var.properties create-application-variable
- echo set some application configurations
- $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
- $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
- $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
- echo deploy the SA with WSDL 1.1
- $JBISE_ANT -Djbi.deploy.file=$JV_SVC_TEST_CLASSES/dist/test-sa.jar deploy-service-assembly
- echo export the environment
- $JBI_ANT -q -emacs $JBISE_PROPS -Djbi.service.assembly.name=SA1 -Djbi.config.dir="$JV_SVC_BLD/config" export-application-environment
- echo dump the templates and scripts generated by verifier
- cat $SVC_BLD/config/test-component-app-var.properties
- cat $SVC_BLD/config/test-component1-app-var.properties
- cat $SVC_BLD/config/test-component-MyAppConfig1.properties
- cat $SVC_BLD/config/test-component-MyAppConfig2.properties
- cat $SVC_BLD/config/test-component1-MyAppConfig3.properties
- echo
- echo deploy the SA with WSDL 2.0
- $JBISE_ANT -Djbi.deploy.file=$JV_SVC_TEST_CLASSES/dist/test-sa-wsdl20.jar deploy-service-assembly
- echo export the environment
- $JBI_ANT -q -emacs $JBISE_PROPS -Djbi.service.assembly.name=SA1-wsdl20 -Djbi.config.dir="$JV_SVC_BLD/config20" export-application-environment
- echo dump the templates and scripts generated by verifier
- cat $SVC_BLD/config20/test-component-app-var.properties
- cat $SVC_BLD/config20/test-component1-app-var.properties
- cat $SVC_BLD/config20/test-component-MyAppConfig1.properties
- cat $SVC_BLD/config20/test-component-MyAppConfig2.properties
- cat $SVC_BLD/config20/test-component1-MyAppConfig3.properties
- echo undeploy the SA
- $JBISE_ANT -Djbi.service.assembly.name=SA1 undeploy-service-assembly
- echo undeploy the SA with WSDL 2.0
- $JBISE_ANT -Djbi.service.assembly.name=SA1-wsdl20 undeploy-service-assembly
- echo uninstall the components
- $JBISE_ANT -Djbi.component.name=test-component shut-down-component
- $JBISE_ANT -Djbi.component.name=test-component1 shut-down-component
- $JBISE_ANT -Djbi.component.name=test-component uninstall-component
- $JBISE_ANT -Djbi.component.name=test-component1 uninstall-component
- cd ..
- rm -rf $SVC_BLD/config
- # stop the JBI framework
- shutdown_jbise
- testDelay 1