Adding a unit test to verify that partitioned rolling upgrade for a statefulset works.

Signed-off-by: Aman Nijhawan <anijhawan@yugabyte.com>
pull/11774/head
Aman Nijhawan 3 years ago
parent 4b3db5b91c
commit 9f26a36bcd

@ -189,6 +189,13 @@ func Test_ReadyChecker_statefulSetReady(t *testing.T) {
}, },
want: false, want: false,
}, },
{
name: "statefulset is ready when current revision for current replicas does not match update revision for updated replicas when using partition !=0",
args: args{
sts: newStatefulSetWithUpdateRevision("foo", 3, 2, 3, 3, "foo-bbbbbbb"),
},
want: true,
},
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {

Loading…
Cancel
Save