Few tests assert by checking the status of Deployment and/or StatefulSet. Only replicas and/or readyReplicas are checked. We should also check updatedReplicas to ensure it has the expected value. Otherwise, the old pod that's in ready state will be considered while evaluating pass/fail. Checking all 3 values will ensure that the Deployment/StatfulSet is in expected state.
Few tests assert by checking the status of Deployment and/or StatefulSet. Only replicas and/or readyReplicas are checked. We should also check updatedReplicas to ensure it has the expected value. Otherwise, the old pod that's in ready state will be considered while evaluating pass/fail. Checking all 3 values will ensure that the Deployment/StatfulSet is in expected state.