Skip to content

Commit

Permalink
WIP DO NOT MERGE: DNS Propagation Test
Browse files Browse the repository at this point in the history
  • Loading branch information
gcs278 committed Nov 12, 2024
1 parent aa8860a commit 2c8d128
Show file tree
Hide file tree
Showing 3 changed files with 597 additions and 104 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ release-local:

.PHONY: test-e2e
test-e2e: generate
CGO_ENABLED=1 $(GO) test -timeout 1h -count 1 -v -tags e2e -run "$(TEST)" ./test/e2e
CGO_ENABLED=1 $(GO) test -timeout 4h -count 1 -v -tags e2e -run "$(TEST)" ./test/e2e

.PHONY: test-e2e-list
test-e2e-list: generate
Expand Down
207 changes: 104 additions & 103 deletions test/e2e/all_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,110 +19,111 @@ func TestAll(t *testing.T) {
// This call to Run() will not return until all of its
// parallel subtests complete. Each "parallel" test must
// invoke t.Parallel().
t.Run("parallel", func(t *testing.T) {
t.Run("TestAWSELBConnectionIdleTimeout", TestAWSELBConnectionIdleTimeout)
t.Run("TestClientTLS", TestClientTLS)
t.Run("TestMTLSWithCRLs", TestMTLSWithCRLs)
t.Run("TestCRLUpdate", TestCRLUpdate)
t.Run("TestContainerLogging", TestContainerLogging)
t.Run("TestContainerLoggingMaxLength", TestContainerLoggingMaxLength)
t.Run("TestContainerLoggingMinLength", TestContainerLoggingMinLength)
t.Run("TestCustomErrorpages", TestCustomErrorpages)
t.Run("TestCustomIngressClass", TestCustomIngressClass)
t.Run("TestDomainNotMatchingBase", TestDomainNotMatchingBase)
t.Run("TestUnsupportedConfigOverride", TestUnsupportedConfigOverride)
t.Run("TestForwardedHeaderPolicyAppend", TestForwardedHeaderPolicyAppend)
t.Run("TestForwardedHeaderPolicyIfNone", TestForwardedHeaderPolicyIfNone)
t.Run("TestForwardedHeaderPolicyNever", TestForwardedHeaderPolicyNever)
t.Run("TestForwardedHeaderPolicyReplace", TestForwardedHeaderPolicyReplace)
t.Run("TestHAProxyTimeouts", TestHAProxyTimeouts)
t.Run("TestHAProxyTimeoutsRejection", TestHAProxyTimeoutsRejection)
t.Run("TestCookieLen", TestCookieLen)
t.Run("TestHTTPCookieCapture", TestHTTPCookieCapture)
t.Run("TestHTTPHeaderBufferSize", TestHTTPHeaderBufferSize)
t.Run("TestHTTPHeaderCapture", TestHTTPHeaderCapture)
t.Run("TestHeaderNameCaseAdjustment", TestHeaderNameCaseAdjustment)
t.Run("TestHealthCheckIntervalIngressController", TestHealthCheckIntervalIngressController)
t.Run("TestHostNetworkEndpointPublishingStrategy", TestHostNetworkEndpointPublishingStrategy)
t.Run("TestIngressControllerScale", TestIngressControllerScale)
t.Run("TestIngressControllerServiceNameCollision", TestIngressControllerServiceNameCollision)
t.Run("TestInternalLoadBalancer", TestInternalLoadBalancer)
t.Run("TestInternalLoadBalancerGlobalAccessGCP", TestInternalLoadBalancerGlobalAccessGCP)
t.Run("TestLoadBalancingAlgorithmUnsupportedConfigOverride", TestLoadBalancingAlgorithmUnsupportedConfigOverride)
t.Run("TestLocalWithFallbackOverrideForNodePortService", TestLocalWithFallbackOverrideForNodePortService)
t.Run("TestNetworkLoadBalancer", TestNetworkLoadBalancer)
t.Run("TestNodePortServiceEndpointPublishingStrategy", TestNodePortServiceEndpointPublishingStrategy)
t.Run("TestProxyProtocolAPI", TestProxyProtocolAPI)
t.Run("TestRouteAdmissionPolicy", TestRouteAdmissionPolicy)
t.Run("TestRouterCompressionParsing", TestRouterCompressionParsing)
t.Run("TestScopeChange", TestScopeChange)
t.Run("TestSyslogLogging", TestSyslogLogging)
t.Run("TestTLSSecurityProfile", TestTLSSecurityProfile)
t.Run("TestTunableMaxConnectionsInvalidValues", TestTunableMaxConnectionsInvalidValues)
t.Run("TestTunableMaxConnectionsValidValues", TestTunableMaxConnectionsValidValues)
t.Run("TestTunableRouterKubeletProbesForCustomIngressController", TestTunableRouterKubeletProbesForCustomIngressController)
t.Run("TestUniqueDomainRejection", TestUniqueDomainRejection)
t.Run("TestUniqueIdHeader", TestUniqueIdHeader)
t.Run("TestUserDefinedIngressController", TestUserDefinedIngressController)
t.Run("TestIngressOperatorCacheIsNotGlobal", TestIngressOperatorCacheIsNotGlobal)
t.Run("TestDeleteIngressControllerShouldClearRouteStatus", TestDeleteIngressControllerShouldClearRouteStatus)
t.Run("TestIngressControllerRouteSelectorUpdateShouldClearRouteStatus", TestIngressControllerRouteSelectorUpdateShouldClearRouteStatus)
t.Run("TestIngressControllerNamespaceSelectorUpdateShouldClearRouteStatus", TestIngressControllerNamespaceSelectorUpdateShouldClearRouteStatus)
t.Run("TestReloadInterval", TestReloadInterval)
t.Run("TestAWSLBTypeChange", TestAWSLBTypeChange)
t.Run("TestAllowedSourceRanges", TestAllowedSourceRanges)
t.Run("TestAllowedSourceRangesStatus", TestAllowedSourceRangesStatus)
t.Run("TestSourceRangesProgressingAndEvaluationConditionsDetectedStatuses", TestSourceRangesProgressingAndEvaluationConditionsDetectedStatuses)
t.Run("TestUnmanagedDNSToManagedDNSIngressController", TestUnmanagedDNSToManagedDNSIngressController)
t.Run("TestManagedDNSToUnmanagedDNSIngressController", TestManagedDNSToUnmanagedDNSIngressController)
t.Run("TestUnmanagedDNSToManagedDNSInternalIngressController", TestUnmanagedDNSToManagedDNSInternalIngressController)
t.Run("TestRouteMetricsControllerOnlyRouteSelector", TestRouteMetricsControllerOnlyRouteSelector)
t.Run("TestRouteMetricsControllerOnlyNamespaceSelector", TestRouteMetricsControllerOnlyNamespaceSelector)
t.Run("TestRouteMetricsControllerRouteAndNamespaceSelector", TestRouteMetricsControllerRouteAndNamespaceSelector)
t.Run("TestSetIngressControllerResponseHeaders", TestSetIngressControllerResponseHeaders)
t.Run("TestSetRouteResponseHeaders", TestSetRouteResponseHeaders)
t.Run("TestReconcileInternalService", TestReconcileInternalService)
t.Run("TestConnectTimeout", TestConnectTimeout)
t.Run("TestGatewayAPI", TestGatewayAPI)
t.Run("TestAWSLBSubnets", TestAWSLBSubnets)
t.Run("TestUnmanagedAWSLBSubnets", TestUnmanagedAWSLBSubnets)
t.Run("TestAWSEIPAllocationsForNLB", TestAWSEIPAllocationsForNLB)
t.Run("TestUnmanagedAWSEIPAllocations", TestUnmanagedAWSEIPAllocations)
})
//t.Run("parallel", func(t *testing.T) {
// t.Run("TestAWSELBConnectionIdleTimeout", TestAWSELBConnectionIdleTimeout)
// t.Run("TestClientTLS", TestClientTLS)
// t.Run("TestMTLSWithCRLs", TestMTLSWithCRLs)
// t.Run("TestCRLUpdate", TestCRLUpdate)
// t.Run("TestContainerLogging", TestContainerLogging)
// t.Run("TestContainerLoggingMaxLength", TestContainerLoggingMaxLength)
// t.Run("TestContainerLoggingMinLength", TestContainerLoggingMinLength)
// t.Run("TestCustomErrorpages", TestCustomErrorpages)
// t.Run("TestCustomIngressClass", TestCustomIngressClass)
// t.Run("TestDomainNotMatchingBase", TestDomainNotMatchingBase)
// t.Run("TestUnsupportedConfigOverride", TestUnsupportedConfigOverride)
// t.Run("TestForwardedHeaderPolicyAppend", TestForwardedHeaderPolicyAppend)
// t.Run("TestForwardedHeaderPolicyIfNone", TestForwardedHeaderPolicyIfNone)
// t.Run("TestForwardedHeaderPolicyNever", TestForwardedHeaderPolicyNever)
// t.Run("TestForwardedHeaderPolicyReplace", TestForwardedHeaderPolicyReplace)
// t.Run("TestHAProxyTimeouts", TestHAProxyTimeouts)
// t.Run("TestHAProxyTimeoutsRejection", TestHAProxyTimeoutsRejection)
// t.Run("TestCookieLen", TestCookieLen)
// t.Run("TestHTTPCookieCapture", TestHTTPCookieCapture)
// t.Run("TestHTTPHeaderBufferSize", TestHTTPHeaderBufferSize)
// t.Run("TestHTTPHeaderCapture", TestHTTPHeaderCapture)
// t.Run("TestHeaderNameCaseAdjustment", TestHeaderNameCaseAdjustment)
// t.Run("TestHealthCheckIntervalIngressController", TestHealthCheckIntervalIngressController)
// t.Run("TestHostNetworkEndpointPublishingStrategy", TestHostNetworkEndpointPublishingStrategy)
// t.Run("TestIngressControllerScale", TestIngressControllerScale)
// t.Run("TestIngressControllerServiceNameCollision", TestIngressControllerServiceNameCollision)
// t.Run("TestInternalLoadBalancer", TestInternalLoadBalancer)
// t.Run("TestInternalLoadBalancerGlobalAccessGCP", TestInternalLoadBalancerGlobalAccessGCP)
// t.Run("TestLoadBalancingAlgorithmUnsupportedConfigOverride", TestLoadBalancingAlgorithmUnsupportedConfigOverride)
// t.Run("TestLocalWithFallbackOverrideForNodePortService", TestLocalWithFallbackOverrideForNodePortService)
// t.Run("TestNetworkLoadBalancer", TestNetworkLoadBalancer)
// t.Run("TestNodePortServiceEndpointPublishingStrategy", TestNodePortServiceEndpointPublishingStrategy)
// t.Run("TestProxyProtocolAPI", TestProxyProtocolAPI)
// t.Run("TestRouteAdmissionPolicy", TestRouteAdmissionPolicy)
// t.Run("TestRouterCompressionParsing", TestRouterCompressionParsing)
// t.Run("TestScopeChange", TestScopeChange)
// t.Run("TestSyslogLogging", TestSyslogLogging)
// t.Run("TestTLSSecurityProfile", TestTLSSecurityProfile)
// t.Run("TestTunableMaxConnectionsInvalidValues", TestTunableMaxConnectionsInvalidValues)
// t.Run("TestTunableMaxConnectionsValidValues", TestTunableMaxConnectionsValidValues)
// t.Run("TestTunableRouterKubeletProbesForCustomIngressController", TestTunableRouterKubeletProbesForCustomIngressController)
// t.Run("TestUniqueDomainRejection", TestUniqueDomainRejection)
// t.Run("TestUniqueIdHeader", TestUniqueIdHeader)
// t.Run("TestUserDefinedIngressController", TestUserDefinedIngressController)
// t.Run("TestIngressOperatorCacheIsNotGlobal", TestIngressOperatorCacheIsNotGlobal)
// t.Run("TestDeleteIngressControllerShouldClearRouteStatus", TestDeleteIngressControllerShouldClearRouteStatus)
// t.Run("TestIngressControllerRouteSelectorUpdateShouldClearRouteStatus", TestIngressControllerRouteSelectorUpdateShouldClearRouteStatus)
// t.Run("TestIngressControllerNamespaceSelectorUpdateShouldClearRouteStatus", TestIngressControllerNamespaceSelectorUpdateShouldClearRouteStatus)
// t.Run("TestReloadInterval", TestReloadInterval)
// t.Run("TestAWSLBTypeChange", TestAWSLBTypeChange)
// t.Run("TestAllowedSourceRanges", TestAllowedSourceRanges)
// t.Run("TestAllowedSourceRangesStatus", TestAllowedSourceRangesStatus)
// t.Run("TestSourceRangesProgressingAndEvaluationConditionsDetectedStatuses", TestSourceRangesProgressingAndEvaluationConditionsDetectedStatuses)
// t.Run("TestUnmanagedDNSToManagedDNSIngressController", TestUnmanagedDNSToManagedDNSIngressController)
// t.Run("TestManagedDNSToUnmanagedDNSIngressController", TestManagedDNSToUnmanagedDNSIngressController)
// t.Run("TestUnmanagedDNSToManagedDNSInternalIngressController", TestUnmanagedDNSToManagedDNSInternalIngressController)
// t.Run("TestRouteMetricsControllerOnlyRouteSelector", TestRouteMetricsControllerOnlyRouteSelector)
// t.Run("TestRouteMetricsControllerOnlyNamespaceSelector", TestRouteMetricsControllerOnlyNamespaceSelector)
// t.Run("TestRouteMetricsControllerRouteAndNamespaceSelector", TestRouteMetricsControllerRouteAndNamespaceSelector)
// t.Run("TestSetIngressControllerResponseHeaders", TestSetIngressControllerResponseHeaders)
// t.Run("TestSetRouteResponseHeaders", TestSetRouteResponseHeaders)
// t.Run("TestReconcileInternalService", TestReconcileInternalService)
// t.Run("TestConnectTimeout", TestConnectTimeout)
// t.Run("TestGatewayAPI", TestGatewayAPI)
// t.Run("TestAWSLBSubnets", TestAWSLBSubnets)
// t.Run("TestUnmanagedAWSLBSubnets", TestUnmanagedAWSLBSubnets)
// t.Run("TestAWSEIPAllocationsForNLB", TestAWSEIPAllocationsForNLB)
// t.Run("TestUnmanagedAWSEIPAllocations", TestUnmanagedAWSEIPAllocations)
//})

t.Run("serial", func(t *testing.T) {
t.Run("TestDefaultIngressControllerSteadyConditions", TestDefaultIngressControllerSteadyConditions)
t.Run("TestClusterOperatorStatusRelatedObjects", TestClusterOperatorStatusRelatedObjects)
t.Run("TestConfigurableRouteNoConsumingUserNoRBAC", TestConfigurableRouteNoConsumingUserNoRBAC)
t.Run("TestConfigurableRouteNoSecretNoRBAC", TestConfigurableRouteNoSecretNoRBAC)
t.Run("TestConfigurableRouteRBAC", TestConfigurableRouteRBAC)
t.Run("TestDefaultIngressCertificate", TestDefaultIngressCertificate)
t.Run("TestDefaultIngressClass", TestDefaultIngressClass)
t.Run("TestOperatorRecreatesItsClusterOperator", TestOperatorRecreatesItsClusterOperator)
t.Run("TestAWSLBTypeDefaulting", TestAWSLBTypeDefaulting)
t.Run("TestAWSResourceTagsChanged", TestAWSResourceTagsChanged)
t.Run("TestHstsPolicyWorks", TestHstsPolicyWorks)
t.Run("TestIngressControllerCustomEndpoints", TestIngressControllerCustomEndpoints)
t.Run("TestIngressStatus", TestIngressStatus)
t.Run("TestLocalWithFallbackOverrideForLoadBalancerService", TestLocalWithFallbackOverrideForLoadBalancerService)
t.Run("TestOperatorSteadyConditions", TestOperatorSteadyConditions)
t.Run("TestPodDisruptionBudgetExists", TestPodDisruptionBudgetExists)
t.Run("TestProxyProtocolOnAWS", TestProxyProtocolOnAWS)
t.Run("TestRouteHTTP2EnableAndDisableIngressController", TestRouteHTTP2EnableAndDisableIngressController)
t.Run("TestRouteHardStopAfterEnableOnIngressController", TestRouteHardStopAfterEnableOnIngressController)
t.Run("TestRouteHardStopAfterTestInvalidDuration", TestRouteHardStopAfterTestInvalidDuration)
t.Run("TestRouteHardStopAfterTestOneDayDuration", TestRouteHardStopAfterTestOneDayDuration)
t.Run("TestRouteHardStopAfterTestZeroLengthDuration", TestRouteHardStopAfterTestZeroLengthDuration)
t.Run("TestRouteNbthreadIngressController", TestRouteNbthreadIngressController)
t.Run("TestRouterCompressionOperation", TestRouterCompressionOperation)
t.Run("TestUpdateDefaultIngressControllerSecret", TestUpdateDefaultIngressControllerSecret)
t.Run("TestCanaryRoute", TestCanaryRoute)
t.Run("TestCanaryWithMTLS", TestCanaryWithMTLS)
t.Run("TestCanaryRouteClearsSpecHost", TestCanaryRouteClearsSpecHost)
t.Run("TestRouteHTTP2EnableAndDisableIngressConfig", TestRouteHTTP2EnableAndDisableIngressConfig)
t.Run("TestRouteHardStopAfterEnableOnIngressConfig", TestRouteHardStopAfterEnableOnIngressConfig)
t.Run("TestRouteHardStopAfterEnableOnIngressControllerHasPriorityOverIngressConfig", TestRouteHardStopAfterEnableOnIngressControllerHasPriorityOverIngressConfig)
t.Run("TestHostNetworkPortBinding", TestHostNetworkPortBinding)
t.Run("TestDashboardCreation", TestDashboardCreation)
//t.Run("TestDefaultIngressControllerSteadyConditions", TestDefaultIngressControllerSteadyConditions)
//t.Run("TestClusterOperatorStatusRelatedObjects", TestClusterOperatorStatusRelatedObjects)
//t.Run("TestConfigurableRouteNoConsumingUserNoRBAC", TestConfigurableRouteNoConsumingUserNoRBAC)
//t.Run("TestConfigurableRouteNoSecretNoRBAC", TestConfigurableRouteNoSecretNoRBAC)
//t.Run("TestConfigurableRouteRBAC", TestConfigurableRouteRBAC)
//t.Run("TestDefaultIngressCertificate", TestDefaultIngressCertificate)
//t.Run("TestDefaultIngressClass", TestDefaultIngressClass)
//t.Run("TestOperatorRecreatesItsClusterOperator", TestOperatorRecreatesItsClusterOperator)
//t.Run("TestAWSLBTypeDefaulting", TestAWSLBTypeDefaulting)
//t.Run("TestAWSResourceTagsChanged", TestAWSResourceTagsChanged)
//t.Run("TestHstsPolicyWorks", TestHstsPolicyWorks)
//t.Run("TestIngressControllerCustomEndpoints", TestIngressControllerCustomEndpoints)
//t.Run("TestIngressStatus", TestIngressStatus)
//t.Run("TestLocalWithFallbackOverrideForLoadBalancerService", TestLocalWithFallbackOverrideForLoadBalancerService)
//t.Run("TestOperatorSteadyConditions", TestOperatorSteadyConditions)
//t.Run("TestPodDisruptionBudgetExists", TestPodDisruptionBudgetExists)
//t.Run("TestProxyProtocolOnAWS", TestProxyProtocolOnAWS)
//t.Run("TestRouteHTTP2EnableAndDisableIngressController", TestRouteHTTP2EnableAndDisableIngressController)
//t.Run("TestRouteHardStopAfterEnableOnIngressController", TestRouteHardStopAfterEnableOnIngressController)
//t.Run("TestRouteHardStopAfterTestInvalidDuration", TestRouteHardStopAfterTestInvalidDuration)
//t.Run("TestRouteHardStopAfterTestOneDayDuration", TestRouteHardStopAfterTestOneDayDuration)
//t.Run("TestRouteHardStopAfterTestZeroLengthDuration", TestRouteHardStopAfterTestZeroLengthDuration)
//t.Run("TestRouteNbthreadIngressController", TestRouteNbthreadIngressController)
//t.Run("TestRouterCompressionOperation", TestRouterCompressionOperation)
//t.Run("TestUpdateDefaultIngressControllerSecret", TestUpdateDefaultIngressControllerSecret)
//t.Run("TestCanaryRoute", TestCanaryRoute)
//t.Run("TestCanaryWithMTLS", TestCanaryWithMTLS)
//t.Run("TestCanaryRouteClearsSpecHost", TestCanaryRouteClearsSpecHost)
//t.Run("TestRouteHTTP2EnableAndDisableIngressConfig", TestRouteHTTP2EnableAndDisableIngressConfig)
//t.Run("TestRouteHardStopAfterEnableOnIngressConfig", TestRouteHardStopAfterEnableOnIngressConfig)
//t.Run("TestRouteHardStopAfterEnableOnIngressControllerHasPriorityOverIngressConfig", TestRouteHardStopAfterEnableOnIngressControllerHasPriorityOverIngressConfig)
//t.Run("TestHostNetworkPortBinding", TestHostNetworkPortBinding)
//t.Run("TestDashboardCreation", TestDashboardCreation)
t.Run("TestDNSPropagation", TestDNSPropagation)
})
}
Loading

0 comments on commit 2c8d128

Please sign in to comment.