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:
commit
9387729829
|
@ -26,29 +26,35 @@ import java.util.Objects;
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
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.
|
* 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)
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||||
@ActiveProfiles("test")
|
@ActiveProfiles("test")
|
||||||
@AutoConfigureMockMvc
|
@AutoConfigureMockMvc
|
||||||
class KeycloakSoapIntegrationTest {
|
class KeycloakSoapLiveTest {
|
||||||
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(KeycloakSoapLiveTest.class);
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(KeycloakSoapIntegrationTest.class);
|
|
||||||
@LocalServerPort
|
@LocalServerPort
|
||||||
private int port;
|
private int port;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private TestRestTemplate restTemplate;
|
private TestRestTemplate restTemplate;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ObjectMapper objectMapper;
|
private ObjectMapper objectMapper;
|
||||||
|
|
||||||
@Value("${grant.type}")
|
@Value("${grant.type}")
|
||||||
private String grantType;
|
private String grantType;
|
||||||
|
|
||||||
@Value("${client.id}")
|
@Value("${client.id}")
|
||||||
private String clientId;
|
private String clientId;
|
||||||
|
|
||||||
@Value("${client.secret}")
|
@Value("${client.secret}")
|
||||||
private String clientSecret;
|
private String clientSecret;
|
||||||
|
|
||||||
@Value("${url}")
|
@Value("${url}")
|
||||||
private String keycloakUrl;
|
private String keycloakUrl;
|
||||||
|
|
Loading…
Reference in New Issue