Fix VKSTest

testing2.keys.openpgp.org is no longer available.
Therefore we move to testing.keys.openpgp.org.
Furthermore, we upload the test key with its userid, so we can as well
fetch it by user-id too.
This commit is contained in:
Paul Schaub 2025-09-27 10:16:22 +02:00
parent 68b15eef27
commit af12886723
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -29,7 +29,7 @@ public class VKSTest {
@BeforeAll
static void prepare() throws MalformedURLException {
vks = new VKSImpl("https://testing2.keys.openpgp.org");
vks = new VKSImpl("https://testing.keys.openpgp.org");
}
@Test
@ -111,10 +111,10 @@ public class VKSTest {
@Test
public void testGetByEmail() throws IOException {
byte[] expectedHeader = ("-----BEGIN PGP PUBLIC KEY BLOCK-----\n" +
"Comment: 7F91 16FE A90A 5983 936C 7CFA A027 DB2F 3E1E 118A")
"Comment: 5741 7147 D0C8 B548 220A 36A6 0BAA B05A 0877 68D3")
.getBytes(StandardCharsets.UTF_8);
InputStream in = vks.get().byEmail("vanitasvitae@fsfe.org");
InputStream in = vks.get().byEmail("test123asdasd@byom.de");
ByteArrayOutputStream out = new ByteArrayOutputStream();
Streams.pipeAll(in, out);
in.close();