You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by "RussellSpitzer (via GitHub)" <gi...@apache.org> on 2024/08/26 01:29:09 UTC
Re: [PR] Use `assumeThat` to GCP/Azure ITs that need secrets [polaris]
RussellSpitzer commented on code in PR #117:
URL: https://github.com/apache/polaris/pull/117#discussion_r1730501243
##########
polaris-core/src/test/java/io/polaris/service/storage/azure/AzureCredentialStorageIntegrationTest.java:
##########
@@ -49,31 +49,25 @@
import java.util.Map;
import java.util.stream.Stream;
import org.assertj.core.api.Assertions;
+import org.assertj.core.api.Assumptions;
import org.assertj.core.util.Strings;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.ArgumentsProvider;
import org.junit.jupiter.params.provider.ArgumentsSource;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
public class AzureCredentialStorageIntegrationTest {
- private static final Logger LOGGER =
- LoggerFactory.getLogger(AzureCredentialStorageIntegrationTest.class);
-
private final String clientId = System.getenv("AZURE_CLIENT_ID");
private final String clientSecret = System.getenv("AZURE_CLIENT_SECRET");
private final String tenantId = "d479c7c9-2632-445a-b22d-7c19e68774f6";
- private boolean checkEnvNullVariables() {
- if (Strings.isNullOrEmpty(clientId) || Strings.isNullOrEmpty(clientSecret)) {
- LOGGER.debug("Null Azure testing environment variables! Skip {}", this.getClass().getName());
- return true;
- }
- return false;
+ private void checkEnvNullVariables() {
Review Comment:
nit: now that this is void could be assumeEnvVariablesNotNull.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org