Skip to content

Commit

Permalink
test subnet
Browse files Browse the repository at this point in the history
Signed-off-by: Wenqi Qiu <[email protected]>
  • Loading branch information
wenqiq committed Aug 15, 2024
1 parent 56d117b commit eec1866
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
7 changes: 7 additions & 0 deletions pkg/apis/vpc/v1alpha1/subnet_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ import (

type AccessMode string

const (
AccessModePublic string = "Public"
AccessModePrivate string = "Private"
AccessModeProject string = "PrivateTGW"
AccessModeProjectInNSX string = "Private_TGW"
)

// SubnetSpec defines the desired state of Subnet.
type SubnetSpec struct {
// Size of Subnet based upon estimated workload count.
Expand Down
7 changes: 0 additions & 7 deletions pkg/apis/vpc/v1alpha1/vpcnetworkconfiguration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const (
AccessModePublic string = "Public"
AccessModePrivate string = "Private"
AccessModeProject string = "PrivateTGW"
AccessModeProjectInNSX string = "Private_TGW"
)

// VPCNetworkConfigurationSpec defines the desired state of VPCNetworkConfiguration.
// There is a default VPCNetworkConfiguration that applies to Namespaces
// do not have a VPCNetworkConfiguration assigned. When a field is not set
Expand Down
1 change: 1 addition & 0 deletions test/e2e/manifest/testSubnet/subnetset-dhcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ metadata:
name: user-pod-subnetset-dhcp
namespace: subnet-e2e
spec:
accessMode: PrivateTGW
DHCPConfig:
enableDHCP: true
1 change: 1 addition & 0 deletions test/e2e/manifest/testSubnet/subnetset-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: user-pod-subnetset-static
namespace: subnet-e2e
spec:
accessMode: Private
advancedConfig:
staticIPAllocation:
enable: true
1 change: 0 additions & 1 deletion test/e2e/nsx_subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ func TestSubnetSet(t *testing.T) {
teardownTest(t, E2ENamespaceTarget, SubnetDeletionTimeout)
})

t.Skip("Skip test")
t.Run("case=DefaultSubnetSet", defaultSubnetSet)
t.Run("case=UserSubnetSet", UserSubnetSet)
t.Run("case=SharedSubnetSet", sharedSubnetSet)
Expand Down

0 comments on commit eec1866

Please sign in to comment.