(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestClusterInstanceSets(t *testing.T) { |
| 96 | s, err := AsSelector(ClusterInstanceSets("something")) |
| 97 | assert.NilError(t, err) |
| 98 | assert.DeepEqual(t, s.String(), strings.Join([]string{ |
| 99 | "postgres-operator.crunchydata.com/cluster=something", |
| 100 | "postgres-operator.crunchydata.com/instance-set", |
| 101 | }, ",")) |
| 102 | |
| 103 | _, err = AsSelector(ClusterInstanceSets("--whoa/yikes")) |
| 104 | assert.ErrorContains(t, err, "Invalid") |
| 105 | } |
| 106 | |
| 107 | func TestClusterPatronis(t *testing.T) { |
| 108 | cluster := &v1beta1.PostgresCluster{} |
nothing calls this directly
no test coverage detected