Skip to Content.
Sympa Menu

grouper-dev - grouper config validation

Subject: Grouper Developers Forum

List archive

grouper config validation


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Grouper Dev <>
  • Subject: grouper config validation
  • Date: Wed, 15 Oct 2008 02:21:39 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

Hey,

 

Im going to consider this done and move on to other things.  Here are my notes.  If you know of other common configuration problems, let me know…

 

Regards,

Chris

 

https://bugs.internet2.edu/jira/browse/GRP-102

 

DONE:

- make sure all property files are there

 

- make sure all the jars manifest is right version... (also check jars in general [right name, size], fail-safe)

                - http://forums.sun.com/thread.jspa?messageID=3791501

 

- see if we should even check configs: grouper.properties config entry: configuration.detect.errors

 

- print out grouper version (and check that versions match)

 

- check for missing properties in properties files

 

- make sure can connect to DB (including driver available and suggestions for what is wrong)

 

- subject API startup verification?  connect to DB, all queries work? (just warn on these, subject source could be down)

 

- check that wheel group is there

 

- testing, manual script...

 

- check grouper loader config, and external db's

 

- check types and valid values of every grouper.properties config param value

 

 

LATER:

 

 

- add in jar checking and properties file value type checking to WS

 

- add in jar checking and properties file value type checking to UI

 

 

 

 

#################

Testing:

 

- Remove each config file (grouper.properties, grouper.hibernate.properties, sources.xml, ehcache.xml, etc), startup gsh, see an error in stderr and logs

- Delete a jar, see descriptive warning

- Rename a jar, see descriptive wanring

- Edit a jar so it isnt the right size, see descriptive warning

- Edit the jar's version in its manifest, see descriptive warning

- Check the grouper.properties config: configuration.detect.errors to false, see no checking

- Change GrouperVersion number, make a binary dist, run gsh, see error

- Change it back, dist binary, run gsh, dont see error

- Rename a property or two in grouper.properties, see entries which should be there and arent, and are there and shouldnt be

- Rename a property or two in grouper.hibernate.properties, see entries which should be there and arent

- Properties in the grouper.hibernate.properties which are extra do not cause errors... (log.info)

- Rename a property or two in morphString.properties, see entries which should be there and arent, and are there and shouldnt be

- Mess with the dbChange properties in the grouper.properties and see that it complains

- Mess with the group.attribute.validators in the grouper.properties see that it complains

- Change the grouper hibernate user, pass, driver, url, and see a descriptive error

- Change the sources.xml user, pass, driver, url, and see a descriptive error

- Make one of the sources.xml queries and see a descriptive error

- Change the wheel group listing in grouper.properties to something that doesnt exist, see a friendly error (make sure using wheel is true, if false, shouldnt see error)

- Mess with grouper-loader.properties external db's, see descriptive errors

                - misspell the keys

                - leave a key out (only 3 of 4)

                - have invalid schema, pass, url, driver

- Change values of grouper.properties to invalid values and see good errors



  • grouper config validation, Chris Hyzer, 10/15/2008

Archive powered by MHonArc 2.6.16.

Top of Page