mirror of
https://github.com/rancher/steve.git
synced 2025-09-07 18:31:13 +00:00
Revert part of steve PR 633 (#708)
Specifically, recomment a test that was uncommented in this PR, and revert the underlying code that made this test pass. That code change causes user-based integration tests to fail, so something is not correct in that code. This was actually unrelated to the reason for PR 633, to fix a problem when sorting on a label that dropped objects that didn't have that label. That part remains untouched.
This commit is contained in:
@@ -977,20 +977,20 @@ func TestNewListOptionIndexerEasy(t *testing.T) {
|
||||
expectedContToken: "",
|
||||
expectedErr: nil,
|
||||
})
|
||||
tests = append(tests, testCase{
|
||||
description: "ListByOptions with a Namespace Partition should select only items where metadata.namespace is equal to Namespace and all other conditions are met",
|
||||
partitions: []partition.Partition{
|
||||
{
|
||||
Namespace: "ns-b",
|
||||
},
|
||||
},
|
||||
// XXX: Why do I need to specify the namespace here too?
|
||||
ns: "ns-b",
|
||||
expectedList: makeList(t, obj05__guard_lodgepole),
|
||||
expectedTotal: 1,
|
||||
expectedContToken: "",
|
||||
expectedErr: nil,
|
||||
})
|
||||
//tests = append(tests, testCase{
|
||||
// description: "ListByOptions with a Namespace Partition should select only items where metadata.namespace is equal to Namespace and all other conditions are met",
|
||||
// partitions: []partition.Partition{
|
||||
// {
|
||||
// Namespace: "ns-b",
|
||||
// },
|
||||
// },
|
||||
// // XXX: Why do I need to specify the namespace here too?
|
||||
// ns: "ns-b",
|
||||
// expectedList: makeList(t, obj05__guard_lodgepole),
|
||||
// expectedTotal: 1,
|
||||
// expectedContToken: "",
|
||||
// expectedErr: nil,
|
||||
//})
|
||||
|
||||
t.Parallel()
|
||||
|
||||
|
Reference in New Issue
Block a user