https://github.com/openshift/origin/pull/13361 has just merged and makes it
so that running `extended.test` (generated via RPM or the normal build) no
longer requires a copy of the Git repository checked out for the tests to
run - instead, the files the tests depend on are part of the generated
binary.  This allows for running the extended suite against clusters using
only the binaries generated as part of the RPM builds (the openshift-test
RPM already contains extended.test).

Use hack/update-generated-bindata.sh to turn files on disk into the
appropriate form and then rebuild your binary.  We'll be expanding this to
other test suites over time.

To add a new test fixture to the extended suites:

    $ vi test/extended/testdata/my-super-awesome-new-resource.yaml
    $ hack/update-generated-bindata.sh

    // updates test/extended/bindata.go

    $ test/extended/conformance.sh ... OR
    $ hack/build-go.sh test/extended/extended.test

When running the compiled binary, a temporary directory will be created
containing any files that were part of bindata.  Continue to use
`FixturePath(path)` to get the filename.

If you want to use examples, you may need to add a subset of the example
paths as input to the generator script - be judicious in what you include.
_______________________________________________
dev mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

Reply via email to