// TestExternalIDSet checks that we set the ExternalID if the user doesn't provide it.
TestExternalIDSet checks that we set the ExternalID if the user doesn't provide it.
// TestExternalIDSet checks that we set the ExternalID if the user doesn ' t provide it .
func TestExternalIDSet(t *testing.T) {
	createdInstanceCredential := getTestInstance()
	creatorUserName := "creator"
	createContext := sctestutil.ContextWithUserName(creatorUserName)
	instanceRESTStrategies.PrepareForCreate(createContext, createdInstanceCredential)
	if createdInstanceCredential.Spec.ExternalID == "" {
		t.Error("Expected an ExternalID to be set, but got none")
	}
}
func TestExternalIDSet ( t * testing . T ) { createdInstanceCredential := getTestInstance ( ) creatorUserName := " " createContext := sctestutil . ContextWithUserName ( creatorUserName ) instanceRESTStrategies . PrepareForCreate ( createContext , createdInstanceCredential ) if createdInstanceCredential . Spec . ExternalID == " " { t . Error ( " " ) } }
TestExternalIDSet checks that we set the ExternalID if the user doesn't provide it.
TestExternalIDSet checks that we set the ExternalID if the user doesn ' t provide it .