PageRenderTime 51ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/ri-clients/jbi-admin-cli/regress/jbi-admin-cli00022.ksh

https://bitbucket.org/rsaqc/openesb-core
Korn Shell | 81 lines | 26 code | 13 blank | 42 comment | 0 complexity | 9ef77fccb7ccc47d2dcace94ca8cc761 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. # @(#)jbi-admin-cli00001.ksh
  25. # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. #----------------------------------------------------------------------------------
  30. # Perform any necessary cleanup to restore the repository back to its initial state.
  31. #----------------------------------------------------------------------------------
  32. test_cleanup()
  33. {
  34. cleanup server
  35. }
  36. #----------------------------------------------------------------------------------
  37. # Main function called that will run the test
  38. #----------------------------------------------------------------------------------
  39. run_test()
  40. {
  41. initilize_test
  42. #build_test_application_artifacts
  43. #test_cleanup
  44. #--------------------------------------------------------------------------------
  45. # Make sure http binding component is started. (output redirected to TEMP file)
  46. #--------------------------------------------------------------------------------
  47. start_component server sun-http-binding
  48. echo ""
  49. echo "-------------------------------------------------------------------"
  50. echo " Negative Set Component Logger - Invalid logger level"
  51. echo "-------------------------------------------------------------------"
  52. echo "set-jbi-component-logger --component=sun-http-binding sun-http-binding.com.sun.jbi.httpsoapbc.HttpNormalizer=fred"
  53. $AS8BASE/bin/asadmin set-jbi-component-logger --component=sun-http-binding --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS sun-http-binding.com.sun.jbi.httpsoapbc.HttpNormalizer=fred
  54. echo ""
  55. echo "-------------------------------------------------------------------"
  56. echo " Negative Set Component Logger - Invalid logger level"
  57. echo "-------------------------------------------------------------------"
  58. echo "set-jbi-component-logger --component=sun-http-binding sun-http-binding.com.sun.jbi.httpsoapbc.HttpNormalizer.fred=FINE"
  59. $AS8BASE/bin/asadmin set-jbi-component-logger --component=sun-http-binding --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS sun-http-binding.com.sun.jbi.httpsoapbc.HttpNormalizer.fred=FINE
  60. }
  61. #----------------------------------------------------------------------------------
  62. # Perform the regression setup and call the function that will run the test
  63. #----------------------------------------------------------------------------------
  64. TEST_NAME="jbi-admin-cli00022"
  65. TEST_DESCRIPTION="Negative Component loggers and configuration tests"
  66. . ./regress_defs.ksh
  67. run_test
  68. exit 0