Skip to content

Commit

Permalink
remove unwanted changes from PR added while rebase
Browse files Browse the repository at this point in the history
Signed-off-by: ishitasequeira <isequeir@redhat.com>
  • Loading branch information
ishitasequeira committed Apr 1, 2022
1 parent b98c129 commit 70431e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
36 changes: 0 additions & 36 deletions cmd/argocd/commands/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import (

"github.com/stretchr/testify/assert"

"github.com/stretchr/testify/assert"

"github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
)

Expand Down Expand Up @@ -640,37 +638,3 @@ func TestPrintApplicationNames(t *testing.T) {
t.Fatalf("Incorrect print params output %q, should be %q", output, expectation)
}
}

func TestPrintApplicationHistoryTable(t *testing.T) {
histories := []v1alpha1.RevisionHistory{
{
ID: 1,
Source: v1alpha1.ApplicationSource{
TargetRevision: "1",
},
},
{
ID: 2,
Source: v1alpha1.ApplicationSource{
TargetRevision: "2",
},
},
{
ID: 3,
Source: v1alpha1.ApplicationSource{
TargetRevision: "3",
},
},
}

output, _ := captureOutput(func() error {
printApplicationHistoryTable(histories)
return nil
})

expectation := "ID DATE REVISION\n1 0001-01-01 00:00:00 +0000 UTC 1\n2 0001-01-01 00:00:00 +0000 UTC 2\n3 0001-01-01 00:00:00 +0000 UTC 3\n"

if output != expectation {
t.Fatalf("Incorrect print operation output %q, should be %q", output, expectation)
}
}
5 changes: 0 additions & 5 deletions test/e2e/fixture/project/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import (
"github.com/stretchr/testify/require"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
"github.com/argoproj/argo-cd/v2/test/e2e/fixture"
"github.com/stretchr/testify/require"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
"github.com/argoproj/argo-cd/v2/test/e2e/fixture"
)
Expand Down

0 comments on commit 70431e9

Please sign in to comment.