Merge pull request #12202 from hkhan/JAVA-11979-rename-integration-test

[JAVA-11979] Rename Keycloak server Integration test to Live test
This commit is contained in:
kwoyke 2022-05-13 08:09:01 +02:00 committed by GitHub
commit 9387729829
1 changed files with 11 additions and 5 deletions

View File

@ -26,29 +26,35 @@ import java.util.Objects;
import static org.assertj.core.api.Assertions.assertThat;
/**
* The class contains Live/Integration tests.
* The class contains Live tests.
* These tests expect that the Keycloak server is up and running on port 8080.
* The tests may fail without a Keycloak server.
*/
@DisplayName("Keycloak SOAP Webservice Unit Tests")
@DisplayName("Keycloak SOAP Webservice Live Tests")
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("test")
@AutoConfigureMockMvc
class KeycloakSoapIntegrationTest {
class KeycloakSoapLiveTest {
private static final Logger logger = LoggerFactory.getLogger(KeycloakSoapLiveTest.class);
private static final Logger logger = LoggerFactory.getLogger(KeycloakSoapIntegrationTest.class);
@LocalServerPort
private int port;
@Autowired
private TestRestTemplate restTemplate;
@Autowired
private ObjectMapper objectMapper;
@Value("${grant.type}")
private String grantType;
@Value("${client.id}")
private String clientId;
@Value("${client.secret}")
private String clientSecret;
@Value("${url}")
private String keycloakUrl;