Skip to content

Commit

Permalink
BXC-4728 update source files reporting (#107)
Browse files Browse the repository at this point in the history
* count only file objects for source file mappings status

* fix test
  • Loading branch information
krwong committed Sep 18, 2024
1 parent b0f5fb5 commit 6a9d6e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public void report() {
sectionDivider();

outputLogger.info("Source File Mappings");
reportSourceMappings(totalObjects);
// exclude group/compound objects since they don't have source files
int totalObjectsOnlyFileObjects = getQueryService().countIndexedFileObjects();
reportSourceMappings(totalObjectsOnlyFileObjects);
sectionDivider();

outputLogger.info("Access File Mappings");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public void reportSipGeneratedWithCompoundObjects() throws Exception {
assertOutputMatches(".*Destinations: +1\n.*");

assertOutputMatches(".*Source File Mappings\n +Last Updated: +[0-9\\-T:]+.*");
assertOutputMatches(".*Source File Mappings\n.*\n +Objects Mapped: +5 \\(71.4%\\).*");
assertOutputMatches(".*Source File Mappings\n.*\n +Objects Mapped: +5 \\(100.0%\\).*");

assertOutputMatches(".*Access File Mappings\n +Last Updated: +Not completed.*");
assertOutputMatches(".*Submission Information Packages\n +Last Generated: +[0-9\\-T:]+.*");
Expand Down

0 comments on commit 6a9d6e2

Please sign in to comment.