VRS: support new endpoint with client certificate

Fixes #506.
This commit is contained in:
Michael Dyrna 2022-12-30 23:56:36 +01:00 committed by Andreas Schildbach
parent 915538f069
commit 10136ed084
4 changed files with 32 additions and 12 deletions

View file

@ -32,6 +32,7 @@ import java.util.Random;
import java.util.Set;
import java.util.TreeSet;
import com.google.common.io.BaseEncoding;
import org.junit.Ignore;
import org.junit.Test;
@ -58,8 +59,10 @@ import de.schildbach.pte.dto.TripOptions;
* @author Michael Dyrna
*/
public class VrsProviderLiveTest extends AbstractProviderLiveTest {
private static final BaseEncoding BASE64 = BaseEncoding.base64();
public VrsProviderLiveTest() {
super(new VrsProvider());
super(new VrsProvider(BASE64.decode(secretProperty("vrs.client_certificate"))));
}
@Test

View file

@ -32,3 +32,4 @@ se.api_authorization =
lu.api_authorization =
bart.api_authorization =
cmta.api_authorization =
vrs.client_certificate =