mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Rename dnsprovider/providers/aws/route53/internal/testing to stubs.
This commit is contained in:
parent
38b501806f
commit
acaad60620
@ -18,19 +18,19 @@ package route53
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"k8s.io/kubernetes/federation/pkg/dnsprovider"
|
"k8s.io/kubernetes/federation/pkg/dnsprovider"
|
||||||
"k8s.io/kubernetes/federation/pkg/dnsprovider/providers/aws/route53/testing"
|
"k8s.io/kubernetes/federation/pkg/dnsprovider/providers/aws/route53/stubs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Compile time check for interface adeherence
|
// Compile time check for interface adeherence
|
||||||
var _ dnsprovider.Interface = Interface{}
|
var _ dnsprovider.Interface = Interface{}
|
||||||
|
|
||||||
type Interface struct {
|
type Interface struct {
|
||||||
service testing.Route53API
|
service stubs.Route53API
|
||||||
}
|
}
|
||||||
|
|
||||||
// newInterfaceWithStub facilitates stubbing out the underlying AWS Route53
|
// newInterfaceWithStub facilitates stubbing out the underlying AWS Route53
|
||||||
// library for testing purposes. It returns an provider-independent interface.
|
// library for testing purposes. It returns an provider-independent interface.
|
||||||
func newInterfaceWithStub(service testing.Route53API) *Interface {
|
func newInterfaceWithStub(service stubs.Route53API) *Interface {
|
||||||
return &Interface{service}
|
return &Interface{service}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"k8s.io/kubernetes/federation/pkg/dnsprovider"
|
"k8s.io/kubernetes/federation/pkg/dnsprovider"
|
||||||
route53testing "k8s.io/kubernetes/federation/pkg/dnsprovider/providers/aws/route53/testing"
|
route53testing "k8s.io/kubernetes/federation/pkg/dnsprovider/providers/aws/route53/stubs"
|
||||||
"k8s.io/kubernetes/federation/pkg/dnsprovider/rrstype"
|
"k8s.io/kubernetes/federation/pkg/dnsprovider/rrstype"
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws"
|
"github.com/aws/aws-sdk-go/aws"
|
||||||
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* internal implements a stub for the AWS Route53 API, used primarily for unit testing purposes */
|
/* internal implements a stub for the AWS Route53 API, used primarily for unit testing purposes */
|
||||||
package testing
|
package stubs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
Loading…
Reference in New Issue
Block a user