-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A couple of Grouper-related tests were added, including testing of live sync using RabbitMQ (not finished yet).
- Loading branch information
Showing
9 changed files
with
146 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| System.out.println("************** t300.gsh starting **************"); | ||
|
|
||
| gs = GrouperSession.startRootSession() | ||
|
|
||
| exportedGroups = GroupFinder.findByName(gs, 'etc:exportedGroups') | ||
| alumSubject = SubjectFinder.findByIdentifier('ref:affiliation:alum', 'group', 'g:gsa') | ||
| exportedGroups.addMember(alumSubject, false) | ||
|
|
||
| alumIncludes = GroupFinder.findByName(gs, 'ref:affiliation:alum_includes') | ||
| testGroup = GroupFinder.findByName(gs, 'etc:testGroup') | ||
| wprice = SubjectFinder.findById('wprice', 'person', 'ldap') | ||
| alumIncludes.addMember(wprice, false) | ||
| testGroup.addMember(wprice, false) | ||
|
|
||
| System.out.println("************** t300.gsh done **************"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| System.out.println("************** t420.gsh starting **************"); | ||
|
|
||
| gs = GrouperSession.startRootSession() | ||
|
|
||
| alumIncludes = GroupFinder.findByName(gs, 'ref:affiliation:alum_includes') | ||
| testGroup = GroupFinder.findByName(gs, 'etc:testGroup') | ||
| kwhite = SubjectFinder.findById('kwhite', 'person', 'ldap') | ||
| wprice = SubjectFinder.findById('wprice', 'person', 'ldap') | ||
| testGroup.addMember(kwhite, false) | ||
| alumIncludes.deleteMember(wprice, false) | ||
|
|
||
| System.out.println("************** t420.gsh done **************"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| count=$(rabbitmqctl list_queues | grep s1ampleQueue | awk '{print $2}') | ||
| if [[ -z $count || $count -eq 0 ]]; then | ||
| echo "ERROR: sampleQueue does not exist or is empty" | ||
| exit 1 | ||
| else | ||
| echo "OK: sampleQueue has $count message(s)" | ||
| exit 0 | ||
| fi |
29 changes: 29 additions & 0 deletions
29
demo/complex/tests/resources/tasks/task-livesync-grouper-single.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| <task xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
| xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" | ||
| xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
| xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" | ||
| xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" | ||
| xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" | ||
| xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" | ||
| oid="87ffce52-717a-4205-ba01-0a698f0deaee"> | ||
| <name>LiveSync from Grouper</name> | ||
| <extension xmlns:mext="http://midpoint.evolveum.com/xml/ns/public/model/extension-3" | ||
| xmlns:gen437="http://midpoint.evolveum.com/xml/ns/public/provisioning/liveSync-3" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:type="c:ExtensionType"> | ||
| <mext:kind>account</mext:kind> | ||
| <mext:objectclass>ri:AccountObjectClass</mext:objectclass> | ||
| </extension> | ||
| <taskIdentifier>1535465478027-0-1</taskIdentifier> | ||
| <ownerRef oid="00000000-0000-0000-0000-000000000002" | ||
| relation="org:default" | ||
| type="c:UserType"><!-- administrator --></ownerRef> | ||
| <executionStatus>runnable</executionStatus> | ||
| <category>LiveSynchronization</category> | ||
| <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/synchronization/task/live-sync/handler-3</handlerUri> | ||
| <objectRef oid="6dcb84f5-bf82-4931-9072-fbdf87f96442" | ||
| relation="org:default" | ||
| type="c:ResourceType"><!-- Grouper SQL NEW --></objectRef> | ||
| <recurrence>single</recurrence> | ||
| <binding>loose</binding> | ||
| </task> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters