Skip to content

Commit

Permalink
Adapt TestOrgSync to changes in inbound processing
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Jul 16, 2019
1 parent 9c61d6b commit af88c9d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Expand Up @@ -1195,7 +1195,7 @@ private <V extends PrismValue, D extends ItemDefinition> void checkTolerant(List
}

if (tolerantCount > 0 && intolerantCount > 0) {
throw new SchemaException("Incorrect configuration. There cannot be different 'tolernt' settings for the target item " + mappingStructs.iterator().next().getMapping().getOutputDefinition());
throw new SchemaException("Incorrect configuration. There cannot be different 'tolerant' settings for the target item " + mappingStructs.iterator().next().getMapping().getOutputDefinition());
}

}
Expand Down
Expand Up @@ -502,10 +502,10 @@ public void test107AddHrAccountRedskull() throws Exception {
* Remove "canibalism" responsibility from redskull.
*/
@Test
public void test108RedskullGoesVegeratian() throws Exception {
final String TEST_NAME = "test108RedskullGoesVegeratian";
public void test108RedskullGoesVegetarian() throws Exception {
final String TEST_NAME = "test108RedskullGoesVegetarian";
displayTestTitle(TEST_NAME);
Task task = taskManager.createTaskInstance(TestTrafo.class.getName() + "." + TEST_NAME);
Task task = taskManager.createTaskInstance(TestOrgSync.class.getName() + "." + TEST_NAME);

DummyAccount account = dummyResourceHr.getAccountByUsername(ACCOUNT_REDSKULL_USERNAME);

Expand Down Expand Up @@ -1287,7 +1287,7 @@ private String assertNoResponsibility(PrismObject<UserType> user, String respNam
CommunicationException, ConfigurationException, DirectoryException, ExpressionEvaluationException {
String respRoleName = "R_" + respName;
PrismObject<RoleType> respRole = searchObjectByName(RoleType.class, respRoleName);
assertNotNull("No role for responsibility " + respName);
assertNotNull("No role for responsibility " + respName, respRole);
display("Responsibility role for " + respName, respRole);
assertNotAssignedRole(user, respRole.getOid());

Expand Down
Expand Up @@ -94,6 +94,9 @@
<inbound>
<target>
<path>extension/ext:responsibility</path>
<set>
<predefined>all</predefined>
</set>
</target>
</inbound>
</attribute>
Expand Down

0 comments on commit af88c9d

Please sign in to comment.