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

sample script for Changelog GSH script refers to test class EsbPublisherChangeLogScriptTest

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 4.14.1, 5.11.2
    • 4.1.5
    • None
    • None

    Description

      The sample script in the UI page for Changel og GSH scripts includes the line:

      EsbPublisherChangeLogScriptTest.count++;

      This is in a test class, and so isn't packaged in the Grouper image. Using that script fails with error:

      javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: EsbPublisherChangeLogScriptTest for class: Script1,
      Error on original script line number: 15
      Error on prepended script line number: 15
      Error on profile prepended script line number: 311
      Error with line:   EsbPublisherChangeLogScriptTest.count++; 
       
      	at edu.internet2.middleware.grouper.app.gsh.GrouperGroovysh$2$1.callback(GrouperGroovysh.java:417)
      	... 20 more
      Caused by: groovy.lang.MissingPropertyException: No such property: EsbPublisherChangeLogScriptTest for class: Script1
      	at Script1.run(Script1.groovy:311)
      	... 21 more
      Did not get all the way through the batch! -1 != 1694
      

      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:
              Resolved: