Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] gsh.sh -test TestStem failure

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] gsh.sh -test TestStem failure


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Dominique Petitpierre <>, "" <>
  • Subject: RE: [grouper-users] gsh.sh -test TestStem failure
  • Date: Sun, 12 Aug 2012 21:44:27 +0000
  • Accept-language: en-US

I made some changes in 2.1.2 to make this work better:

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

This isnt complete, since some things in the grouper.properties need to be
set for the env etc, but it should be a lot more likely to work based on the
grouper.properties based on GrouperTest.java


//set grouper.example.properties stuff...
ApiConfig.testConfig.put("groups.create.grant.all.admin", "false");
ApiConfig.testConfig.put("groups.create.grant.all.optin", "false");
ApiConfig.testConfig.put("groups.create.grant.all.optout", "false");
ApiConfig.testConfig.put("groups.create.grant.all.read", "true");
ApiConfig.testConfig.put("groups.create.grant.all.update", "false");
ApiConfig.testConfig.put("groups.create.grant.all.view", "true");
ApiConfig.testConfig.put("stems.create.grant.all.create", "false");
ApiConfig.testConfig.put("stems.create.grant.all.stem", "false");
ApiConfig.testConfig.put("attributeDefs.create.grant.all.attrAdmin",
"false");
ApiConfig.testConfig.put("attributeDefs.create.grant.all.attrOptin",
"false");
ApiConfig.testConfig.put("attributeDefs.create.grant.all.attrOptout",
"false");
ApiConfig.testConfig.put("attributeDefs.create.grant.all.attrRead",
"false");
ApiConfig.testConfig.put("attributeDefs.create.grant.all.attrUpdate",
"false");
ApiConfig.testConfig.put("attributeDefs.create.grant.all.attrView",
"false");
ApiConfig.testConfig.put("entities.create.grant.all.view", "false");
ApiConfig.testConfig.put("groups.wheel.use", "false");
ApiConfig.testConfig.put("groups.wheel.group", "etc:sysadmingroup");
ApiConfig.testConfig.put("subject.internal.grouperall.name",
"EveryEntity");
ApiConfig.testConfig.put("subject.internal.groupersystem.name",
"GrouperSysAdmin");
ApiConfig.testConfig.put("internalSubjects.searchAttribute0.el",
"${subject.name},${subject.id}");
ApiConfig.testConfig.put("internalSubjects.sortAttribute0.el",
"${subject.name}");
ApiConfig.testConfig.put("security.types.grouperLoader.wheelOnly",
"true");

ApiConfig.testConfig.put("security.types.grouperGroupMembershipSettings.wheelOnly",
"true");
ApiConfig.testConfig.put("security.stem.groupAllowedToMoveStem", null);
ApiConfig.testConfig.put("security.stem.groupAllowedToRenameStem", null);
ApiConfig.testConfig.put("security.stem.groupAllowedToCopyStem", null);
ApiConfig.testConfig.put("member.search.defaultIndexOrder", "0");
ApiConfig.testConfig.put("member.sort.defaultIndexOrder", "0");
ApiConfig.testConfig.put("grouperIncludeExclude.use", "false");
ApiConfig.testConfig.put("grouperIncludeExclude.requireGroups.use",
"false");
ApiConfig.testConfig.put("subjects.allPage.useThreadForkJoin", "false");
ApiConfig.testConfig.put("subjects.idOrIdentifier.useThreadForkJoin",
"false");

ApiConfig.testConfig.put("subjects.group.useCreatorAndModifierAsSubjectAttributes",
"true");
ApiConfig.testConfig.put("subjects.customizer.className", null);
ApiConfig.testConfig.put("subjects.startRootSessionIfOneIsntStarted",
"false");
ApiConfig.testConfig.put("hooks.attribute.class", null);
ApiConfig.testConfig.put("hooks.attributeDef.class", null);
ApiConfig.testConfig.put("hooks.attributeDefName.class", null);
ApiConfig.testConfig.put("hooks.attributeAssign.class", null);
ApiConfig.testConfig.put("hooks.attributeAssignValue.class", null);
ApiConfig.testConfig.put("hooks.group.class", null);
ApiConfig.testConfig.put("hooks.lifecycle.class", null);
ApiConfig.testConfig.put("hooks.membership.class", null);
ApiConfig.testConfig.put("hooks.member.class", null);
ApiConfig.testConfig.put("hooks.stem.class", null);
ApiConfig.testConfig.put("hooks.composite.class", null);
ApiConfig.testConfig.put("hooks.field.class", null);
ApiConfig.testConfig.put("hooks.grouperSession.class", null);
ApiConfig.testConfig.put("hooks.groupType.class", null);
ApiConfig.testConfig.put("hooks.groupTypeTuple.class", null);
ApiConfig.testConfig.put("hooks.loader.class", null);
ApiConfig.testConfig.put("hooks.externalSubject.class", null);
ApiConfig.testConfig.put("rules.act.as.group", null);
ApiConfig.testConfig.put("rules.accessToApiInEl.group", null);
ApiConfig.testConfig.put("rules.act.as.cache.minutes", "30");
ApiConfig.testConfig.put("rules.customElClasses", null);

ApiConfig.testConfig.put("rules.allowActAsGrouperSystemForInheritedStemPrivileges",
null);
ApiConfig.testConfig.put("rules.emailTemplatesFolder", null);
ApiConfig.testConfig.put("group.attribute.validator.attributeName.0",
null);
ApiConfig.testConfig.put("group.attribute.validator.regex.0", null);
ApiConfig.testConfig.put("group.attribute.validator.vetoMessage.0",
null);
ApiConfig.testConfig.put("changeLog.enabled", "true");
ApiConfig.testConfig.put("groups.updateLastImmediateMembershipTime",
"false");
ApiConfig.testConfig.put("groups.updateLastMembershipTime", "false");
ApiConfig.testConfig.put("stems.updateLastMembershipTime", "false");
ApiConfig.testConfig.put("grouper.api.readonly", "false");
ApiConfig.testConfig.put("membershipUpdateLiteTypeAutoCreate", "false");
ApiConfig.testConfig.put("grouper.attribute.rootStem", "etc:attribute");
ApiConfig.testConfig.put("grouper.attribute.loader.autoconfigure",
"true");

ApiConfig.testConfig.put("grouper.permissions.limits.builtin.createAs.public",
"true");

Thanks,
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Dominique Petitpierre
Sent: Thursday, August 09, 2012 9:45 PM
To:

Subject: Re: [grouper-users] gsh.sh -test TestStem failure

On 08/10/2012 03:13 AM, Dominique Petitpierre wrote:

> Suggestion: the test code could warn the user that a non default property
> could affect the test result.

This is assuming that some properties could be correctly modified
for local customization but could interfere with the Junit tests.

I believe I was in that case (i.e. my customizations were correct);
here is the list of modified properties in effect when the test
reported a failure:

mail.test.address =

mail.subject.prefix = Grouper test3:
mail.from.address =

mail.smtp.server = smtp.domain.ch
stems.updateLastMembershipTime = true
groups.updateLastMembershipTime = true
groups.updateLastImmediateMembershipTime = true
grouperIncludeExclude.use = true
#db.change.deny.user.0=grouper2
#db.change.deny.url.0=jdbc:mysql://localhost:3306/grouper2
db.change.allow.user.0=grouper_user
db.change.allow.url.0=jdbc:oracle:thin:@dbhost.unige.ch:1521:dbinstance
#db.change.allow.user.1=grouper1
#db.change.allow.url.1=jdbc:mysql://localhost:3306/grouper1
groups.wheel.use = true
groups.create.grant.all.view = false
groups.create.grant.all.read = false
configuration.autocreate.system.groups = true
grouper.ui.url = https://grouphost.unige.ch/grouper/
grouper.env.name = test3

- Which one(s) caused the failure?

--
Meilleures salutations,
Dominique Petitpierre

* Unsolicited commercial email is NOT welcome at this address. *
Mr Dominique Petitpierre Email:
User@Domain
IT Division User=Dominique.Petitpierre
University of Geneva Domain=unige.ch
24 rue General-Dufour Voice: +41 (0)22 37 97117
CH-1204 GENEVA Fax : +41 (0)22 37 97986
(Switzerland) WWW : http://www.unige.ch/dinf/



Archive powered by MHonArc 2.6.16.

Top of Page