mirror of
https://codeberg.org/PGPainless/vks-java.git
synced 2025-12-05 04:51:08 +01:00
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:
parent
68b15eef27
commit
af12886723
1 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ public class VKSTest {
|
||||||
|
|
||||||
@BeforeAll
|
@BeforeAll
|
||||||
static void prepare() throws MalformedURLException {
|
static void prepare() throws MalformedURLException {
|
||||||
vks = new VKSImpl("https://testing2.keys.openpgp.org");
|
vks = new VKSImpl("https://testing.keys.openpgp.org");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -111,10 +111,10 @@ public class VKSTest {
|
||||||
@Test
|
@Test
|
||||||
public void testGetByEmail() throws IOException {
|
public void testGetByEmail() throws IOException {
|
||||||
byte[] expectedHeader = ("-----BEGIN PGP PUBLIC KEY BLOCK-----\n" +
|
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);
|
.getBytes(StandardCharsets.UTF_8);
|
||||||
|
|
||||||
InputStream in = vks.get().byEmail("vanitasvitae@fsfe.org");
|
InputStream in = vks.get().byEmail("test123asdasd@byom.de");
|
||||||
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||||
Streams.pipeAll(in, out);
|
Streams.pipeAll(in, out);
|
||||||
in.close();
|
in.close();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue