Document network access limitations preventing integration tests#6
Draft
Document network access limitations preventing integration tests#6
Conversation
Co-authored-by: gsmachado <2124276+gsmachado@users.noreply.github.com>
Co-authored-by: gsmachado <2124276+gsmachado@users.noreply.github.com>
Co-authored-by: gsmachado <2124276+gsmachado@users.noreply.github.com>
…ments Co-authored-by: gsmachado <2124276+gsmachado@users.noreply.github.com>
…cumentation Co-authored-by: gsmachado <2124276+gsmachado@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Improve test coverage to reach 95%
Add comprehensive unit tests - achieve 71% coverage
Feb 27, 2026
Co-authored-by: gsmachado <2124276+gsmachado@users.noreply.github.com>
Co-authored-by: gsmachado <2124276+gsmachado@users.noreply.github.com>
Copilot
AI
changed the title
Add comprehensive unit tests - achieve 71% coverage
Document network access limitations preventing integration tests
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Investigation revealed that while Maven/Gradle repositories are accessible, DNS resolution for external hosts is blocked in the CI environment. Integration tests requiring RIR database downloads fail with
UnknownHostExceptionforftp.{arin,ripe,apnic,afrinic,lacnic}.net.Changes
Documentation
NETWORK_ACCESS_INVESTIGATION.mdwith DNS resolution test resultsTEST_COVERAGE.mdto explain network constraints and how to run integration tests manuallyVerification
Coverage Architecture
The 2 integration tests (
Ip2Asn2CcIncludeFilterPolicyTest,Ip2Asn2CcExcludeFilterPolicyTest) are valid but require unrestricted network access to download ~200MB of RIR data from 5 FTP servers.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
ftp.afrinic.net/usr/lib/jvm/temurin-8-jdk-amd64/bin/java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dorg.gradle.native=false -javaagent:build/tmp/expandedArchives/org.jacoco.agent-0.8.1.jar_edqovih8ve5wrctm2ogx02j98/jacocoagent.jar=destfile=build/jacoco/test.exec,append=true,inclnolocationclasses=false,dumponexit=true,output=file,jmx=false -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -ea -cp /home/REDACTED/.gradle/caches/4.0/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 1'(dns block)ftp.apnic.net/usr/lib/jvm/temurin-8-jdk-amd64/bin/java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dorg.gradle.native=false -javaagent:build/tmp/expandedArchives/org.jacoco.agent-0.8.1.jar_edqovih8ve5wrctm2ogx02j98/jacocoagent.jar=destfile=build/jacoco/test.exec,append=true,inclnolocationclasses=false,dumponexit=true,output=file,jmx=false -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -ea -cp /home/REDACTED/.gradle/caches/4.0/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 1'(dns block)ftp.arin.net/usr/lib/jvm/temurin-8-jdk-amd64/bin/java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dorg.gradle.native=false -javaagent:build/tmp/expandedArchives/org.jacoco.agent-0.8.1.jar_edqovih8ve5wrctm2ogx02j98/jacocoagent.jar=destfile=build/jacoco/test.exec,append=true,inclnolocationclasses=false,dumponexit=true,output=file,jmx=false -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -ea -cp /home/REDACTED/.gradle/caches/4.0/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 1'(dns block)ftp.lacnic.net/usr/lib/jvm/temurin-8-jdk-amd64/bin/java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dorg.gradle.native=false -javaagent:build/tmp/expandedArchives/org.jacoco.agent-0.8.1.jar_edqovih8ve5wrctm2ogx02j98/jacocoagent.jar=destfile=build/jacoco/test.exec,append=true,inclnolocationclasses=false,dumponexit=true,output=file,jmx=false -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -ea -cp /home/REDACTED/.gradle/caches/4.0/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 1'(dns block)ftp.ripe.net/usr/lib/jvm/temurin-8-jdk-amd64/bin/java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dorg.gradle.native=false -javaagent:build/tmp/expandedArchives/org.jacoco.agent-0.8.1.jar_edqovih8ve5wrctm2ogx02j98/jacocoagent.jar=destfile=build/jacoco/test.exec,append=true,inclnolocationclasses=false,dumponexit=true,output=file,jmx=false -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -ea -cp /home/REDACTED/.gradle/caches/4.0/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 1'(dns block)google.com/usr/bin/ping ping -c 2 google.com(dns block)www.google.com/usr/bin/curl curl -I REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.