Skip to content

Commit

Permalink
Removes Maxmind license keys from test URLs. (#3270)
Browse files Browse the repository at this point in the history
Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable authored Aug 28, 2023
1 parent d908c40 commit f70ee73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GeoIPProcessorServiceTest {

private static final String S3_URL = "https://mybucket10012023.s3.amazonaws.com/GeoLite2/";
private static final String URL = "https://download.maxmind.com/app/geoip_download?edition_" +
"id=GeoLite2-ASN&license_key=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&suffix=tar.gz";
"id=GeoLite2-ASN&suffix=tar.gz";
private static final String PATH = "./src/test/resources/mmdb-file/geo-lite2";
private static final String S3_REGION = "us-east-1";
public static final int REFRESH_SCHEDULE = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void initiateDownloadTest() throws NoSuchFieldException, IllegalAccessException
DatabasePathURLConfig databasePathURLConfig1 = new DatabasePathURLConfig();
ReflectivelySetField.setField(DatabasePathURLConfig.class,
databasePathURLConfig1, "url", "https://download.maxmind.com/app/geoip_download?" +
"edition_id=GeoLite2-ASN&license_key=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&suffix=tar.gz");
"edition_id=GeoLite2-ASN&suffix=tar.gz");
List<DatabasePathURLConfig> config = new ArrayList<>();
config.add(databasePathURLConfig1);
downloadThroughUrl = createObjectUnderTest();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void getDatabasePathTypeTest_URL() throws NoSuchFieldException, IllegalAccessExc
DatabasePathURLConfig databasePathURLConfig2 = new DatabasePathURLConfig();
ReflectivelySetField.setField(DatabasePathURLConfig.class,
databasePathURLConfig2, "url", "https://download.maxmind.com/app/geoip_download?" +
"edition_id=GeoLite2-ASN&license_key=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&suffix=tar.gz");
"edition_id=GeoLite2-ASN&suffix=tar.gz");
List<DatabasePathURLConfig> urlList = List.of(databasePathURLConfig2);
DBSourceOptions dbSourceOptions = DbSourceIdentification.getDatabasePathType(urlList);
Assertions.assertNotNull(dbSourceOptions);
Expand Down

0 comments on commit f70ee73

Please sign in to comment.