fix misimplemented tests
@@ -1492,7 +1492,9 @@ func TestReconcileSubnets(t *testing.T) {
},
{
name: "With ManagedControlPlaneScope, Managed VPC, no existing subnets exist, two az's, expect two private and two public from default, created with tag including eksClusterName not a name of Cluster resource",
- input: NewClusterScope().WithNetwork(&infrav1.NetworkSpec{
+ input: NewManagedControlPlaneScope().
+ WithEKSClusterName("test-eks-cluster").
+ WithNetwork(&infrav1.NetworkSpec{
VPC: infrav1.VPCSpec{
ID: subnetsVPCID,
Tags: infrav1.Tags{
@@ -2194,6 +2196,7 @@ func (b *ManagedControlPlaneScopeBuilder) Build() (Scope, error) {
scheme := runtime.NewScheme()
_ = infrav1.AddToScheme(scheme)
+ _ = ekscontrolplanev1.AddToScheme(scheme)
client := fake.NewClientBuilder().WithScheme(scheme).Build()
param := &scope.ManagedControlPlaneScopeParams{
