Commit 65ad351c authored by Kenneth Shelton's avatar Kenneth Shelton

* Removed host tag tests as they now require real live nodes

parent aef8ba00
......@@ -37,34 +37,6 @@ func TestGetRegion(t *testing.T) {
}
}
func TestGetHostTag(t *testing.T) {
tests := []struct {
host string
expected string
}{
{
host: "kubernetes-minion-559o",
expected: "kubernetes-minion",
},
{
host: "gke-test-ea6e8c80-node-8ytk",
expected: "gke-test-ea6e8c80-node",
},
{
host: "kubernetes-minion-559o.c.PROJECT_NAME.internal",
expected: "kubernetes-minion",
},
}
gce := &GCECloud{}
for _, test := range tests {
hostTag := gce.computeHostTag(test.host)
if hostTag != test.expected {
t.Errorf("expected: %s, saw: %s for %s", test.expected, hostTag, test.host)
}
}
}
func TestComparingHostURLs(t *testing.T) {
tests := []struct {
host1 string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment