// TestExternalIDUserProvided makes sure we don't modify a user-specified ExternalID.
TestExternalIDUserProvided makes sure we don't modify a user-specified ExternalID.
// TestExternalIDUserProvided makes sure we don ' t modify a user - specified ExternalID .
func TestExternalIDUserProvided(t *testing.T) {
	userExternalID := "my-id"
	createdInstanceCredential := getTestInstance()
	createdInstanceCredential.Spec.ExternalID = userExternalID
	creatorUserName := "creator"
	createContext := sctestutil.ContextWithUserName(creatorUserName)
	instanceRESTStrategies.PrepareForCreate(createContext, createdInstanceCredential)
	if createdInstanceCredential.Spec.ExternalID != userExternalID {
		t.Errorf("Modified user provided ExternalID to %q", createdInstanceCredential.Spec.ExternalID)
	}
}
func TestExternalIDUserProvided ( t * testing . T ) { userExternalID := " " createdInstanceCredential := getTestInstance ( ) createdInstanceCredential . Spec . ExternalID = userExternalID creatorUserName := " " createContext := sctestutil . ContextWithUserName ( creatorUserName ) instanceRESTStrategies . PrepareForCreate ( createContext , createdInstanceCredential ) if createdInstanceCredential . Spec . ExternalID != userExternalID { t . Errorf ( " " , createdInstanceCredential . Spec . ExternalID ) } }
TestExternalIDUserProvided makes sure we don't modify a user-specified ExternalID.
TestExternalIDUserProvided makes sure we don ' t modify a user - specified ExternalID .