Skip to content
Snippets Groups Projects
Commit 14ffad07 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-6711 Try out TEST-certificate

parent 208c43ff
No related branches found
No related tags found
No related merge requests found
......@@ -15,17 +15,20 @@ import org.junit.jupiter.params.provider.ValueSource;
import de.ozgcloud.xta.client.extension.XtaMessageExampleLoader;
import de.ozgcloud.xta.client.extension.XtaRemoteServerSetupExtension;
import de.ozgcloud.xta.client.model.XtaFile;
import de.ozgcloud.xta.client.model.XtaIdentifier;
import de.ozgcloud.xta.client.model.XtaMessage;
import de.ozgcloud.xta.client.model.XtaMessageStatus;
import de.ozgcloud.xta.client.xdomea.XdomeaXtaMessageCreatorFactory;
import genv3.de.xoev.transport.xta.x211.InvalidMessageIDException;
import genv3.de.xoev.transport.xta.x211.MessageSchemaViolationException;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@EnabledIfEnvironmentVariable(
named = "KOP_SH_KIEL_DEV_PATH",
matches = ".+",
disabledReason = "This test requires the path and password of KOP_SH_KIEL_DEV.p12 and KOP_SH_KIEL_TEST.p12. "
disabledReason =
"This test requires the path KOP_SH_KIEL_{DEV,TEST}_PATH and password KOP_SH_KIEL_{DEV,TEST}_PASSWORD of KOP_SH_KIEL_DEV.p12 and OZG-CLOUD_SH_KIEL_TEST.pfx. "
+ "Additionally, the endpoint of the DEV-xta-server at li33-0005.dp.dsecurecloud.de must be reachable."
)
class XtaClientRemoteITCase {
......@@ -137,13 +140,22 @@ class XtaClientRemoteITCase {
@DisplayName("should return with open status")
@SneakyThrows
@ParameterizedTest
@ValueSource(strings = { "dfoerdermittel", "abgabe0401-kleiner-waffenschein" })
//@ValueSource(strings = { "dfoerdermittel", "abgabe0401-kleiner-waffenschein" })
@ValueSource(strings = { "abgabe0401-kleiner-waffenschein" })
void shouldReturn(String messageLabel) {
XtaMessage xtaMessage = createXdomeaMessage(messageLabel);
var result = authorClient.sendMessage(xtaMessage);
try {
var result = authorClient.sendMessage(xtaMessage);
assertThat(result.status()).isEqualTo(XtaMessageStatus.OPEN);
} catch (MessageSchemaViolationException exception) {
log.error(exception.getFaultInfo().getErrorCode().toString(), exception);
fail(exception.getFaultInfo().getErrorCode().toString());
}
}
@SneakyThrows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment