Skip to content

Commit

Permalink
Add actuator details configuration (#23879)
Browse files Browse the repository at this point in the history
Fix actuator details configuration missing
  • Loading branch information
Moary Chen authored Sep 2, 2021
1 parent a58aa91 commit c451201
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void testCosmosSpringBootActuatorHealth() {
app.property("spring.cloud.azure.cosmos.key", AZURE_COSMOS_ACCOUNT_KEY);
app.property("spring.cloud.azure.cosmos.database", AZURE_COSMOS_DATABASE_NAME);
app.property("spring.cloud.azure.cosmos.populateQueryMetrics", String.valueOf(true));
app.property("management.endpoint.health.shojacoco-test-coverage/pom.xmlw-details", "always");
app.property("management.endpoint.health.show-details", "always");
app.property("management.health.azure-cosmos.enabled", "true");

//start app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
Expand All @@ -30,6 +31,7 @@
import static com.azure.spring.test.keyvault.PropertyConvertorUtils.*;
import static org.junit.jupiter.api.Assertions.assertEquals;

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class KeyVaultCertificateIT {

private static final Logger LOGGER = LoggerFactory.getLogger(KeyVaultCertificateIT.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.azure.spring.test.AppRunner;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import static com.azure.spring.test.EnvironmentVariable.AZURE_KEYVAULT2_URI;
Expand All @@ -20,6 +21,7 @@
import static com.azure.spring.test.EnvironmentVariable.SPRING_TENANT_ID;
import static org.junit.jupiter.api.Assertions.assertEquals;

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class MultipleKeyVaultsIT {

private static final String KEY_VAULT_NAME_1 = getKeyVaultName(AZURE_KEYVAULT_URI);
Expand Down

0 comments on commit c451201

Please sign in to comment.