We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a266b commit 0ceef0eCopy full SHA for 0ceef0e
internal/controller/standalone_pgadmin/users_test.go
@@ -266,13 +266,16 @@ func TestWritePGAdminUsers(t *testing.T) {
266
resources: { requests: { storage: 1Gi } },
267
},
268
}`)
269
- require.UnmarshalInto(t, &pgadmin.Status, `{
270
- imageSHA: "fakesha",
271
- majorVersion: 9,
272
- minorVersion: "9.3"
273
- }`)
274
assert.NilError(t, cc.Create(ctx, pgadmin))
275
+ // fake the status so that the correct commands will be used when creating
+ // users.
+ pgadmin.Status = v1beta1.PGAdminStatus{
+ ImageSHA: "fakesha",
+ MajorVersion: 9,
276
+ MinorVersion: "9.3",
277
+ }
278
+
279
userPasswordSecret1 := &corev1.Secret{
280
ObjectMeta: metav1.ObjectMeta{
281
Name: "user-password-secret1",
0 commit comments