Test cases added.

Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
This commit is contained in:
Christoph Fiehe
2024-10-10 13:49:17 +02:00
committed by André Roth
parent 14c29ff912
commit 3057aed571
16 changed files with 238 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ func aptlyPublishSourceAdd(cmd *commander.Command, args []string) error {
name := names[i]
_, exists := sources[component]
if exists {
return fmt.Errorf("unable to add: Component %q has already been added", component)
return fmt.Errorf("unable to add: component %q has already been added", component)
}
context.Progress().Printf("Adding component %q with source %q [%s]...\n", component, name, published.SourceKind)
+1 -1
View File
@@ -30,7 +30,7 @@ func aptlyPublishSourceList(cmd *commander.Command, args []string) error {
}
if published.Revision == nil {
return fmt.Errorf("unable to list: No source changes exist")
return fmt.Errorf("unable to list: no source changes exist")
}
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
+1 -1
View File
@@ -19,7 +19,7 @@ func aptlyPublishSourceRemove(cmd *commander.Command, args []string) error {
components := strings.Split(context.Flags().Lookup("component").Value.String(), ",")
if len(components) == 0 {
return fmt.Errorf("unable to remove: Missing components, specify at least one component")
return fmt.Errorf("unable to remove: missing components, specify at least one component")
}
prefix := context.Flags().Lookup("prefix").Value.String()
+1 -1
View File
@@ -44,7 +44,7 @@ func aptlyPublishSourceUpdate(cmd *commander.Command, args []string) error {
name := names[i]
_, exists := sources[component]
if !exists {
return fmt.Errorf("unable to update: Component %q does not exist", component)
return fmt.Errorf("unable to update: component %q does not exist", component)
}
context.Progress().Printf("Updating component %q with source %q [%s]...\n", component, name, published.SourceKind)