[#308] Removed code style issue on Error string
* This commit will remove code style issue on Error string Change-Id: Ib2344de75768362a88c077354193878366ce4b0c
This commit is contained in:
parent
bf3017c12f
commit
241714d042
@ -52,7 +52,7 @@ func TestGetManifestConfigCmd(t *testing.T) {
|
|||||||
Name: "missing",
|
Name: "missing",
|
||||||
CmdLine: "manifestMissing",
|
CmdLine: "manifestMissing",
|
||||||
Cmd: cmd.NewGetManifestCommand(settings),
|
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",
|
Name: "no-manifests",
|
||||||
|
@ -66,7 +66,7 @@ func TestBootstrapIso(t *testing.T) {
|
|||||||
defer cleanup(t)
|
defer cleanup(t)
|
||||||
|
|
||||||
volBind := tempVol + ":/dst"
|
volBind := tempVol + ":/dst"
|
||||||
testErr := fmt.Errorf("TestErr")
|
testErr := fmt.Errorf("testErr")
|
||||||
testCfg := &config.Bootstrap{
|
testCfg := &config.Bootstrap{
|
||||||
Container: &config.Container{
|
Container: &config.Container{
|
||||||
Volume: volBind,
|
Volume: volBind,
|
||||||
|
@ -177,7 +177,7 @@ func (o *ManifestOptions) Validate() error {
|
|||||||
return fmt.Errorf("you must specify a non-empty Manifest name")
|
return fmt.Errorf("you must specify a non-empty Manifest name")
|
||||||
}
|
}
|
||||||
if o.RemoteRef != "" {
|
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 == "" {
|
if o.IsPrimary && o.RepoName == "" {
|
||||||
return ErrMissingRepositoryName{}
|
return ErrMissingRepositoryName{}
|
||||||
|
@ -48,16 +48,16 @@ func TestManifestBundleReader(t *testing.T) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Read error",
|
name: "Read error",
|
||||||
errString: "Failed to read from bundle",
|
errString: "failed to read from bundle",
|
||||||
reader: fakeReaderWriter{
|
reader: fakeReaderWriter{
|
||||||
readErr: fmt.Errorf("Failed to read from bundle"),
|
readErr: fmt.Errorf("failed to read from bundle"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Write error",
|
name: "Write error",
|
||||||
errString: "Failed to write bundle",
|
errString: "failed to write bundle",
|
||||||
writer: fakeReaderWriter{
|
writer: fakeReaderWriter{
|
||||||
writeErr: fmt.Errorf("Failed to write bundle"),
|
writeErr: fmt.Errorf("failed to write bundle"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user