(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestClusterInstance(t *testing.T) { |
| 60 | s, err := AsSelector(ClusterInstance("daisy", "dog")) |
| 61 | assert.NilError(t, err) |
| 62 | assert.DeepEqual(t, s.String(), strings.Join([]string{ |
| 63 | "postgres-operator.crunchydata.com/cluster=daisy", |
| 64 | "postgres-operator.crunchydata.com/instance=dog", |
| 65 | }, ",")) |
| 66 | |
| 67 | _, err = AsSelector(ClusterInstance("--whoa/son", "--whoa/yikes")) |
| 68 | assert.ErrorContains(t, err, "Invalid") |
| 69 | } |
| 70 | |
| 71 | func TestClusterInstances(t *testing.T) { |
| 72 | s, err := AsSelector(ClusterInstances("something")) |
nothing calls this directly
no test coverage detected