File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
algoliasearch-tests/src/test/java/com/algolia/search Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1616
1717public 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments