Skip to content

Commit

Permalink
Removed the linter - misspel (#3052)
Browse files Browse the repository at this point in the history
Signed-off-by: anishbista60 <[email protected]>
  • Loading branch information
anishbista60 authored Aug 24, 2024
1 parent 8d7ef7a commit 6f6a21e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ issues:
- unparam # Tests might have unused function parameters.
- lll
- dupl
- misspell
- nestif
- gci
- stylecheck
Expand Down
4 changes: 2 additions & 2 deletions pkg/controllers/repositoryserver/secrets_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

func (s *RepoServerControllerSuite) TestFetchSecretsForRepositoryServer(c *C) {
// Test getSecretsFromCR is successfull
// Test getSecretsFromCR is successful
repositoryServer := testutil.GetTestKopiaRepositoryServerCR(s.repoServerControllerNamespace)
setRepositoryServerSecretsInCR(&s.repoServerSecrets, &repositoryServer)

Expand All @@ -45,7 +45,7 @@ func (s *RepoServerControllerSuite) TestFetchSecretsForRepositoryServer(c *C) {
c.Assert(repoServerHandler.RepositoryServerSecrets.serverTLS, DeepEquals, s.repoServerSecrets.serverTLS)
c.Assert(repoServerHandler.RepositoryServerSecrets.serverUserAccess, DeepEquals, s.repoServerSecrets.serverUserAccess)

// Test getSecretsFromCR is unsuccesful when one of the secrets does not exist in the namespace
// Test getSecretsFromCR is unsuccessful when one of the secrets does not exist in the namespace
repositoryServer.Spec.Storage.SecretRef.Name = "SecretDoesNotExist"
repoServerHandler.RepositoryServerSecrets = repositoryServerSecrets{}
err = repoServerHandler.getSecretsFromCR(context.Background())
Expand Down
2 changes: 1 addition & 1 deletion pkg/filter/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ func (s *FilterSuite) TestResourceIncludeExclude(c *C) {
exclude: []Resource{ss1, ss2, pvc2},
},
{
// Match a specific resource name only (no GVR), matches mulitple resources
// Match a specific resource name only (no GVR), matches multiple resources
m: ResourceMatcher{
ResourceRequirement{LocalObjectReference: corev1.LocalObjectReference{Name: "specificname"}},
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/kopia/cli/repository/repository_connect_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var _ = check.Suite(test.NewCommandSuite([]test.CommandTest{
},
},
{
Name: "repository connect server, with additonal args",
Name: "repository connect server, with additional args",
Command: func() (*safecli.Builder, error) {
arguments := ConnectServerArgs{
Common: common,
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube/pod_command_executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (s *PodCommandExecutorTestSuite) TestPodRunnerExec(c *C) {
c.Assert(err, Not(IsNil))
c.Assert(errors.Is(err, context.Canceled), Equals, true)
},
"Successfull execution": func(ctx context.Context, pr PodCommandExecutor, prp *fakePodCommandExecutorProcessor) {
"Successful execution": func(ctx context.Context, pr PodCommandExecutor, prp *fakePodCommandExecutorProcessor) {
var err error
prp.execWithOptionsStdout = "{\"where\":\"standard output\"}\n{\"what\":\"output json\"}"
prp.execWithOptionsStderr = "{\"where\":\"standard error\"}\n{\"what\":\"error json\"}"
Expand Down

0 comments on commit 6f6a21e

Please sign in to comment.