Skip to content

Commit

Permalink
fix for report-impl test (using SQL server)
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 30, 2022
1 parent ab1db56 commit 9468cf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void beforeRun(OperationResult result) throws CommonException, ActivityRu
public SearchSpecification<ReportDataType> createCustomSearchSpecification(OperationResult result) {
// FIXME When parent OID is indexed, the query can be improved
// FIXME Also when sequenceNumber is indexed, we'll sort on it
String prefix = String.format("Partial report data for [%s]", support.getGlobalReportDataRef().getOid());
String prefix = String.format("Partial report data for %s", support.getGlobalReportDataRef().getOid());
return new SearchSpecification<>(
ReportDataType.class,
PrismContext.get().queryFor(ReportDataType.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void afterBucketExecution(int bucketNumber, OperationResult result)
// Note that we include [oid] in the object name to allow a poor man searching over the children.
// It's until parentRef is properly indexed in the repository.
// We also make the name sortable by padding the number with zeros: until we can sort on the sequential number.
String name = String.format("Partial report data for [%s] (%08d)", globalReportDataRef.getOid(), bucketNumber);
String name = String.format("Partial report data for %s (%08d)", globalReportDataRef.getOid(), bucketNumber);

ReportDataType partialReportData = new ReportDataType()
.name(name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void commonInitialization(OperationResult initResult)

void createUsers(int users, Task initTask, OperationResult initResult) throws CommonException {
for (int i = 0; i < users; i++) {
UserType user = new UserType(prismContext)
UserType user = new UserType()
.name(String.format("u%06d", i))
.givenName(String.format("GivenNameU%06d", i))
.familyName(String.format("FamilyNameU%06d", i))
Expand Down

0 comments on commit 9468cf4

Please sign in to comment.