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 Aug 20, 2024
1 parent 26f0181 commit f69e117
Show file tree
Hide file tree
Showing 2 changed files with 414 additions and 102 deletions.
205 changes: 103 additions & 102 deletions test/e2e/all_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,109 +19,110 @@ 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("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("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 f69e117

Please sign in to comment.