Add unit tests for examples

You mean include route/api in latest?  Yes


> On Oct 1, 2014, at 2:20 PM, Vojtech Vitek <notifications@github.com> wrote:
> 
> In examples/examples_test.go:
> 
> > +package examples
> > +
> > +import (
> > +	"io/ioutil"
> > +	"os"
> > +	"path/filepath"
> > +
> > +	"testing"
> > +
> > +	kubeapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api"
> > +	"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
> > +
> > +	"github.com/openshift/origin/pkg/api/latest"
> > +	buildapi "github.com/openshift/origin/pkg/build/api"
> > +	configapi "github.com/openshift/origin/pkg/config/api"
> > +	_ "github.com/openshift/origin/pkg/route/api"
> I already included 'pkg/latest', see line 13. But if I remove Line 16, I get error examples_test.go:55: Unexpected error while decoding example JSON file 'guestbook/template.json': No type 'Route' for version ''
> 
> The only way to fix this would be to include _ "github.com/openshift/origin/pkg/api" in the 'pkg/latest'.
> Is that correct? Or am I missing something?
> 
> —
> Reply to this email directly or view it on GitHub.