diff --git a/.github/workflows/tests-fetchers.yml b/.github/workflows/tests-fetchers.yml index 9d30f9c7864..0aa59c10dca 100644 --- a/.github/workflows/tests-fetchers.yml +++ b/.github/workflows/tests-fetchers.yml @@ -22,9 +22,9 @@ on: - cron: '2 3 * * 3' env: - SpringerNatureAPIKey: ${{ secrets.SpringerNatureAPIKey }} - AstrophysicsDataSystemAPIKey: ${{ secrets.AstrophysicsDataSystemAPIKey }} - IEEEAPIKey: ${{ secrets.IEEEAPIKey }} + SpringerNatureAPIKey: ${{ secrets.SPRINGERNATUREAPIKEY_FOR_TESTS }} + AstrophysicsDataSystemAPIKey: ${{ secrets.AstrophysicsDataSystemAPIKey_FOR_TESTS }} + IEEEAPIKey: ${{ secrets.IEEEAPIKey_FOR_TESTS }} jobs: fetchertests: diff --git a/src/test/java/org/jabref/logic/importer/fetcher/SpringerFetcherTest.java b/src/test/java/org/jabref/logic/importer/fetcher/SpringerFetcherTest.java index dcdbf257848..7ffb4e19b1c 100644 --- a/src/test/java/org/jabref/logic/importer/fetcher/SpringerFetcherTest.java +++ b/src/test/java/org/jabref/logic/importer/fetcher/SpringerFetcherTest.java @@ -9,7 +9,6 @@ import org.jabref.model.entry.BibEntry; import org.jabref.model.entry.field.StandardField; import org.jabref.model.entry.types.StandardEntryType; -import org.jabref.support.DisabledOnCIServer; import org.jabref.testutils.category.FetcherTest; import kong.unirest.json.JSONObject; @@ -31,7 +30,6 @@ void setUp() { fetcher = new SpringerFetcher(); } - @DisabledOnCIServer("Disable on CI Server to not hit the API call limit") @Test void searchByQueryFindsEntry() throws Exception { BibEntry expected = new BibEntry(StandardEntryType.Article) @@ -54,7 +52,6 @@ void searchByQueryFindsEntry() throws Exception { assertEquals(Collections.singletonList(expected), fetchedEntries); } - @DisabledOnCIServer("Disable on CI Server to not hit the API call limit") @Test void testSpringerJSONToBibtex() { String jsonString = "{\r\n" + " \"identifier\":\"doi:10.1007/BF01201962\",\r\n" @@ -78,7 +75,6 @@ void testSpringerJSONToBibtex() { assertEquals(Optional.of("1992-09-01"), bibEntry.getField(StandardField.DATE)); } - @DisabledOnCIServer("Disable on CI Server to not hit the API call limit") @Test void searchByEmptyQueryFindsNothing() throws Exception { assertEquals(Collections.emptyList(), fetcher.performSearch(""));