Skip to content

Commit 735048f

Browse files
julienbourdeauaseure
authored andcommitted
chore(travis): Rename env variables
1 parent ddb4607 commit 735048f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

algoliasearch-tests/src/test/java/com/algolia/search/ApacheHttpClientTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616

1717
public class ApacheHttpClientTest {
1818

19-
private static String APPLICATION_ID = System.getenv("APPLICATION_ID");
20-
private static String API_KEY = System.getenv("API_KEY");
19+
private static String APPLICATION_ID = System.getenv("ALGOLIA_APPLICATION_ID");
20+
private static String API_KEY = System.getenv("ALGOLIA_API_KEY");
2121
private APIClientConfiguration defaultConfig;
2222

2323
@Before
2424
public void checkEnvVariables() throws Exception {
2525
if (APPLICATION_ID == null || APPLICATION_ID.isEmpty()) {
26-
throw new Exception("APPLICATION_ID is not defined or empty");
26+
throw new Exception("ALGOLIA_APPLICATION_ID is not defined or empty");
2727
}
2828
if (API_KEY == null || API_KEY.isEmpty()) {
29-
throw new Exception("API_KEY is not defined or empty");
29+
throw new Exception("ALGOLIA_API_KEY is not defined or empty");
3030
}
3131
}
3232

algoliasearch-tests/src/test/java/com/algolia/search/AsyncAlgoliaIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public abstract class AsyncAlgoliaIntegrationTest {
2020

2121
protected static final long WAIT_TIME_IN_SECONDS = 60 * 5; // 5 minutes
2222
protected static AsyncAPIClient client;
23-
private String APPLICATION_ID = System.getenv("APPLICATION_ID");
24-
private String API_KEY = System.getenv("API_KEY");
23+
private String APPLICATION_ID = System.getenv("ALGOLIA_APPLICATION_ID");
24+
private String API_KEY = System.getenv("ALGOLIA_API_KEY");
2525

2626
private static List<String> indexNameToDeleteAfterTheTests = new ArrayList<>();
2727

algoliasearch-tests/src/test/java/com/algolia/search/SyncAlgoliaIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public abstract class SyncAlgoliaIntegrationTest {
2121

2222
protected static APIClient client;
2323
private static List<String> indexNameToDeleteAfterTheTests = new ArrayList<>();
24-
protected String APPLICATION_ID = System.getenv("APPLICATION_ID");
25-
protected String API_KEY = System.getenv("API_KEY");
24+
protected String APPLICATION_ID = System.getenv("ALGOLIA_APPLICATION_ID");
25+
protected String API_KEY = System.getenv("ALGOLIA_API_KEY");
2626
protected static final long WAIT_TIME_IN_SECONDS = 60 * 5; // 5 minutes
2727

2828
@AfterClass

0 commit comments

Comments
 (0)