Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-5277

GSH template V2 test not handling GrouperUtil.gshReturn (non-zero?)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 4.10.1
    • None
    • None

    Description

      Set up a gsh template test, setting input values and executing the template. If something is wrong, the v1 template would call GrouperUtil.gshReturn() with a non-zero exit code.

      The V2 test throws a stacktrace, but doesn't output or log anything to tell what happened. May capture exceptions, and show the output lines as far as it got?

      Invalid test in runLogic(): 'testNormalDryRun'
      org.codehaus.groovy.tools.shell.ExitNotification
      at edu.internet2.middleware.grouper.util.GrouperUtil.gshReturn(GrouperUtil.java:15067)
      at edu.internet2.middleware.grouper.util.GrouperUtil$gshReturn$0.call(Unknown Source)
      at MyGshTemplate.fail(Script4.groovy:353)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
      at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(StaticMetaMethodSite.java:131)
      at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:100)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:224)
      at MyGshTemplate.gshRunLogic(Script4.groovy:395)
      at edu.internet2.middleware.grouper.app.gsh.template.GshTemplateV2utils.gshRunTest(GshTemplateV2utils.java:214)
      at edu.internet2.middleware.grouper.app.gsh.template.GshTemplateTestExec.executeTests(GshTemplateTestExec.java:109)
      at edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Template$3.callLogic(UiV2Template.java:964)
      at edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Template$3.callLogic(UiV2Template.java:956)
      at edu.internet2.middleware.grouper.util.GrouperCallable$1.callback(GrouperCallable.java:203)
      at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:1000)
      at edu.internet2.middleware.grouper.util.GrouperCallable.callLogicWithSessionIfExists(GrouperCallable.java:200)
      at edu.internet2.middleware.grouper.util.GrouperCallable.call(GrouperCallable.java:166)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:840)
       
      Error: 1 tests, 1 invalid tests!
      

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chad.redman.3@at.internet2.edu Chad Redman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: