Skip to content

Commit

Permalink
Merge pull request kubernetes#3724 from satnam6502/noenv
Browse files Browse the repository at this point in the history
Remove use of KUBERNETES_PROVIDER env var from Go end to end tests
  • Loading branch information
filbranden committed Jan 22, 2015
2 parents fa3cb55 + 1bae69a commit 7d0e1f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions test/e2e/cluster_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package e2e

import (
"fmt"
"os"
"time"

"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
Expand All @@ -32,7 +31,7 @@ func TestClusterDNS(c *client.Client) bool {
// https://github.com/GoogleCloudPlatform/kubernetes/issues/3305
// (but even if it's fixed, this will need a version check for
// skewed version tests)
if os.Getenv("KUBERNETES_PROVIDER") == "gke" {
if testContext.provider == "gke" {
glog.Infof("skipping TestClusterDNS on gke")
return true
}
Expand Down
6 changes: 1 addition & 5 deletions test/e2e/kubelet_sends_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package e2e

import (
"os"
"strconv"
"time"

Expand All @@ -29,14 +28,11 @@ import (

// TestKubeletSendsEvent checks that kubelets and scheduler send events about pods scheduling and running.
func TestKubeletSendsEvent(c *client.Client) bool {
provider := os.Getenv("KUBERNETES_PROVIDER")
provider := testContext.provider
if len(provider) > 0 && provider != "gce" && provider != "gke" {
glog.Infof("skipping TestKubeletSendsEvent on cloud provider %s", provider)
return true
}
if provider == "" {
glog.Info("KUBERNETES_PROVIDER is unset; assuming \"gce\"")
}

podClient := c.Pods(api.NamespaceDefault)

Expand Down

0 comments on commit 7d0e1f0

Please sign in to comment.