Skip to content

Commit 4d1e06e

Browse files
committed
Add some unexpected status codes from the SWAMP into in-progress.
Added and commented out debug statements for checking odd statii; a runtime log would be better to debug with, but we have no mechanism for that.
1 parent 0508b59 commit 4d1e06e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/org/continuousassurance/swamp/cli/util/AssessmentStatus.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ public static AssessmentStatus translateAssessmentStatus(String status_str) {
5757
"vm [raw virsh command]",
5858
"vm [raw virsh command] failed",
5959
"Obtaining VM IP Address",
60+
"Obtaining Viewer Machine IP Address",
6061
"Obtained VM IP",
6162
"Failed to Obtain VM IP Address",
6263
"Starting Assessment Run Script",
6364
"Executing cloc on package",
6465
"Performing Assessment",
6566
"Shutting Down the VM",
67+
"Shutting down the assessment machine",
6668
"Extracting Assessment Results",
6769
"Failed to extract assessment results",
6870
"Post-Processing",
@@ -88,6 +90,7 @@ public static AssessmentStatus translateAssessmentStatus(String status_str) {
8890
"Finished with Warnings");
8991

9092
if (inList(inprogess_status_list, status_str)) {
93+
// System.out.println("inprogress status: '" + status_str + "'");
9194
return AssessmentStatus.INPROGRESS;
9295
}
9396

@@ -106,6 +109,8 @@ public static AssessmentStatus translateAssessmentStatus(String status_str) {
106109
if (status_str.startsWith("Finished")) {
107110
return AssessmentStatus.SUCCESS;
108111
}
112+
113+
// System.out.println("unknown status: '" + status_str + "'");
109114

110115
return AssessmentStatus.UNKNOWN;
111116
}

0 commit comments

Comments
 (0)