kuttl icon indicating copy to clipboard operation
kuttl copied to clipboard

Test harness should support asserting that a specific number of a resource exist when listing

Open oliviabarrick opened this issue 5 years ago • 1 comments

What would you like to be added:

In the test harness, you can match objects without specifying a name, for example:

apiVersion: v1
kind: Pod
metadata:
  labels:
    app: nginx
status:
  state: READY

It should be possible to specify how many objects match.

Why is this needed:

This can be used to verify that a certain number of pods are ready or a certain number of plan executions exist.

oliviabarrick avatar Jul 02 '19 23:07 oliviabarrick

Depending on how we design this, this may be the same as kudobuilder/kudo#494

oliviabarrick avatar Jul 02 '19 23:07 oliviabarrick