mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
Move FakeCloud into its own pkg
This commit is contained in:
@@ -20,12 +20,12 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/cloudprovider"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/cloudprovider/fake"
|
||||
)
|
||||
|
||||
func TestCloudList(t *testing.T) {
|
||||
instances := []string{"m1", "m2"}
|
||||
fakeCloud := cloudprovider.FakeCloud{
|
||||
fakeCloud := fake_cloud.FakeCloud{
|
||||
Machines: instances,
|
||||
}
|
||||
registry, err := NewCloudRegistry(&fakeCloud, ".*")
|
||||
@@ -45,7 +45,7 @@ func TestCloudList(t *testing.T) {
|
||||
|
||||
func TestCloudContains(t *testing.T) {
|
||||
instances := []string{"m1", "m2"}
|
||||
fakeCloud := cloudprovider.FakeCloud{
|
||||
fakeCloud := fake_cloud.FakeCloud{
|
||||
Machines: instances,
|
||||
}
|
||||
registry, err := NewCloudRegistry(&fakeCloud, ".*")
|
||||
@@ -74,7 +74,7 @@ func TestCloudContains(t *testing.T) {
|
||||
|
||||
func TestCloudListRegexp(t *testing.T) {
|
||||
instances := []string{"m1", "m2", "n1", "n2"}
|
||||
fakeCloud := cloudprovider.FakeCloud{
|
||||
fakeCloud := fake_cloud.FakeCloud{
|
||||
Machines: instances,
|
||||
}
|
||||
registry, err := NewCloudRegistry(&fakeCloud, "m[0-9]+")
|
||||
|
Reference in New Issue
Block a user