Skip to content

Commit

Permalink
changes to conform with CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
consolethinks committed Oct 18, 2024
1 parent 48b81b5 commit ca8c254
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/commands/datasetArchiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ For further help see "` + MANUAL + `"`,
"devenv": devenvFlag,
"noninteractive": nonInteractiveFlag,
"version": showVersion,
"ownergroup": ownergroupFlag,
})
return
}
Expand Down
6 changes: 5 additions & 1 deletion cmd/commands/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ func TestMainFlags(t *testing.T) {
"user": "",
"token": "",
"tapecopies": 1,
"ownergroup": "a",
},
args: []string{"datasetArchiver", "an argument placeholder"},
args: []string{"datasetArchiver", "--ownergroup", "a", "an argument placeholder"},
},
{
name: "datasetArchiver test with all flags set",
Expand All @@ -40,6 +41,7 @@ func TestMainFlags(t *testing.T) {
"user": "usertest:passtest",
"token": "token",
"tapecopies": 6571579,
"ownergroup": "group1",
},
args: []string{
"datasetArchiver",
Expand All @@ -55,6 +57,8 @@ func TestMainFlags(t *testing.T) {
"6571579",
"--version",
"an argument placeholder",
"--ownergroup",
"group1",
},
},
// datasetCleaner
Expand Down
2 changes: 1 addition & 1 deletion datasetUtils/createJob.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func CreateArchivalJob(client *http.Client, APIServer string, user map[string]st
return j.Id, err
}

// Auxilary function to CreateArchivalJob when you need to use a list of datasets grouped by ownerGroups
// Auxiliary function to CreateArchivalJob when you need to use a list of datasets grouped by ownerGroups
func CreateArchivalJobs(client *http.Client, APIServer string, user map[string]string, groupedDatasetLists map[string][]string, tapecopies *int) (jobIds []string, errs []error) {
jobIds = make([]string, len(groupedDatasetLists))
errs = make([]error, len(groupedDatasetLists))
Expand Down

0 comments on commit ca8c254

Please sign in to comment.