Skip to content

Commit

Permalink
Consistent ordering in TestListReleases (#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
absoludity authored Jan 15, 2020
1 parent 1e10271 commit 781c56e
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions pkg/agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ func TestListReleases(t *testing.T) {
listLimit: defaultListLimit,
releases: []releaseStub{
releaseStub{"airwatch", "default", 1, "1.0.0", release.StatusDeployed},
releaseStub{"wordpress", "default", 1, "1.0.0", release.StatusDeployed},
releaseStub{"not-in-default-namespace", "other", 1, "1.0.0", release.StatusDeployed},
releaseStub{"wordpress", "default", 1, "1.0.1", release.StatusDeployed},
releaseStub{"not-in-default-namespace", "other", 1, "1.0.2", release.StatusDeployed},
},
expectedApps: []proxy.AppOverview{
proxy.AppOverview{
Expand All @@ -231,25 +231,25 @@ func TestListReleases(t *testing.T) {
},
},
proxy.AppOverview{
ReleaseName: "not-in-default-namespace",
Namespace: "other",
Version: "1.0.0",
ReleaseName: "wordpress",
Namespace: "default",
Version: "1.0.1",
Status: "deployed",
Icon: "https://example.com/icon.png",
ChartMetadata: chartv1.Metadata{
Version: "1.0.0",
Version: "1.0.1",
Icon: "https://example.com/icon.png",
Maintainers: []*chartv1.Maintainer{},
},
},
proxy.AppOverview{
ReleaseName: "wordpress",
Namespace: "default",
Version: "1.0.0",
ReleaseName: "not-in-default-namespace",
Namespace: "other",
Version: "1.0.2",
Status: "deployed",
Icon: "https://example.com/icon.png",
ChartMetadata: chartv1.Metadata{
Version: "1.0.0",
Version: "1.0.2",
Icon: "https://example.com/icon.png",
Maintainers: []*chartv1.Maintainer{},
},
Expand All @@ -262,8 +262,8 @@ func TestListReleases(t *testing.T) {
listLimit: defaultListLimit,
releases: []releaseStub{
releaseStub{"airwatch", "default", 1, "1.0.0", release.StatusDeployed},
releaseStub{"wordpress", "default", 1, "1.0.0", release.StatusDeployed},
releaseStub{"not-in-namespace", "other", 1, "1.0.0", release.StatusDeployed},
releaseStub{"wordpress", "default", 1, "1.0.1", release.StatusDeployed},
releaseStub{"not-in-namespace", "other", 1, "1.0.2", release.StatusDeployed},
},
expectedApps: []proxy.AppOverview{
proxy.AppOverview{
Expand All @@ -281,11 +281,11 @@ func TestListReleases(t *testing.T) {
proxy.AppOverview{
ReleaseName: "wordpress",
Namespace: "default",
Version: "1.0.0",
Version: "1.0.1",
Status: "deployed",
Icon: "https://example.com/icon.png",
ChartMetadata: chartv1.Metadata{
Version: "1.0.0",
Version: "1.0.1",
Icon: "https://example.com/icon.png",
Maintainers: []*chartv1.Maintainer{},
},
Expand All @@ -298,8 +298,8 @@ func TestListReleases(t *testing.T) {
listLimit: 1,
releases: []releaseStub{
releaseStub{"airwatch", "default", 1, "1.0.0", release.StatusDeployed},
releaseStub{"wordpress", "default", 1, "1.0.0", release.StatusDeployed},
releaseStub{"not-in-namespace", "other", 1, "1.0.0", release.StatusDeployed},
releaseStub{"wordpress", "default", 1, "1.0.1", release.StatusDeployed},
releaseStub{"not-in-namespace", "other", 1, "1.0.2", release.StatusDeployed},
},
expectedApps: []proxy.AppOverview{
proxy.AppOverview{
Expand Down Expand Up @@ -381,7 +381,7 @@ func TestListReleases(t *testing.T) {
listLimit: defaultListLimit,
releases: []releaseStub{
releaseStub{"wordpress", "default", 1, "1.0.0", release.StatusDeployed},
releaseStub{"wordpress", "dev", 2, "1.0.0", release.StatusUninstalled},
releaseStub{"wordpress", "dev", 2, "1.0.1", release.StatusUninstalled},
},
expectedApps: []proxy.AppOverview{
proxy.AppOverview{
Expand All @@ -399,11 +399,11 @@ func TestListReleases(t *testing.T) {
proxy.AppOverview{
ReleaseName: "wordpress",
Namespace: "dev",
Version: "1.0.0",
Version: "1.0.1",
Status: "uninstalled",
Icon: "https://example.com/icon.png",
ChartMetadata: chartv1.Metadata{
Version: "1.0.0",
Version: "1.0.1",
Icon: "https://example.com/icon.png",
Maintainers: []*chartv1.Maintainer{},
},
Expand Down

0 comments on commit 781c56e

Please sign in to comment.