Merge "[#308] Removed code style issue on Error string"

This commit is contained in:
Zuul 2020-07-27 15:32:15 +00:00 committed by Gerrit Code Review
commit 8045109c64
4 changed files with 7 additions and 7 deletions

View File

@ -52,7 +52,7 @@ func TestGetManifestConfigCmd(t *testing.T) {
Name: "missing",
CmdLine: "manifestMissing",
Cmd: cmd.NewGetManifestCommand(settings),
Error: fmt.Errorf("Missing configuration: Manifest with name 'manifestMissing'"),
Error: fmt.Errorf("missing configuration: Manifest with name 'manifestMissing'"),
},
{
Name: "no-manifests",

View File

@ -66,7 +66,7 @@ func TestBootstrapIso(t *testing.T) {
defer cleanup(t)
volBind := tempVol + ":/dst"
testErr := fmt.Errorf("TestErr")
testErr := fmt.Errorf("testErr")
testCfg := &config.Bootstrap{
Container: &config.Container{
Volume: volBind,

View File

@ -177,7 +177,7 @@ func (o *ManifestOptions) Validate() error {
return fmt.Errorf("you must specify a non-empty Manifest name")
}
if o.RemoteRef != "" {
return fmt.Errorf("Repository checkout by RemoteRef is not yet implemented\n%w", errors.ErrNotImplemented{})
return fmt.Errorf("repository checkout by RemoteRef is not yet implemented\n%w", errors.ErrNotImplemented{})
}
if o.IsPrimary && o.RepoName == "" {
return ErrMissingRepositoryName{}

View File

@ -48,16 +48,16 @@ func TestManifestBundleReader(t *testing.T) {
},
{
name: "Read error",
errString: "Failed to read from bundle",
errString: "failed to read from bundle",
reader: fakeReaderWriter{
readErr: fmt.Errorf("Failed to read from bundle"),
readErr: fmt.Errorf("failed to read from bundle"),
},
},
{
name: "Write error",
errString: "Failed to write bundle",
errString: "failed to write bundle",
writer: fakeReaderWriter{
writeErr: fmt.Errorf("Failed to write bundle"),
writeErr: fmt.Errorf("failed to write bundle"),
},
},
}