/ri-clients/jbi-ant-tasks/regress/ui00006.ksh
https://bitbucket.org/ldassonville/openesb-core · Korn Shell · 135 lines · 53 code · 28 blank · 54 comment · 0 complexity · 12d6ad4fa6ed33ed2d6100a0a2ec0bcd 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]
- #
- #
- # @(#)ui00006.ksh
- # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
- #
- # END_HEADER - DO NOT EDIT
- #
- #regress setup
- . ./regress_defs.ksh
- JBI_ANT="$JBI_ANT -Djbi.task.fail.on.error=false"
- echo $JBI_ANT
- #
- # test components
- #
- test_install_deploy_from_domain()
- {
- ### list all objects. all lists should be empty ###############################
- $JBI_ANT list-shared-libraries
- $JBI_ANT list-service-engines
- $JBI_ANT list-binding-components
- $JBI_ANT list-service-assemblies
- ### install components/slibs to doamin #########################################
- $JBI_ANT -Djbi.install.file=$UI_REGRESS_DIST_DIR/ant-test-sns1.jar -Djbi.target=domain install-shared-library
- $JBI_ANT -Djbi.install.file=$UI_REGRESS_DIST_DIR/ant-test-binding1.jar -Djbi.target=domain install-component
- $JBI_ANT -Djbi.install.file=$UI_REGRESS_DIST_DIR/ant-test-engine1.jar -Djbi.target=domain install-component
- ### deploy service assembly to doamin #########################################
- $JBI_ANT -Djbi.deploy.file=$UI_REGRESS_DIST_DIR/ant-test-au1.zip -Djbi.target=domain deploy-service-assembly
- ### list components should be in unknown state. ###############################
- $JBI_ANT -Djbi.target=domain list-shared-libraries
- $JBI_ANT -Djbi.target=domain list-service-engines
- $JBI_ANT -Djbi.target=domain list-binding-components
- $JBI_ANT -Djbi.target=domain list-service-assemblies
- ### install components/slibs from domain to server##############################
- $JBI_ANT -Djbi.shared.library.name="ant_test_sns1" -Djbi.target=server install-shared-library
- $JBI_ANT -Djbi.component.name="ant_test_binding1" -Djbi.target=server install-component
- $JBI_ANT -Djbi.component.name="ant_test_engine1" -Djbi.target=server install-component
- ### list components should be in shutdown state. ###############################
- $JBI_ANT list-shared-libraries
- $JBI_ANT list-service-engines
- $JBI_ANT list-binding-components
- ### start components ###########################################################
- $JBI_ANT -Djbi.component.name="ant_test_engine1" start-component
- $JBI_ANT -Djbi.component.name="ant_test_binding1" start-component
- ### list components should be in started state. ################################
- $JBI_ANT list-service-engines
- $JBI_ANT list-binding-components
- ### deploy service assembly from domain to server ##############################
- $JBI_ANT -Djbi.service.assembly.name="ant_test_assembly_unit_1" -Djbi.target=server deploy-service-assembly
- ### list service assembly. should be in shutdown state #########################
- $JBI_ANT list-service-assemblies
- ### undeploy service assembly ##################################################
- $JBI_ANT -Djbi.service.assembly.name="ant_test_assembly_unit_1" undeploy-service-assembly
- ### stop component #############################################################
- $JBI_ANT -Djbi.component.name="ant_test_binding1" stop-component
- $JBI_ANT -Djbi.component.name="ant_test_engine1" stop-component
- ### list components should be in stop state. ###################################
- $JBI_ANT list-service-engines
- $JBI_ANT list-binding-components
- ### shutdown component #############################################################
- $JBI_ANT -Djbi.component.name="ant_test_binding1" shut-down-component
- $JBI_ANT -Djbi.component.name="ant_test_engine1" shut-down-component
- ### list components should be in shutdown state. ###############################
- $JBI_ANT list-service-engines
- $JBI_ANT list-binding-components
- ### uninstall components #######################################################
- $JBI_ANT -Djbi.component.name=ant_test_engine1 uninstall-component
- $JBI_ANT -Djbi.component.name=ant_test_binding1 uninstall-component
- $JBI_ANT -Djbi.shared.library.name="ant_test_sns1" uninstall-shared-library
- ### list all objects. all lists should be empty ################################
- $JBI_ANT list-shared-libraries
- $JBI_ANT list-service-engines
- $JBI_ANT list-binding-components
- $JBI_ANT list-service-assemblies
- }
- run_test()
- {
- build_test_artifacts
- test_install_deploy_from_domain
- }
- ################## MAIN ##################
- ####
- # Execute the test
- ####
- #this is to correct for differences in ant behavior from version 1.5->1.6. RT 6/18/05
- run_test | tr -d '\r' | sed -e '/^$/d'
- exit 0