mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
* Removed host tag tests as they now require real live nodes
This commit is contained in:
parent
aef8ba00e0
commit
65ad351c7f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user