website/content/en/examples
Qiming 6c80860a75 Improve examples test (#9467)
This PR moves the examples test to where it belongs and also include the
following improvements:

- Removed test cases defined for non-existent files;
- Add guard against ineffective tests against missing files;
- Remove the special case for scheduler-policy-config which is no longer
  an example, the dependency on the related go module is thus
  eliminated;
- Updated the .tavis.yml file to use the new test case: the instruction
  sequence is adjusted to ensure the correct version of kubernetes is
  fully prepared before we do `go get -v -t`.
- The examples_test.go is formatted using `gofmt`;
- Verbose output during test has been added.
- A separate test case is added for CN translation.

Related: #9285
2018-07-11 08:43:25 -07:00
..
admin Consolidate YAML files [part-15] (#9380) 2018-07-10 09:09:26 -07:00
application Consolidate YAML files [part-15] (#9380) 2018-07-10 09:09:26 -07:00
audit Consolidate YAML files [part-4] (#9241) 2018-07-02 11:17:19 -07:00
controllers Consolidate YAML files [part-8] (#9347) 2018-07-02 17:35:20 -07:00
debug Consolidate YAML files [part-4] (#9241) 2018-07-02 11:17:19 -07:00
federation Consolidate YAML files [part-15] (#9380) 2018-07-10 09:09:26 -07:00
minikube Consolidate YAML files [part-14] (#9379) 2018-07-03 23:58:20 -07:00
podpreset Consolidate YAML files [part-9] (#9361) 2018-07-03 11:50:19 -07:00
pods Consolidate YAML files [part-15] (#9380) 2018-07-10 09:09:26 -07:00
policy Consolidate YAML files [part-8] (#9347) 2018-07-02 17:35:20 -07:00
service Consolidate YAML files [part-13] (#9377) 2018-07-10 08:56:25 -07:00
windows Consolidate YAML files [part-14] (#9379) 2018-07-03 23:58:20 -07:00
README.md Improve examples test (#9467) 2018-07-11 08:43:25 -07:00
examples.go Improve examples test (#9467) 2018-07-11 08:43:25 -07:00
examples_test.go Improve examples test (#9467) 2018-07-11 08:43:25 -07:00

README.md

Note: These tests are importing code from kubernetes that isn't really meant to be used outside the repo. This causes vendoring problems. As a result, we have to work around those with these lines in the travis config:

- rm $GOPATH/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery
- rm $GOPATH/src/k8s.io/kubernetes/vendor/k8s.io/apiserver
- rm $GOPATH/src/k8s.io/kubernetes/vendor/k8s.io/client-go
- cp -r $GOPATH/src/k8s.io/kubernetes/vendor/* $GOPATH/src/
- rm -rf $GOPATH/src/k8s.io/kubernetes/vendor/*
- cp -r $GOPATH/src/k8s.io/kubernetes/staging/src/* $GOPATH/src/