Skip to content

Commit

Permalink
fix model-intest TestScriptingBasic
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Feb 28, 2019
1 parent 48c515c commit a330353
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -819,7 +819,7 @@ public void test500ScriptingUsers() throws Exception {
result.computeStatus();
TestUtil.assertSuccess(result);
PipelineData data = output.getFinalOutput();
assertEquals("Unexpected # of items in output", 5, data.getData().size());
assertEquals("Unexpected # of items in output", 6, data.getData().size());
Set<String> realOids = new HashSet<>();
for (PipelineItem item : data.getData()) {
PrismValue value = item.getValue();
Expand All @@ -829,7 +829,7 @@ public void test500ScriptingUsers() throws Exception {
assertSuccess(item.getResult());
}
assertEquals("Unexpected OIDs in output",
Sets.newHashSet(Arrays.asList(USER_ADMINISTRATOR_OID, USER_JACK_OID, USER_BARBOSSA_OID, USER_GUYBRUSH_OID, USER_ELAINE_OID)),
Sets.newHashSet(Arrays.asList(USER_ADMINISTRATOR_OID, USER_JACK_OID, USER_BARBOSSA_OID, USER_GUYBRUSH_OID, USER_ELAINE_OID, USER_WILL_OID)),
realOids);
}

Expand Down Expand Up @@ -947,7 +947,7 @@ public void test510GeneratePasswords() throws Exception {
result.computeStatus();
TestUtil.assertSuccess(result);
PipelineData data = output.getFinalOutput();
assertEquals("Unexpected # of items in output", 5, data.getData().size());
assertEquals("Unexpected # of items in output", 6, data.getData().size());
Set<String> realOids = new HashSet<>();
for (PipelineItem item : data.getData()) {
PrismValue value = item.getValue();
Expand All @@ -957,7 +957,7 @@ public void test510GeneratePasswords() throws Exception {
realOids.add(user.getOid());
}
assertEquals("Unexpected OIDs in output",
Sets.newHashSet(Arrays.asList(USER_ADMINISTRATOR_OID, USER_JACK_OID, USER_BARBOSSA_OID, USER_GUYBRUSH_OID, USER_ELAINE_OID)),
Sets.newHashSet(Arrays.asList(USER_ADMINISTRATOR_OID, USER_JACK_OID, USER_BARBOSSA_OID, USER_GUYBRUSH_OID, USER_ELAINE_OID, USER_WILL_OID)),
realOids);
}

Expand Down

0 comments on commit a330353

Please sign in to comment.