diff --git a/cmd/certsuite/upload/results_spreadsheet/const.go b/cmd/certsuite/upload/results_spreadsheet/const.go index fe06046aa..a580952b2 100644 --- a/cmd/certsuite/upload/results_spreadsheet/const.go +++ b/cmd/certsuite/upload/results_spreadsheet/const.go @@ -1,13 +1,18 @@ package resultsspreadsheet const ( + ConclusionSheetName = "conclusions" + RawResultsSheetName = "raw results" + categoryConclusionsCol = "Category" workloadVersionConclusionsCol = "Workload Version" ocpVersionConclusionsCol = "OCP Version" - workloadNameConclusionsCol = "Workload Name" + WorkloadNameConclusionsCol = "Workload Name" resultsConclusionsCol = "Results" - workloadNameRawResultsCol = "CNFName" - workloadTypeRawResultsCol = "CNFType" - operatorVersionRawResultsCol = "OperatorVersion" - cellContentLimit = 50000 + + workloadNameRawResultsCol = "CNFName" + workloadTypeRawResultsCol = "CNFType" + operatorVersionRawResultsCol = "OperatorVersion" + + cellContentLimit = 50000 ) diff --git a/cmd/certsuite/upload/results_spreadsheet/results_spreadsheet.go b/cmd/certsuite/upload/results_spreadsheet/results_spreadsheet.go index fc3a4706d..50527414d 100644 --- a/cmd/certsuite/upload/results_spreadsheet/results_spreadsheet.go +++ b/cmd/certsuite/upload/results_spreadsheet/results_spreadsheet.go @@ -18,7 +18,7 @@ import ( ) var stringToPointer = func(s string) *string { return &s } -var conclusionSheetHeaders = []string{categoryConclusionsCol, workloadVersionConclusionsCol, ocpVersionConclusionsCol, workloadNameConclusionsCol, resultsConclusionsCol} +var conclusionSheetHeaders = []string{categoryConclusionsCol, workloadVersionConclusionsCol, ocpVersionConclusionsCol, WorkloadNameConclusionsCol, resultsConclusionsCol} var ( resultsFilePath string @@ -268,7 +268,7 @@ func createConclusionsSheet(sheetsService *sheets.Service, driveService *drive.S case ocpVersionConclusionsCol: curCellData.UserEnteredValue.StringValue = stringToPointer(ocpVersion + " ") - case workloadNameConclusionsCol: + case WorkloadNameConclusionsCol: curCellData.UserEnteredValue.StringValue = &workloadName case resultsConclusionsCol: @@ -292,7 +292,7 @@ func createConclusionsSheet(sheetsService *sheets.Service, driveService *drive.S conclusionSheet := &sheets.Sheet{ Properties: &sheets.SheetProperties{ - Title: "conclusions", + Title: ConclusionSheetName, GridProperties: &sheets.GridProperties{FrozenRowCount: 1}, }, Data: []*sheets.GridData{{RowData: conclusionsSheetRows}}, @@ -311,7 +311,7 @@ func createRawResultsSheet(fp string) (*sheets.Sheet, error) { rawResultsSheet := &sheets.Sheet{ Properties: &sheets.SheetProperties{ - Title: "raw results", + Title: RawResultsSheetName, GridProperties: &sheets.GridProperties{FrozenRowCount: 1}, }, Data: []*sheets.GridData{{RowData: rows}},