all: fix test failures after rebase

The stability of the authorized_actions have been removed in main,
so we need to add these sorts to all our new tests.
This commit is contained in:
Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:21 -08:00
1 parent 77b76ae685
commit df93313b9a
7 files changed
+173 -3

No files matched your search

@@ -1594,6 +1594,9 @@ func TestListPagination(t *testing.T) {
RemovedIds: nil,
EstItemCount: 15,
},
cmpopts.SortSlices(func(a, b string) bool {
return a < b
}),
protocmp.Transform(),
protocmp.IgnoreFields(&pbs.ListCredentialsResponse{}, "list_token"),
),
@@ -1617,6 +1620,9 @@ func TestListPagination(t *testing.T) {
RemovedIds: nil,
EstItemCount: 15,
},
cmpopts.SortSlices(func(a, b string) bool {
return a < b
}),
protocmp.Transform(),
protocmp.IgnoreFields(&pbs.ListCredentialsResponse{}, "list_token"),
),
@@ -1641,6 +1647,9 @@ func TestListPagination(t *testing.T) {
RemovedIds: nil,
EstItemCount: 15,
},
cmpopts.SortSlices(func(a, b string) bool {
return a < b
}),
protocmp.Transform(),
protocmp.IgnoreFields(&pbs.ListCredentialsResponse{}, "list_token"),
),
@@ -1707,6 +1716,9 @@ func TestListPagination(t *testing.T) {
RemovedIds: []string{deletedCred.Id},
EstItemCount: 15,
},
cmpopts.SortSlices(func(a, b string) bool {
return a < b
}),
protocmp.Transform(),
protocmp.IgnoreFields(&pbs.ListCredentialsResponse{}, "list_token"),
),
@@ -1728,6 +1740,9 @@ func TestListPagination(t *testing.T) {
RemovedIds: nil,
EstItemCount: 15,
},
cmpopts.SortSlices(func(a, b string) bool {
return a < b
}),
protocmp.Transform(),
protocmp.IgnoreFields(&pbs.ListCredentialsResponse{}, "list_token"),
),
@@ -1754,6 +1769,9 @@ func TestListPagination(t *testing.T) {
RemovedIds: nil,
EstItemCount: 15,
},
cmpopts.SortSlices(func(a, b string) bool {
return a < b
}),
protocmp.Transform(),
protocmp.IgnoreFields(&pbs.ListCredentialsResponse{}, "list_token"),
),
@@ -1775,6 +1793,9 @@ func TestListPagination(t *testing.T) {
RemovedIds: nil,
EstItemCount: 15,
},
cmpopts.SortSlices(func(a, b string) bool {
return a < b
}),
protocmp.Transform(),
protocmp.IgnoreFields(&pbs.ListCredentialsResponse{}, "list_token"),
),
@@ -1802,6 +1823,9 @@ func TestListPagination(t *testing.T) {
SortDir: "desc",
RemovedIds: nil,
},
cmpopts.SortSlices(func(a, b string) bool {
return a < b
}),
protocmp.Transform(),
protocmp.IgnoreFields(&pbs.ListCredentialsResponse{}, "list_token"),
),