From cb47520779473b876ba73a23afb4c14d20138452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20=C4=8Eurech?= Date: Wed, 5 Jun 2024 12:25:13 +0200 Subject: [PATCH] Fix #591: Make tests compatible with latest PA server --- .../powerauth/integration/support/model/ServerVersion.java | 4 +++- .../PowerAuthServer/PowerAuthTestServerConfig.h | 3 +++ .../PowerAuthServer/RestEndpoints.bundle/mappings.json | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/proj-android/PowerAuthLibrary/src/androidTest/java/io/getlime/security/powerauth/integration/support/model/ServerVersion.java b/proj-android/PowerAuthLibrary/src/androidTest/java/io/getlime/security/powerauth/integration/support/model/ServerVersion.java index bc86bebe..66f92899 100644 --- a/proj-android/PowerAuthLibrary/src/androidTest/java/io/getlime/security/powerauth/integration/support/model/ServerVersion.java +++ b/proj-android/PowerAuthLibrary/src/androidTest/java/io/getlime/security/powerauth/integration/support/model/ServerVersion.java @@ -34,13 +34,15 @@ public enum ServerVersion { V1_4_0("1.4", 1004000, ProtocolVersion.V3_1), V1_5_0("1.5", 1005000, ProtocolVersion.V3_2), V1_6_0("1.6", 1006000, ProtocolVersion.V3_2), + V1_7_0("1.7", 1007000, ProtocolVersion.V3_2), + V1_8_0("1.8", 1008000, ProtocolVersion.V3_2), ; /** * Contains constant for the latest PowerAuth Server version. */ - public static final ServerVersion LATEST = V1_6_0; + public static final ServerVersion LATEST = V1_8_0; /** * Server version represented as string. diff --git a/proj-xcode/PowerAuth2IntegrationTests/PowerAuthServer/PowerAuthTestServerConfig.h b/proj-xcode/PowerAuth2IntegrationTests/PowerAuthServer/PowerAuthTestServerConfig.h index 4856af5d..0187d25d 100644 --- a/proj-xcode/PowerAuth2IntegrationTests/PowerAuthServer/PowerAuthTestServerConfig.h +++ b/proj-xcode/PowerAuth2IntegrationTests/PowerAuthServer/PowerAuthTestServerConfig.h @@ -28,6 +28,9 @@ typedef NS_ENUM(int, PowerAuthTestServerVersion) { PATS_V1_3 = 10300, // V3.1 crypto + Activation OTP, applicationId as String PATS_V1_4 = 10400, // V3.1 crypto + Activation OTP, applicationId as String PATS_V1_5 = 10500, // V3.2 crypto + Activation OTP, applicationId as String, userInfo + PATS_V1_6 = 10600, // V3.2 crypto + Activation OTP, applicationId as String, userInfo + PATS_V1_7 = 10700, // V3.2 crypto + Activation OTP, applicationId as String, userInfo + PATS_V1_8 = 10800, // V3.2 crypto + Activation OTP, applicationId as String, userInfo }; /** diff --git a/proj-xcode/PowerAuth2IntegrationTests/PowerAuthServer/RestEndpoints.bundle/mappings.json b/proj-xcode/PowerAuth2IntegrationTests/PowerAuthServer/RestEndpoints.bundle/mappings.json index 5ea45ca4..ce3f4458 100644 --- a/proj-xcode/PowerAuth2IntegrationTests/PowerAuthServer/RestEndpoints.bundle/mappings.json +++ b/proj-xcode/PowerAuth2IntegrationTests/PowerAuthServer/RestEndpoints.bundle/mappings.json @@ -7,6 +7,8 @@ "1.4" : "v13", "1.5" : "v15", "1.6" : "v15", + "1.7" : "v15", + "1.8" : "v15", "*" : "v15" },