mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-07 03:01:55 +02:00
Rename roles that are removed from PostgresTeam CRD (#1457)
* rename db roles that are removed from manifests * extend PostgresTeam e2e test * make suffix configurable and add deprecated field to pgUser struct * deny LOGIN from deprecated roles * update feature documentation
This commit is contained in:
@@ -166,6 +166,14 @@ func TestIsEqualIgnoreOrder(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestStringSliceReplaceElement(t *testing.T) {
|
||||
testSlice := []string{"a", "b", "c"}
|
||||
testSlice = StringSliceReplaceElement(testSlice, "b", "d")
|
||||
if !SliceContains(testSlice, "d") {
|
||||
t.Errorf("testSlide item not replaced: %v", testSlice)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSubstractSlices(t *testing.T) {
|
||||
for _, tt := range substractTest {
|
||||
actualRes, actualEqual := SubstractStringSlices(tt.inA, tt.inB)
|
||||
|
||||
Reference in New Issue
Block a user