(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestClusterInstanceSet(t *testing.T) { |
| 84 | s, err := AsSelector(ClusterInstanceSet("something", "also")) |
| 85 | assert.NilError(t, err) |
| 86 | assert.DeepEqual(t, s.String(), strings.Join([]string{ |
| 87 | "postgres-operator.crunchydata.com/cluster=something", |
| 88 | "postgres-operator.crunchydata.com/instance-set=also", |
| 89 | }, ",")) |
| 90 | |
| 91 | _, err = AsSelector(ClusterInstanceSet("--whoa/yikes", "ok")) |
| 92 | assert.ErrorContains(t, err, "Invalid") |
| 93 | } |
| 94 | |
| 95 | func TestClusterInstanceSets(t *testing.T) { |
| 96 | s, err := AsSelector(ClusterInstanceSets("something")) |
nothing calls this directly
no test coverage detected