From 5b5b1942ad5327979f235f5b98d3d621691c02ab Mon Sep 17 00:00:00 2001 From: Salim Afiune Date: Fri, 21 Jul 2023 10:30:43 -0700 Subject: [PATCH] fix: support additional domain formats --- lwdomain/domain_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lwdomain/domain_test.go b/lwdomain/domain_test.go index bb75dcbcc..a0aeac055 100644 --- a/lwdomain/domain_test.go +++ b/lwdomain/domain_test.go @@ -46,6 +46,11 @@ func TestDomains(t *testing.T) { expectedCluster: "abc", expectedString: "abc.abc.corp", expectedInternal: true}, + {URL: "a-b-c.xyz.foo.corp.lacework.net", + expectedAccount: "a-b-c.xyz", + expectedCluster: "foo", + expectedString: "a-b-c.xyz.foo.corp", + expectedInternal: true}, {URL: "http://account.lacework.net", expectedAccount: "account", expectedCluster: "",