Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] GRP-1139: PSP doesn't support configs with multiple classes in a Grouper Hook definition

Subject: Grouper Developers Forum

List archive

[grouper-dev] GRP-1139: PSP doesn't support configs with multiple classes in a Grouper Hook definition


Chronological Thread 
  • From: Chris Hyzer <>
  • To: John Gasper <>, "" <>
  • Subject: [grouper-dev] GRP-1139: PSP doesn't support configs with multiple classes in a Grouper Hook definition
  • Date: Wed, 3 Jun 2015 09:16:01 +0000
  • Accept-language: en-US

John fixed this issue, I made a patch in 2.2.

 

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

 

grouper_v2_2_1_api_patch_11

 

John, if you use the patch let me know if it works for you.

 

Thanks,

Chris

 

 

From: [mailto:] On Behalf Of John Gasper
Sent: Wednesday, May 27, 2015 11:44 AM
To:
Subject: Re: [grouper-dev] RE: Running Grouper Unit Test

 

Thanks Chris. I’ll see if I can get it working.

 

-- 

John Gasper
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef

 

 

From: Chris Hyzer <>
Date: Tuesday, May 26, 2015 at 10:29 AM
To: John Gasper <>, "" <>
Subject: RE: [grouper-dev] RE: Running Grouper Unit Test

 

export JAVA_HOME=/opt/java7

echo $PATH

export PATH=$JAVA_HOME/bin:$PATH

wget http://software.internet2.edu/grouper/release/2.2.1/grouper.apiBinary-2.2.1.tar.gz

tar xzf grouper.apiBinary-2.2.1.tar.gz

cd grouper.apiBinary-2.2.1/bin

ps -ef | grep java   --- kill hsql

java -cp ../lib/jdbcSamples/hsqldb.jar org.hsqldb.Server -database.1 file:grouper -dbname.1 grouper &

./gsh -registry -runscript

./gsh -test -all

 

From: [] On Behalf Of John Gasper
Sent: Tuesday, May 26, 2015 12:31 PM
To:
Subject: Re: [grouper-dev] RE: Running Grouper Unit Test

 

Hi Chris,

 

Thanks for the info, I’m sure it will come in handy as I work through this, but my initial question is how do you as a dev execute the test? I don’t see anything in the grouper client's ant build.xml that builds and executes the tests in a repeatable, automatic fashion. With mvn and gradle based builds it almost happens for free. I’m just not sure of process that you use. Once I get this working I’ll submit a pull request for GRP-1139.

 

Thanks,

John

 

-- 

John Gasper
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef

 

 

From: Chris Hyzer <>
Date: Sunday, May 24, 2015 at 7:25 PM
To: John Gasper <>, "" <>
Subject: [grouper-dev] RE: Running Grouper Unit Test

 

Hmmm, I think hooks are added at startup, and if you want to change them you have to bounce.

 

So a unit test to test how hooks are read from the config file, would need:

 

1.      Edit GrouperHookType, add a public static method called clearConfiguredHooksForTesting() to set hookTypes to null

2.      In your test, call that method at the beginning of the test and in a finally block (to reset stuff for other tests)

3.      Add your config overrides like this:

     

GrouperConfig.retrieveConfig().propertiesOverrideMap().put(“key”, “value”);

 

4.      Then call the method that would use the hook, it should work.  The override gets cleared in GrouperTest so don’t worry about clearing it, though you could if you like:

 

GrouperConfig.retrieveConfig().propertiesOverrideMap().clear();

 

Let me know if you need more help J

 

Thanks

Chris

 

 

From: [] On Behalf Of John Gasper
Sent: Sunday, May 24, 2015 6:17 PM
To:
Subject: [grouper-dev] Running Grouper Unit Test

 

So I’m working on https://bugs.internet2.edu/jira/browse/GRP-1139 and like to form some unit test around validating that multiple hook classes are read in through the grouperClient config that gsh uses.

 

I’ve found some config test for the cascading properties and think I have a valid test related to the issue, but I’m not sure of the best practice way of executing it? Is there a standard method for doing the compile and test execution related to the Grouper Client that I’m missing?

 

Thanks,

John

 

-- 

John Gasper
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef

 




Archive powered by MHonArc 2.6.16.

Top of Page