@@ -386,7 +386,7 @@ func TestObserve(t *testing.T) {
386386 mg : serviceInstance ("managed" ,
387387 withExternalName (guid ),
388388 withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }),
389- withStatus (v1alpha1.ServiceInstanceObservation {ID : & guid , ServicePlan : & servicePlan }),
389+ withStatus (v1alpha1.ServiceInstanceObservation {ID : & guid , ServicePlan : & servicePlan , Credentials : iSha256 ( * fake . JSONRawMessage ( "{ \" foo \" : \" bar \" }" )) }),
390390 withConditions (xpv1 .Available ()),
391391 withParameters ("{\" foo\" :\" bar\" , \" baz\" : 1}" ),
392392 withDriftDetection (true ),
@@ -413,13 +413,13 @@ func TestObserve(t *testing.T) {
413413 },
414414 "DriftDetectionBreak" : {
415415 args : args {
416- mg : serviceInstance ("managed" , withExternalName (guid ), withSpace (spaceGUID ), withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }), withParameters ("{\" foo\" :\" bar\" , \" baz\" : 1}" ), withDriftDetection (false )),
416+ mg : serviceInstance ("managed" , withExternalName (guid ), withSpace (spaceGUID ), withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }), withParameters ("{\" foo\" :\" bar\" , \" baz\" : 1}" ), withDriftDetection (false ), withStatus (v1alpha1. ServiceInstanceObservation { Credentials : iSha256 ([] byte ( "{ \" foo \" : \" bar \" , \" baz \" : 1}" ))}) ),
417417 },
418418 want : want {
419419 mg : serviceInstance ("managed" ,
420420 withExternalName (guid ),
421421 withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }),
422- withStatus (v1alpha1.ServiceInstanceObservation {ID : & guid , ServicePlan : & servicePlan }),
422+ withStatus (v1alpha1.ServiceInstanceObservation {ID : & guid , ServicePlan : & servicePlan , Credentials : iSha256 ([] byte ( "{ \" foo \" : \" bar \" , \" baz \" : 1}" )) }),
423423 withConditions (xpv1 .Available ()),
424424 withParameters ("{\" foo\" :\" bar\" , \" baz\" : 1}" ),
425425 withDriftDetection (false ),
@@ -532,7 +532,7 @@ func TestCreate(t *testing.T) {
532532 mg : serviceInstance ("managed" , withSpace (spaceGUID ), withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }), withCredentials (& jsonCredentials )),
533533 },
534534 want : want {
535- mg : serviceInstance ("managed" , withSpace (spaceGUID ), withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }), withCredentials (& jsonCredentials ), withConditions (xpv1 .Creating ()), withExternalName (guid ), withStatus (v1alpha1.ServiceInstanceObservation {Credentials : []byte (jsonCredentials )})),
535+ mg : serviceInstance ("managed" , withSpace (spaceGUID ), withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }), withCredentials (& jsonCredentials ), withConditions (xpv1 .Creating ()), withExternalName (guid ), withStatus (v1alpha1.ServiceInstanceObservation {Credentials : iSha256 ( []byte (jsonCredentials ) )})),
536536 obs : managed.ExternalCreation {},
537537 err : nil ,
538538 },
@@ -713,7 +713,7 @@ func TestUpdate(t *testing.T) {
713713 mg : serviceInstance ("managed" , withSpace (spaceGUID ), withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }), withExternalName (guid ), withStatus (v1alpha1.ServiceInstanceObservation {ID : & guid }), withCredentials (& jsonCredentials )),
714714 },
715715 want : want {
716- mg : serviceInstance ("managed" , withSpace (spaceGUID ), withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }), withCredentials (& jsonCredentials ), withExternalName (guid ), withStatus (v1alpha1.ServiceInstanceObservation {ID : & guid , Credentials : * fake . JSONRawMessage ( jsonCredentials )})),
716+ mg : serviceInstance ("managed" , withSpace (spaceGUID ), withServicePlan (v1alpha1.ServicePlanParameters {ID : & servicePlan }), withCredentials (& jsonCredentials ), withExternalName (guid ), withStatus (v1alpha1.ServiceInstanceObservation {ID : & guid , Credentials : iSha256 ([] byte ( jsonCredentials ) )})),
717717 obs : managed.ExternalUpdate {},
718718 err : nil ,
719719 },
@@ -894,7 +894,7 @@ func TestJSONContain(t *testing.T) {
894894 "Superset" : {
895895 args : args {
896896 a : `{ "bar": 1, "baz": "baz", "foo":"foo"}` ,
897- b : `{"foo":"foo",
897+ b : `{"foo":"foo",
898898 "bar": 1}` ,
899899 },
900900 want : want {
0 commit comments