unit test: Add unit test for wildcard pattern
Unit test for wildcard value of `ingress_hosts`.
@@ -52,6 +52,15 @@ component "contour" {
testRenderManifest(t, configHCL)
}
+func TestRenderManifestWithIngressHostsWildcard(t *testing.T) {
+ configHCL := `
+component "contour" {
+ ingress_hosts = ["*.domain.com"]
+}
+`
+ testRenderManifest(t, configHCL)
+}
+
func TestRenderManifestWithServiceMonitor(t *testing.T) {
configHCL := `
component "contour" {
