Skip to content

Commit

Permalink
fix all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedanese committed Jul 15, 2015
1 parent b98df5d commit 337772a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion build/common.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function kube::build::source_targets() {
api
build
cmd
docs/getting-started-guides
docs
examples
Godeps/_workspace/src
Godeps/Godeps.json
Expand Down Expand Up @@ -770,6 +770,7 @@ function kube::release::package_full_tarball() {
cp -R "${KUBE_ROOT}/third_party/htpasswd" "${release_stage}/third_party/htpasswd"

cp -R "${KUBE_ROOT}/examples" "${release_stage}/"
cp -R "${KUBE_ROOT}/docs" "${release_stage}/"
cp "${KUBE_ROOT}/README.md" "${release_stage}/"
cp "${KUBE_ROOT}/LICENSE" "${release_stage}/"
cp "${KUBE_ROOT}/Vagrantfile" "${release_stage}/"
Expand Down
1 change: 0 additions & 1 deletion examples/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ func TestExampleObjectSchemas(t *testing.T) {
"replication": &api.ReplicationController{},
},
"../examples": {
"pod": &api.Pod{},
"scheduler-policy-config": &schedulerapi.Policy{},
},
"../examples/rbd/secret": {
Expand Down
2 changes: 1 addition & 1 deletion hack/test-update-storage-objects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ startApiServer

# Create a pod
kube::log::status "Creating a pod"
${KUBECTL} create -f examples/pod.yaml
${KUBECTL} create -f docs/user-guide/pod.yaml

killApiServer

Expand Down
6 changes: 3 additions & 3 deletions test/e2e/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var _ = Describe("Kubectl client", func() {
Describe("Update Demo", func() {
var updateDemoRoot, nautilusPath, kittenPath string
BeforeEach(func() {
updateDemoRoot = filepath.Join(testContext.RepoRoot, "examples/update-demo")
updateDemoRoot = filepath.Join(testContext.RepoRoot, "docs/user-guide/update-demo")
nautilusPath = filepath.Join(updateDemoRoot, "nautilus-rc.yaml")
kittenPath = filepath.Join(updateDemoRoot, "kitten-rc.yaml")
})
Expand Down Expand Up @@ -142,7 +142,7 @@ var _ = Describe("Kubectl client", func() {
var podPath string

BeforeEach(func() {
podPath = filepath.Join(testContext.RepoRoot, "examples/pod.yaml")
podPath = filepath.Join(testContext.RepoRoot, "docs/user-guide/pod.yaml")
By("creating the pod")
runKubectl("create", "-f", podPath, fmt.Sprintf("--namespace=%v", ns))
checkPodsRunningReady(c, ns, []string{simplePodName}, podStartTimeout)
Expand Down Expand Up @@ -206,7 +206,7 @@ var _ = Describe("Kubectl client", func() {
var podPath string
var nsFlag string
BeforeEach(func() {
podPath = filepath.Join(testContext.RepoRoot, "examples/pod.yaml")
podPath = filepath.Join(testContext.RepoRoot, "docs/user-guide/pod.yaml")
By("creating the pod")
nsFlag = fmt.Sprintf("--namespace=%v", ns)
runKubectl("create", "-f", podPath, nsFlag)
Expand Down

0 comments on commit 337772a

Please sign in to comment.