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

This commit is contained in:
Kenneth Shelton 2015-09-23 09:10:52 -07:00
parent aef8ba00e0
commit 65ad351c7f

View File

@ -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