Skip to content

Commit 3fda796

Browse files
committed
Expose these members for testing
1 parent 8699a2d commit 3fda796

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/RegisteredDomainProcessor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public IngestDocument execute(IngestDocument document) throws Exception {
8383
}
8484

8585
@Nullable
86-
private static DomainInfo getRegisteredDomain(@Nullable String fqdn) {
86+
// visible for testing
87+
static DomainInfo getRegisteredDomain(@Nullable String fqdn) {
8788
if (fqdn == null) {
8889
return null;
8990
}
@@ -106,7 +107,8 @@ public String getType() {
106107
return TYPE;
107108
}
108109

109-
private record DomainInfo(
110+
// visible for testing
111+
record DomainInfo(
110112
String domain,
111113
String registeredDomain,
112114
String eTLD, // n.b. https://developer.mozilla.org/en-US/docs/Glossary/eTLD

0 commit comments

Comments
 (0)